Please tell me how to specify PHP-FPM.SOCK file.
In the config file in /opt/plesk/php/7.1/etc/php-fpm.d:
For example, it is set as follows.
nginx.conf:
If I set this up, I get a 502 Bad Gateway error.
Even if I set "server 127.0.0.1:9000" "listen=127.0.0.1:9000" it is an error.
How should I specify in Plesk?
My emvironment:
Plesk 17.0.17, CentOS 7.3, PHP 7.1.10, nginx 1.11.10.
In the config file in /opt/plesk/php/7.1/etc/php-fpm.d:
For example, it is set as follows.
listen = /var/run/php-fpm/php-fpm.sock
listen.owner = nginx
listen.group = nginx
listen.mode = 0660
listen.owner = nginx
listen.group = nginx
listen.mode = 0660
nginx.conf:
upstream php-handler {
server unix:/var/run/php-fpm/php-fpm.sock;
}
server unix:/var/run/php-fpm/php-fpm.sock;
}
If I set this up, I get a 502 Bad Gateway error.
Even if I set "server 127.0.0.1:9000" "listen=127.0.0.1:9000" it is an error.
How should I specify in Plesk?
My emvironment:
Plesk 17.0.17, CentOS 7.3, PHP 7.1.10, nginx 1.11.10.
Last edited: