Major Gateway Error: socket failed (No such file)

SYSTEM INFORMATION
OS type and version Debian Linux 10
Webmin version 1.984
Virtualmin version 6.17-3
Related packages SUGGESTED

Socket fails to be created:
— in error log:
2022/05/16 23:59:07 [crit] 9457#9457: *1 connect() to unix:/var/php-nginx/165273053211384.sock/socket failed (2: No such file or directory) while connecting to upstream, client: 98.110.185.136, server: base.nginxweb.top, request: “GET / HTTP/1.1”, upstream: “fastcgi://unix:/var/php-nginx/165273053211384.sock/socket:”, host: “base.nginxweb.top”

this is when I use the php default options for fCGId/

Problem 2:
if I instead switch to the fpm settings, it creates the same port number as the last site, which conflicts, so I have to manually edit it in both the nginx config AND the /etc/php/7.4/fpm/pool.d/numbered file] listen = localhost:8001

This happens on recent sites. Older sites I have on same server work fine.
I should add: i have multiple versions of php, but i set 7.4 as the default. i checked that the configs have the correct version.

This is old problem yes also on centos7 , apache php fpm i have to change manually.
But i didn’t update vmin to later version so i don’t know or this or other problem (socket related) is solved. Multiple php fpm remi here.

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.