I'm trying to install bugzilla on ubuntu + nginx and because I'm not a Linux expert, I encountered a problem at a certain stage. I did everything according to the instructions, and when I try to access the site I get the following error in error.log:
connect() to unix:/var/run/fcgiwrap.sock failed (2: No such file or directory) while connecting to upstream, client: ..., server: ..., request: "GET / HTTP/1.1", upstream: "fastcgi://unix:/var/run/fcgiwrap.sock:", host: "..." I found how to launch this socket, I launch it with the following command:
fcgiwrap -s unix:/var/run/fcgiwrap.sock the socket is started:
# ls -la /run/fcgi* srwxr-xr-x 1 root root 0 Jun 10 12:08 /run/fcgiwrap.sock srw-rw-rw- 1 root root 0 Jun 9 19:20 /run/fcgiwrap.socket but when I trying to open the website I get 502 error, and the error in error.log:
connect() to unix:/var/run/fcgiwrap.sock failed (13: Permission denied) while connecting to upstream, client: ... , server: ..., request: "GET / HTTP/1.1", upstream: "fastcgi://unix:/var/run/fcgiwrap.sock:", host: "..." and the second problem, after rebooting the server /var/run/fcgiwrap.sock stops working, how can I prevent it from unloading after rebooting the system?
/var/run/fcgiwrap.sockand/run/fcgiwrap.sockare the same socket? 2. Socket must be writable for nginx' worker user which is usually www-data or nobody.