I use CentOS 6.5 (64bit) with Nginx, PHP-FPM. Nginx with FastCGI connect to PHP-FPM using unix domain socket. When I place the socket in a directory with proper permission, it's OK. However when I place the socket in the /tmp
, it will cause nginx error:
In the error log of my VHOST i get :
connect() to unix:/tmp/MySite.sock failed (2: No such file or directory) while connecting to upstream
That's about all I've got so far. How can I fix this.