From ae2c3ee411bcc08d19bcad62ed3b94b4a88eb1f1 Mon Sep 17 00:00:00 2001 From: Mafoo Date: Tue, 2 Aug 2016 18:14:57 +0100 Subject: [PATCH] Enhance-Add php config (#30) update the post_max_size to 32M during the install --- debian/install.sh | 3 +++ debian/resources/php.sh | 14 ++++++++++++++ 2 files changed, 17 insertions(+) create mode 100644 debian/resources/php.sh diff --git a/debian/install.sh b/debian/install.sh index c22757f..53f3130 100755 --- a/debian/install.sh +++ b/debian/install.sh @@ -88,6 +88,9 @@ resources/fusionpbx.sh #NGINX web server resources/nginx.sh +#PHP +resources/php.sh + #Fail2ban resources/fail2ban.sh diff --git a/debian/resources/php.sh b/debian/resources/php.sh new file mode 100644 index 0000000..56b93ca --- /dev/null +++ b/debian/resources/php.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