I am trying to get devilbox/php-fpm:7.1-work to work with socket and has override the php-fpm.conf using this
[global]
daemonize = no
[www]
listen = /var/run/php-fpm.sock
listen.mode = 0666
and mount it to /etc/php-fpm-custom.d
my nginx conf is like this
location ~ ^/(app_dev|index)\.php(/|$) {
proxy_connect_timeout 300;
proxy_send_timeout 300;
proxy_read_timeout 300;
fastcgi_connect_timeout 300;
fastcgi_send_timeout 300;
fastcgi_read_timeout 300;
fastcgi_pass unix:/var/run/php-fpm.sock;
fastcgi_index app_dev.php;
fastcgi_split_path_info ^(.+\.php)(/.*)$;
fastcgi_buffering off;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
include fastcgi_params;
}
maybe anyone can help to point up why i got this on nginx log
2020/03/20 03:29:01 [crit] 9#9: *16 connect() to unix:/var/run/php-fpm.sock failed (2: No such file or directory) while connecting to upstream, client: 172.18.0.1, server: localhost:8080, request: “GET /checkout-step1 HTTP/1.1”, upstream: “fastcgi://unix:/var/run/php-fpm.sock:”, host: “localhost:8080”
thank you