From c8aa1d69da583d0e74d6d07a4ce1e27e6a7e76f9 Mon Sep 17 00:00:00 2001 From: bradymiller Date: Sat, 27 Jul 2013 22:03:31 -0700 Subject: [PATCH] Ubuntu Package modification - Added configuration of max_input_vars setting --- contrib/util/ubuntu_package_scripts/production/postinst | 7 +++++++ 1 file changed, 7 insertions(+) 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" -- 2.11.4.GIT