Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Does the fastcgi permissions in nginx work like those in Apache, in which it runs with permissions of the script owner?

From what I see it runs with the permissions of the web user. Can it be changed to run with only the scripts owners rights?

share|improve this question

From what I understand suphp achieves this by using normal CGI instead of FastCGI which makes it far slower. There is also no nginx module that can do this. Generally Nginx isn't really suited for being used stand-alone on a shared hosting server.

share|improve this answer
I think my you misunderstood my question. But it does, given that the fastcgipass option sends the request to a socket with a script running as the script owner I would say it does. – vfclists Dec 7 '11 at 20:29
I think you phrased your question badly then. Nginx does not work with PHP as Apache does. Apache embeds PHP within itself and the Apache user == PHP user, it can even switch to different users. With Nginx there is a fastcgi abstraction layer so the nginx user != the php user and PHP cannot switch which user it runs as. If that's not what you meant the try reformulating your question. – Martin Fjordvald Dec 8 '11 at 15:55
up vote 1 down vote accepted

Yes nginx fastcgi permissions stay with the script owner

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.