LEMP/fcgi/php-fpm issue
In the process of switching some sites, I saw I needed to install curl. Installed curl. Now, nginx is failing on all php files with a 502.
ps -lax and netstat -ntlp shows me that php-fpm is running, but nothing is listening on 127.0.0.1:9000, which is what i think the problem is.
Anyone have any thoughts or experience? I'd love to get some help. I hate Apache, been using nginx for Rails for a while with great success. This issue with php has just been an problem for me for several days now, so I decided to finally try and ask for some help.
3 Replies
what i did to fix it:
inside /etc/php5/fpm/pool.d/
i changed
listen = /var/run/php5-fpm.sock
to explicitly be:
listen=127.0.0.1:9000
works as expected now.
don't really know why that would've suddenly become an issue, though.
@Binoj:
Well, thanks for sharing the fix…
yeah, i try not to do that, because i hate it when other people do that