@@ -226,15 +226,15 @@ If there are any issues, correct them now before moving on.
226
226
227
227
Many systems allow you to use the ``chmod +a `` command. Try this first,
228
228
and if you get an error - try the next method. This uses a command to
229
- try to determine your web server user and set it as ``APACHEUSER ``:
229
+ try to determine your web server user and set it as ``HTTPDUSER ``:
230
230
231
231
.. code-block :: bash
232
232
233
233
$ rm -rf app/cache/*
234
234
$ rm -rf app/logs/*
235
235
236
- $ APACHEUSER =` ps aux | grep -E ' [a]pache|[h]ttpd|[_]www|[w]ww-data|[n]ginx' | grep -v root | head -1 | cut -d\ -f1`
237
- $ sudo chmod +a " $APACHEUSER allow delete,write,append,file_inherit,directory_inherit" app/cache app/logs
236
+ $ HTTPDUSER =` ps aux | grep -E ' [a]pache|[h]ttpd|[_]www|[w]ww-data|[n]ginx' | grep -v root | head -1 | cut -d\ -f1`
237
+ $ sudo chmod +a " $HTTPDUSER allow delete,write,append,file_inherit,directory_inherit" app/cache app/logs
238
238
$ sudo chmod +a " ` whoami` allow delete,write,append,file_inherit,directory_inherit" app/cache app/logs
239
239
240
240
@@ -244,14 +244,14 @@ If there are any issues, correct them now before moving on.
244
244
called ``setfacl ``. You may need to `enable ACL support `_ on your partition
245
245
and install setfacl before using it (as is the case with Ubuntu). This
246
246
uses a command to try to determine your web server user and set it as
247
- ``APACHEUSER ``:
247
+ ``HTTPDUSER ``:
248
248
249
249
.. code-block :: bash
250
250
251
- $ APACHEUSER =`ps aux | grep -E '[a]pache|[h]ttpd|[_]www|[w]ww-data|[n]ginx' | grep -v root | head -1 | cut -d\ -f1`
252
- $ sudo setfacl -Rn -m u:"$APACHEUSER ":rwX -m u: `whoami `:rwX app/cache app/logs
253
- $ sudo setfacl -dRn -m u:"$APACHEUSER ":rwX -m u: `whoami `:rwX app/cache app/logs
254
-
251
+ $ HTTPDUSER =`ps aux | grep -E '[a]pache|[h]ttpd|[_]www|[w]ww-data|[n]ginx' | grep -v root | head -1 | cut -d\ -f1`
252
+ $ sudo setfacl -Rn -m u:"$HTTPDUSER ":rwX -m u: `whoami `:rwX app/cache app/logs
253
+ $ sudo setfacl -dRn -m u:"$HTTPDUSER ":rwX -m u: `whoami `:rwX app/cache app/logs
254
+
255
255
**3. Without using ACL **
256
256
257
257
If you don't have access to changing the ACL of the directories, you will
@@ -269,7 +269,7 @@ If there are any issues, correct them now before moving on.
269
269
270
270
Note that using the ACL is recommended when you have access to them
271
271
on your server because changing the umask is not thread-safe.
272
-
272
+
273
273
**4. Use the same user for the CLI and the web server **
274
274
275
275
In development environments, it is a common practice to use the same unix
0 commit comments