Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Post new topic  Reply to topic
Author Message
PostPosted: Tue Dec 21, 2010 11:19 pm 
Offline
Newbie

Joined: Tue Dec 21, 2010 7:44 pm
Posts: 4
[solved]


Last edited by alanhan on Mon Jan 24, 2011 5:43 pm, edited 1 time in total.

Top
   
 Post subject:
PostPosted: Wed Dec 22, 2010 12:35 am 
Offline
Senior Member

Joined: Fri May 02, 2008 8:44 pm
Posts: 1121
That error message means that the PHP-FPM process is not running. What happens when you type
Code:
/etc/init.d/php-fpm start


Top
   
 Post subject:
PostPosted: Wed Dec 22, 2010 1:55 am 
Offline
Newbie

Joined: Tue Dec 21, 2010 7:44 pm
Posts: 4
hybinet wrote:
That error message means that the PHP-FPM process is not running. What happens when you type
Code:
/etc/init.d/php-fpm start

the php page is still not running, it was redirected to nginx's 50x.html


Top
   
 Post subject:
PostPosted: Wed Dec 22, 2010 2:58 am 
Offline
Newbie

Joined: Tue Dec 21, 2010 7:44 pm
Posts: 4
Problem solved! Here's how:

go to /usr/local/etc/php-fpm.conf, find this line

Code:
listen = /usr/local/var/run/php-fpm.sock


comment it, and add this line after it

Code:
listen = 127.0.0.1:9000


However, I'm still not sure why this line is the cause of all the problems. Does anyone know why?


Top
   
 Post subject:
PostPosted: Wed Dec 22, 2010 4:33 am 
Offline
Senior Member

Joined: Sun Mar 07, 2010 7:47 pm
Posts: 1970
Website: http://www.rwky.net
Location: Earth
Yep, it's because listen = /usr/local/var/run/php-fpm.sock is a unix socket and you had nginx trying to pass via tcp fastcgi_pass 127.0.0.1:9000;

If you want to use the unix socket (I do they tend to be a little bit faster) set fastcgi_pass to unix:/usr/local/var/run/php-fpm.sock

_________________
Paid support
How to ask for help
1. Give details of your problem
2. Post any errors
3. Post relevant logs.
4. Don't hide details i.e. your domain, it just makes things harder
5. Be polite or you'll be eaten by a grue


Top
   
 Post subject:
PostPosted: Wed Dec 22, 2010 6:30 am 
Offline
Newbie

Joined: Tue Dec 21, 2010 7:44 pm
Posts: 4
[solved]


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