Эх сурвалжийг харах

Update php.ini variables with better defaults.

FusionPBX 4 жил өмнө
parent
commit
389d355630

+ 10 - 0
debian/resources/upgrade/php.sh

@@ -24,5 +24,15 @@ apt-get install -y php7.1 php7.1-cli php7.1-fpm php7.1-pgsql php7.1-sqlite3 php7
 #update the unix socket name
 sed -i /etc/nginx/sites-available/fusionpbx -e 's#unix:.*;#unix:/var/run/php/php7.1-fpm.sock;#g'
 
+#set the PHP ini file path
+php_ini_file='/etc/php/7.1/fpm/php.ini'
+
+#update config if source is being used
+sed 's#post_max_size = .*#post_max_size = 80M#g' -i $php_ini_file
+sed 's#upload_max_filesize = .*#upload_max_filesize = 80M#g' -i $php_ini_file
+sed 's#;max_input_vars = .*#max_input_vars = 8000#g' -i $php_ini_file
+sed 's#; max_input_vars = .*#max_input_vars = 8000#g' -i $php_ini_file
+
 #restart nginx
 service nginx restart
+