fusionpbx-install.sh/debian/resources/php.sh

22 lines
465 B
Bash
Raw Normal View History

#!/bin/sh
#move to script directory so all relative paths work
cd "$(dirname "$0")"
. ./colors.sh
. ./arguments.sh
#send a message
verbose "Configuring PHP"
#update config if source is being used
2016-08-03 20:09:53 +02:00
sed 's#post_max_size = .*#post_max_size = 80M#g' -i /etc/php5/fpm/php.ini
sed 's#upload_max_filesize = .*#upload_max_filesize = 80M#g' -i /etc/php5/fpm/php.ini
#restart php5-fpm
#systemd
/bin/systemctl restart php5-fpm
#init.d
#/usr/sbin/service php5-fpm restart