Added nginx without PHP-FPM

This commit is contained in:
2020-09-03 14:56:21 +02:00
parent b591875112
commit 7f6c006d2c
9 changed files with 122 additions and 3 deletions

View File

@@ -1,7 +1,12 @@
#Backend PHP Pool
#Do not generate php pool when php is not installed
if [ $webserv != nginx-nonphp ]; then
#Setup PHP Pool
wget -q -t7 "$repo"/raw/branch/"$branch"/CMS/none/Fpm-Pool.conf-unconfigured -O /etc/php/"$phpver"/fpm/pool.d/"$sitename".conf
sed -i -e 's/PHPver/'$phpver'/' -e 's/SITEname/'$sitename'/' -e 's/DOMAINname/'$domain'/' /etc/php/"$phpver"/fpm/pool.d/$sitename.conf
groupadd "$sitename"
useradd -g "$sitename" "$sitename"
systemctl reload php"$phpver"-fpm
systemctl reload php"$phpver"-fpm
fi