LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 03-19-2014, 04:57 PM   #1
fantasygoat
Member
 
Registered: Sep 2009
Posts: 119

Rep: Reputation: 17
PHP-FPM creating directories as root despite being set as nginx


I have PHP-FPM running as the nginx user:

Quote:
listen.owner = nginx
listen.group = nginx
user = nginx
group = nginx
But the master process is running as root:

Quote:
root 25093 0.0 0.0 565252 8272 ? Ss 17:27 0:00 php-fpm: master process (/etc/php-fpm.conf)
nginx 25094 0.0 0.1 568672 23052 ? S 17:27 0:01 php-fpm: pool www
nginx 25095 0.1 0.1 568900 21960 ? S 17:27 0:02 php-fpm: pool www
And I suspect it's that one that is doing directory creation and setting the owner as root.

Does anyone have a solution to this permissions problem? Is there a way to get the master process to run as nginx as well?
 
Old 03-21-2014, 03:38 PM   #2
pedor
LQ Newbie
 
Registered: Jul 2008
Posts: 6

Rep: Reputation: 0
Is listen.mode set to 0666 ?
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
nginx + php-fpm and nginx modules fantasygoat Linux - Server 0 06-09-2011 12:21 PM
Nginx experts help me-problem when using Nginx php-fpm !!! HuMan-BiEnG Linux - Server 2 04-17-2011 02:30 PM
NGINX with PHP-FPM vis NGINX with Spawn-FCGI WhisperiN Linux - Server 1 03-15-2011 06:39 PM
LXer: Installing Nginx With PHP 5.3 And PHP-FPM On Ubuntu Lucid Lynx (10.04) LXer Syndicated Linux News 0 06-14-2010 11:42 PM
LXer: Installing PHP 5.3, Nginx And PHP-fpm On Ubuntu/Debian LXer Syndicated Linux News 0 02-10-2010 05:40 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 04:36 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration