From: bradymiller Date: Sun, 28 Jul 2013 05:03:31 +0000 (-0700) Subject: Ubuntu Package modification - Added configuration of max_input_vars setting X-Git-Tag: whats-been-changed~245 X-Git-Url: https://repo.or.cz/w/openemr.git/commitdiff_plain/c8aa1d69da583d0e74d6d07a4ce1e27e6a7e76f9 Ubuntu Package modification - Added configuration of max_input_vars setting --- diff --git a/contrib/util/ubuntu_package_scripts/production/postinst b/contrib/util/ubuntu_package_scripts/production/postinst index 56945aab3..6d34753f1 100644 --- a/contrib/util/ubuntu_package_scripts/production/postinst +++ b/contrib/util/ubuntu_package_scripts/production/postinst @@ -474,6 +474,8 @@ case "$1" in UPLOAD=$(collect_php "$UPLOAD_TEXT") FILESIZE_TEXT="upload_max_filesize" FILESIZE=$(collect_php "$FILESIZE_TEXT") + MAXINPUTVARS_TEXT="max_input_vars" + MAXINPUTVARS=$(collect_php "$MAXINPUTVARS_TEXT") # Second, backup the php.ini file before modifying cp $PHP $PHP.BAK @@ -527,6 +529,9 @@ case "$1" in if [ "$FILESIZE" -lt "30" ]; then process_php "$FILESIZE_TEXT" "30M" $i fi + if [ "$MAXINPUTVARS" -lt "3000" ]; then + process_php "$MAXINPUTVARS_TEXT" "3000" $i + fi if [ "$FLAG_ON" -eq "0" ]; then log_only "Your PHP configuration is perfect for OpenEMR." break @@ -552,6 +557,8 @@ case "$1" in log_only "post_max_size = 30M" log_only "file_uploads = On" log_only "upload_max_filesize = 30M" + log_only "max_input_vars = 3000" + log_only "(note max_input_vars setting only exists since php 5.3.9)" fi log_only "Done configuring PHP"