Debian 8 - Nginx + PHP7-FPM - Pool does not exist when adding new domain
Posted: Sat Nov 26, 2016 8:07 pm
Debian 8 - R17 - Fresh Install
I've installed PHP-7.0-fpm, everything is going great, I've created the templates, updated vesta.conf with the new backend name, all good. I can stop / start / restart the service from the web GUI.
When I create the domain name I get the error message:
"php-fpm pool doesn't exist"
Looking at the domain.sh line 87 I see:
Running:
Results in:
and the file "www.conf" exists inside this dir.
Any idea why Vesta cannot find the pool?
Running:
shows everything is working fine:
I also updated:
From to
Thanks.
I've installed PHP-7.0-fpm, everything is going great, I've created the templates, updated vesta.conf with the new backend name, all good. I can stop / start / restart the service from the web GUI.
When I create the domain name I get the error message:
"php-fpm pool doesn't exist"
Looking at the domain.sh line 87 I see:
Code: Select all
pool=$(find /etc/php* -type d \( -name "pool.d" -o -name "*fpm.d" \))
if [ ! -e "$pool" ]; then
check_result $E_NOTEXIST "php-fpm pool doesn't exist"
fi
Code: Select all
$(find /etc/php* -type d \( -name "pool.d" -o -name "*fpm.d" \))
Code: Select all
bash: /etc/php/7.0/fpm/pool.d: Is a directory
Any idea why Vesta cannot find the pool?
Running:
Code: Select all
service php7.0-fpm status
Code: Select all
● php7.0-fpm.service - The PHP 7.0 FastCGI Process Manager
Loaded: loaded (/lib/systemd/system/php7.0-fpm.service; enabled)
Active: active (running) since Fri 2016-11-25 12:58:41 PST; 11h ago
Docs: man:php-fpm7.0(8)
Main PID: 418 (php-fpm7.0)
Status: "Processes active: 0, idle: 2, Requests: 0, slow: 0, Traffic: 0req/sec"
CGroup: /system.slice/php7.0-fpm.service
├─418 php-fpm: master process (/etc/php/7.0/fpm/php-fpm.conf)
├─468 php-fpm: pool www
└─469 php-fpm: pool www
Nov 25 12:58:41 localdev03.example.com systemd[1]: Starting The PHP 7.0 FastCGI Process Manager...
Nov 25 12:58:41 localdev03.example.com systemd[1]: Started The PHP 7.0 FastCGI Process Manager.
Code: Select all
/usr/local/vesta/data/templates/web/php7.0-fpm/socket.tpl
Code: Select all
/var/run/php5-%backend%.sock
Code: Select all
/var/run/php/php7.0-%backend%.sock