Skip to content

Commit

Permalink
bug #6292 Fix setting permission for var subdirectories (voda)
Browse files Browse the repository at this point in the history
This PR was merged into the 3.0 branch.

Discussion
----------

Fix setting permission for var subdirectories

Subdirectories are created before the chmod command is executed, so ACL wouldn't be set on them an webserver would complain that it cant write to them.

Bug introduced in 14d2afb

Commits
-------

dbee0df Fix setting permission for var subdirectories
  • Loading branch information
weaverryan committed Feb 21, 2016
2 parents 657ba99 + dbee0df commit 8222639
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions book/installation.rst
Original file line number Diff line number Diff line change
Expand Up @@ -252,8 +252,8 @@ If there are any issues, correct them now before moving on.
$ rm -rf var/cache/* var/logs/* var/sessions/*
$ HTTPDUSER=`ps axo user,comm | grep -E '[a]pache|[h]ttpd|[_]www|[w]ww-data|[n]ginx' | grep -v root | head -1 | cut -d\ -f1`
$ sudo chmod +a "$HTTPDUSER allow delete,write,append,file_inherit,directory_inherit" var
$ sudo chmod +a "`whoami` allow delete,write,append,file_inherit,directory_inherit" var
$ sudo chmod -R +a "$HTTPDUSER allow delete,write,append,file_inherit,directory_inherit" var
$ sudo chmod -R +a "`whoami` allow delete,write,append,file_inherit,directory_inherit" var
**3. Using ACL on a system that does not support chmod +a**
Expand Down

0 comments on commit 8222639

Please sign in to comment.