Skip to content

Commit 8222639

Browse files
committed
bug #6292 Fix setting permission for var subdirectories (voda)
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
2 parents 657ba99 + dbee0df commit 8222639

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

book/installation.rst

+2-2
Original file line numberDiff line numberDiff line change
@@ -252,8 +252,8 @@ If there are any issues, correct them now before moving on.
252252
$ rm -rf var/cache/* var/logs/* var/sessions/*
253253
254254
$ 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`
255-
$ sudo chmod +a "$HTTPDUSER allow delete,write,append,file_inherit,directory_inherit" var
256-
$ sudo chmod +a "`whoami` allow delete,write,append,file_inherit,directory_inherit" var
255+
$ sudo chmod -R +a "$HTTPDUSER allow delete,write,append,file_inherit,directory_inherit" var
256+
$ sudo chmod -R +a "`whoami` allow delete,write,append,file_inherit,directory_inherit" var
257257
258258
259259
**3. Using ACL on a system that does not support chmod +a**

0 commit comments

Comments
 (0)