Enhance-Add php config (#30)

update the post_max_size to 32M during the install
This commit is contained in:
Mafoo 2016-08-02 18:14:57 +01:00 committed by FusionPBX
parent 9a524b4329
commit ae2c3ee411
2 changed files with 17 additions and 0 deletions

3
debian/install.sh vendored
View File

@ -88,6 +88,9 @@ resources/fusionpbx.sh
#NGINX web server
resources/nginx.sh
#PHP
resources/php.sh
#Fail2ban
resources/fail2ban.sh

14
debian/resources/php.sh vendored Normal file
View File

@ -0,0 +1,14 @@
#!/bin/sh
#send a message
echo "Configure PHP"
#update config if source is being used
sed 's#post_max_size = .*#post_max_size = 32M#g' -i /etc/php5/fpm/php.ini
#restart php5-fpm
#systemd
/bin/systemctl restart php5-fpm
#init.d
#/usr/sbin/service php5-fpm restart