Update php.sh (#155)

This commit is contained in:
Len 2018-03-08 22:09:29 -05:00 committed by FusionPBX
parent b02db342e7
commit cb3dcc82e1
1 changed files with 3 additions and 3 deletions

View File

@ -21,8 +21,8 @@ if [ ."$php_version" = ."5" ]; then
php_ini_file='/etc/php5/fpm/php.ini' php_ini_file='/etc/php5/fpm/php.ini'
fi fi
if [ ."$php_version" = ."7" ]; then if [ ."$php_version" = ."7" ]; then
verbose "version 7.0" verbose "version 7.1"
php_ini_file='/etc/php/7.0/fpm/php.ini' php_ini_file='/etc/php/7.1/fpm/php.ini'
fi fi
sed 's#post_max_size = .*#post_max_size = 80M#g' -i $php_ini_file 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#upload_max_filesize = .*#upload_max_filesize = 80M#g' -i $php_ini_file
@ -33,7 +33,7 @@ if [ ."$php_version" = ."5" ]; then
systemctl restart php5-fpm systemctl restart php5-fpm
fi fi
if [ ."$php_version" = ."7" ]; then if [ ."$php_version" = ."7" ]; then
systemctl restart php7.0-fpm systemctl restart php7.1-fpm
fi fi
#init.d #init.d