Nginx connect() to unix:/var/run/fcgiwrap.socket failed
The socket has to be readable and writable by both client and server. Under the assumption that the server is running as www-data
and the client is running as forge
with group forge
, the following steps should fix the issue.
Change the group ownership of the socket to the group of user forge
.
chgrp forge /var/run/fcgiwrap.socket
Change the group permission to allow write for group forge
.
chmod g+w /var/run/fcgiwrap.socket
The socket will now be readable and writable by both server and client.