fixed php*-fpm service name and php.ini file path (recommited)
This commit is contained in:
parent
5b9b55fd2c
commit
74d33ea08d
|
|
@ -157,7 +157,11 @@ server_address=$(hostname -I)
|
||||||
|
|
||||||
#restart services
|
#restart services
|
||||||
systemctl daemon-reload
|
systemctl daemon-reload
|
||||||
systemctl restart php7.0-fpm
|
if [ .$USE_PHP5_PACKAGE = .true ]; then
|
||||||
|
systemctl restart php5-fpm
|
||||||
|
else
|
||||||
|
systemctl restart php7.0-fpm
|
||||||
|
fi
|
||||||
systemctl restart nginx
|
systemctl restart nginx
|
||||||
systemctl restart fail2ban
|
systemctl restart fail2ban
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -10,12 +10,23 @@ cd "$(dirname "$0")"
|
||||||
verbose "Configuring PHP"
|
verbose "Configuring PHP"
|
||||||
|
|
||||||
#update config if source is being used
|
#update config if source is being used
|
||||||
sed 's#post_max_size = .*#post_max_size = 80M#g' -i /etc/php/7.0/fpm/php.ini
|
if [ .$USE_PHP5_PACKAGE = .true ]; then
|
||||||
sed 's#upload_max_filesize = .*#upload_max_filesize = 80M#g' -i /etc/php/7.0/fpm/php.ini
|
verbose "version 5.x"
|
||||||
|
php_ini_file='/etc/php5/fpm/php.ini'
|
||||||
|
else
|
||||||
|
verbose "version 7.0"
|
||||||
|
php_ini_file='/etc/php/7.0/fpm/php.ini'
|
||||||
|
fi
|
||||||
|
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
|
||||||
|
|
||||||
#restart php-fpm
|
#restart php-fpm
|
||||||
#systemd
|
#systemd
|
||||||
/bin/systemctl restart php7.0-fpm
|
if [ .$USE_PHP5_PACKAGE = .true ]; then
|
||||||
|
systemctl restart php5-fpm
|
||||||
|
else
|
||||||
|
systemctl restart php7.0-fpm
|
||||||
|
fi
|
||||||
|
|
||||||
#init.d
|
#init.d
|
||||||
#/usr/sbin/service php7.0-fpm restart
|
#/usr/sbin/service php7.0-fpm restart
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue