Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Github #2063: Debian installer - set max_input_vars = 5000 #2064

Open
wants to merge 1 commit into
base: 24.10.00
Choose a base branch
from

Conversation

lizrea
Copy link
Contributor

@lizrea lizrea commented Sep 18, 2024

CentOS installer includes a php file that sets the max_input_vars to 5000 from the default 1000. Debian should also have this setting by default.

To test:
Run aspen installer on Debian as if you were setting up a new Aspen, note that the /etc/php/${php_vers}/apache2/php.ini file has a max_input_vars of 1000

apply this patch, rerun the installer, note that the same file should now have max_input_vars of 5000.

…5000

CentOS installer includes a php file that sets the max_input_vars to 5000 from the default 1000. Debian should also have this setting by default.

To test: 
Run aspen installer on Debian as if you were setting up a new Aspen, note that the /etc/php/${php_vers}/apache2/php.ini file has a max_input_vars of 1000

apply this patch, rerun the installer, note that the same file should now have max_input_vars of 5000.
@lizrea
Copy link
Contributor Author

lizrea commented Sep 18, 2024

please merge with the release notes PR coming just after this :)

@@ -32,6 +32,7 @@ php_ini="/etc/php/${php_vers}/apache2/php.ini"
grep -q '^memory_limit = 256M' "$php_ini" || sed -Ei 's/^memory_limit = [0-9]+M/memory_limit = 256M/' "$php_ini"
grep -q '^post_max_size = 75M' "$php_ini" || sed -Ei 's/^post_max_size = [0-9]+M/post_max_size = 75M/' "$php_ini"
grep -q '^upload_max_filesize = 75M' "$php_ini" || sed -Ei 's/^upload_max_filesize = [0-9]+M/upload_max_filesize = 75M/' "$php_ini"
grep -q '^;max_input_vars = 1000' "$php_ini" || sed -Ei 's/^;max_input_vars = [0-9]+/max_input_vars = 5000/' "$php_ini"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It looks like this is looking for the commented out line, but not uncommenting it which means the new value would not apply. Is that your intention

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This also will not update existing installs. Is that needed?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants