I am moving my website to a new server, and am having problems with php-fpm/php5-fpm... I know my current setup is correct but i am confused as to why i am seeing these permission denied, and file does not exist errors while setting things up. Last thing i need to get done before i can start migrating from server to server. I must get php-fpm working.. Error/log shows this: 2013/02/26 20:48:47 [crit] 13614#0: *3 connect() to unix:/usr/sbin/php5-fpm.sock failed (2: No such file or directory) while connecting to upstream, client: xx.xxx.xxx.x, server: domain.com, request: "GET / HTTP/1.0", upstream: "fastcgi://unix:/usr/sbin/php5-fpm.sock:", host: "elliegoulding.me", referrer: "http://domain.com/index.php" I used whereis php5-fpm, and got this: root@ICC:~# whereis php5-fpm php5-fpm: /usr/sbin/php5-fpm /usr/share/man/man8/php5-fpm.8.gz root@ICC:~# If you need any more information i will post here. I am pretty confused ;_;
Another problem i am having with ph5p-fpm is: connect() to unix:/usr/sbin/php5-fpm failed (111: Connection refused) while connecting to upstream
Is PHP-FPM *running*? It's a daemon, so it should be actually running if you want to use it (similar to Apache, Nginx or MySQL).
@digitalpoint @HWS I figured it out.. Forgot to configure php-fpm ;_; It was still running default settings.
If anyone else has this problem. I have my nginx sites-available/sites-enabled set to listen for php-fpm/php5-fpm.sock The way i got this working was changing www.conf so php-fpm is listening here. ;listen = 127.0.0.1:9000 (This - commented out) listen = /usr/sbin/php5-fpm.sock (This is where php-fpm needed to listen)