Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Post new topic  Reply to topic
Author Message
 Post subject: LEMP/fcgi/php-fpm issue
PostPosted: Wed Jun 08, 2011 3:32 pm 
Offline
Newbie

Joined: Wed Jun 08, 2011 3:18 pm
Posts: 3
I'm new to nginx with fcgi for php. Just created a 512, used the StackScript for LEMP on Debian, and got some stuff working.

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.


Top
   
 Post subject:
PostPosted: Wed Jun 08, 2011 4:08 pm 
Offline
Newbie

Joined: Wed Jun 08, 2011 3:18 pm
Posts: 3
wow, of course i'd fix it immediately after asking.

what i did to fix it:

inside /etc/php5/fpm/pool.d/www.conf

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.


Top
   
 Post subject:
PostPosted: Wed Jun 08, 2011 11:18 pm 
Offline
Senior Newbie

Joined: Mon Nov 29, 2010 10:08 pm
Posts: 5
Website: http://www.dbinoj.com
Location: Trichy, IN
Well, thanks for sharing the fix...


Top
   
 Post subject:
PostPosted: Wed Jun 08, 2011 11:23 pm 
Offline
Newbie

Joined: Wed Jun 08, 2011 3:18 pm
Posts: 3
Binoj wrote:
Well, thanks for sharing the fix...

yeah, i try not to do that, because i hate it when other people do that


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic


Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
RSS

Powered by phpBB® Forum Software © phpBB Group