How can I setup my local Nginx server so I can edit the files?

Posted by Shane Grant on Server Fault See other posts from Server Fault or by Shane Grant
Published on 2012-03-29T04:07:45Z Indexed on 2012/03/29 5:31 UTC
Read the original article Hit count: 302

Filed under:
|
|

I have my local development machine running Arch Linux, Nginx, PHP-FPM and MySQL.

In order for the websites I am working on to run the files need to be owned by the http user. The files are currently located in folders like this:

/srv/http/site1/
/srv/http/site2/

When I use the following chown command on the http folder the sites work fine, but I cannot edit the files with my user:

chown -R http.users /srv/http

When I do this the sites do not work, but I can edit the files:

chown -R shane.http /srv/http

How can I make it so that my user can edit the files, and the web server can run them at the same time?

Thank you

© Server Fault or respective owner

Related posts about linux

Related posts about nginx