Error: Socket fails to be created:

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.somesiite.top, request: “GET / HTTP/1.1”, upstream: “fastcgi://unix:/var/php-nginx/165273053211384.sock/socket:”, host: “base.somesiite.top”

This is when I use the php default options for fCGId.

Part 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.
i followed instructions on a related thread, but it still does not work: —https://stackoverflow.com/questions/51158830/nginx-connect-to-unix-var-run-php7-2-fpm-sock-failed-2-no-such-file-or-dir

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