Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Post new topic  Reply to topic
Author Message
PostPosted: Sat May 10, 2014 9:53 pm 
Offline
Newbie

Joined: Fri Jun 21, 2013 10:40 pm
Posts: 3
my php-fpm was upgrade via apt-get and it is causing all my sites to return back as 502 errors.. Upon looking at the nginx log, it was generating these:

2014/05/10 21:50:02 [crit] 1329#0: *39 connect() to unix:/var/run/fpm.boost.sock failed (13: Permission denied) while connecting to upstream, client: 162.243.252.230, server: http://www.boostmyfitness.com, request: "GET /wp-cron.php HTTP/1.1", upstream: "fastcgi://unix:/var/run/fpm.boost.sock:", host: "www.boostmyfitness.com"

I looked at /var/run folder and saw all the fpm sockets were root:root.. it should be owned by username:www-data (based on pool.d conf file).. I am not sure where to fix that permission issue.. I can issue chown and get the site back up running until php-fpm is restarted.

Im running Ubuntu 14.04 with:
PHP 5.5.12-1+deb.sury.org~trusty+1 (cli) (built: May 8 2014 21:09:59)
nginx version: nginx/1.7.0

Thanks,
Richard


Top
   
PostPosted: Sun May 11, 2014 7:39 am 
Offline
Senior Member

Joined: Sat Nov 27, 2010 8:21 pm
Posts: 63
This was a security fix in PHP 5.5.12. Default perms on the socket changed from 0666 to 0660. The settings you need to specify are listen.owner and listen.group in php-fpm config for each pool.


Top
   
PostPosted: Sun May 11, 2014 3:29 pm 
Offline
Senior Newbie

Joined: Fri Jan 03, 2014 6:21 pm
Posts: 8
I run my php-fpm process as a different user than my nginx process. To bridge the two users, I create a new group and added both users as members. Then I updated listen.group to the new group. You will have to restart nginx and php-fpm after doing this.

robert


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


Who is online

Users browsing this forum: No registered users and 3 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