prepare socket name for nginx to work with php5-fpm or php7.0-fpm (recommited)

This commit is contained in:
erxspin 2017-02-26 00:13:27 +06:00
parent 74d33ea08d
commit ec872f5b68
1 changed files with 6 additions and 0 deletions

View File

@ -50,6 +50,12 @@ fi
#enable fusionpbx nginx config
cp nginx/fusionpbx /etc/nginx/sites-available/fusionpbx
#prepare socket name
if [ .$USE_PHP5_PACKAGE = .true ]; then
sed -i /etc/nginx/sites-available/fusionpbx -e 's#unix:.*;#unix:/var/run/php5-fpm.sock;#g'
else
sed -i /etc/nginx/sites-available/fusionpbx -e 's#unix:.*;#unix:/var/run/php/php7.0-fpm.sock;#g'
fi
ln -s /etc/nginx/sites-available/fusionpbx /etc/nginx/sites-enabled/fusionpbx
#self signed certificate