Enhance-Add php config (#30)
update the post_max_size to 32M during the install
This commit is contained in:
parent
9a524b4329
commit
ae2c3ee411
|
|
@ -88,6 +88,9 @@ resources/fusionpbx.sh
|
||||||
#NGINX web server
|
#NGINX web server
|
||||||
resources/nginx.sh
|
resources/nginx.sh
|
||||||
|
|
||||||
|
#PHP
|
||||||
|
resources/php.sh
|
||||||
|
|
||||||
#Fail2ban
|
#Fail2ban
|
||||||
resources/fail2ban.sh
|
resources/fail2ban.sh
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -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
|
||||||
Loading…
Reference in New Issue