@@ -214,8 +214,8 @@ If there are any issues, correct them now before moving on.
214
214
215
215
.. sidebar :: Setting up Permissions
216
216
217
- One common issue when installing Symfony is that the ``app /cache `` and
218
- ``app /logs `` directories must be writable both by the web server and the
217
+ One common issue when installing Symfony is that the ``var /cache `` and
218
+ ``var /logs `` directories must be writable both by the web server and the
219
219
command line user. On a UNIX system, if your web server user is different
220
220
from your command line user, you can try one of the following solutions.
221
221
@@ -236,12 +236,12 @@ If there are any issues, correct them now before moving on.
236
236
237
237
.. code-block :: bash
238
238
239
- $ rm -rf app /cache/*
240
- $ rm -rf app /logs/*
239
+ $ rm -rf var /cache/*
240
+ $ rm -rf var /logs/*
241
241
242
242
$ 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`
243
- $ sudo chmod +a " $HTTPDUSER allow delete,write,append,file_inherit,directory_inherit" app /cache app /logs
244
- $ sudo chmod +a " ` whoami` allow delete,write,append,file_inherit,directory_inherit" app /cache app /logs
243
+ $ sudo chmod +a " $HTTPDUSER allow delete,write,append,file_inherit,directory_inherit" var /cache var /logs
244
+ $ sudo chmod +a " ` whoami` allow delete,write,append,file_inherit,directory_inherit" var /cache var /logs
245
245
246
246
247
247
**3. Using ACL on a system that does not support chmod +a **
@@ -255,8 +255,8 @@ If there are any issues, correct them now before moving on.
255
255
.. code-block :: bash
256
256
257
257
$ 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`
258
- $ sudo setfacl -R -m u:" $HTTPDUSER " :rwX -m u:` whoami` :rwX app /cache app /logs
259
- $ sudo setfacl -dR -m u:" $HTTPDUSER " :rwX -m u:` whoami` :rwX app /cache app /logs
258
+ $ sudo setfacl -R -m u:" $HTTPDUSER " :rwX -m u:` whoami` :rwX var /cache var /logs
259
+ $ sudo setfacl -dR -m u:" $HTTPDUSER " :rwX -m u:` whoami` :rwX var /cache var /logs
260
260
261
261
If this doesn't work, try adding ``-n `` option.
262
262
0 commit comments