Permalink
Browse files

minor #3706 Add support for nginx (guiditoito)

This PR was submitted for the 2.4 branch but it was merged into the 2.3 branch instead (closes #3706).

Discussion
----------

Add support for nginx

This doesn't work for nginx you forgot the user. It's a broadly used webserver at this point and should be included.

Commits
-------

3d652f3 Add support for nginx
  • Loading branch information...
weaverryan committed Mar 24, 2014
2 parents 00a462a + 08a2f7b commit 5035837f46ed407cbabd11ad2c15098b349127e7
Showing with 2 additions and 2 deletions.
  1. +2 −2 book/installation.rst
View
@@ -233,7 +233,7 @@ If there are any issues, correct them now before moving on.
$ rm -rf app/cache/*
$ rm -rf app/logs/*
$ APACHEUSER=`ps aux | grep -E '[a]pache|[h]ttpd|[_]www|[w]ww-data' | grep -v root | head -1 | cut -d\ -f1`
$ APACHEUSER=`ps aux | grep -E '[a]pache|[h]ttpd|[_]www|[w]ww-data|[n]ginx' | grep -v root | head -1 | cut -d\ -f1`
$ sudo chmod +a "$APACHEUSER allow delete,write,append,file_inherit,directory_inherit" app/cache app/logs
$ sudo chmod +a "`whoami` allow delete,write,append,file_inherit,directory_inherit" app/cache app/logs
@@ -248,7 +248,7 @@ If there are any issues, correct them now before moving on.
.. code-block:: bash
$ APACHEUSER=`ps aux | grep -E '[a]pache|[h]ttpd|[_]www|[w]ww-data' | grep -v root | head -1 | cut -d\ -f1`
$ APACHEUSER=`ps aux | grep -E '[a]pache|[h]ttpd|[_]www|[w]ww-data|[n]ginx' | grep -v root | head -1 | cut -d\ -f1`
$ sudo setfacl -Rn -m u:"$APACHEUSER":rwX -m u:`whoami`:rwX app/cache app/logs
$ sudo setfacl -dRn -m u:"$APACHEUSER":rwX -m u:`whoami`:rwX app/cache app/logs

0 comments on commit 5035837

Please sign in to comment.