@@ -226,15 +226,15 @@ If there are any issues, correct them now before moving on.
226226
227227 Many systems allow you to use the ``chmod +a `` command. Try this first,
228228 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 ``:
230230
231231 .. code-block :: bash
232232
233233 $ rm -rf app/cache/*
234234 $ rm -rf app/logs/*
235235
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
238238 $ sudo chmod +a " ` whoami` allow delete,write,append,file_inherit,directory_inherit" app/cache app/logs
239239
240240
@@ -244,14 +244,14 @@ If there are any issues, correct them now before moving on.
244244 called ``setfacl ``. You may need to `enable ACL support `_ on your partition
245245 and install setfacl before using it (as is the case with Ubuntu). This
246246 uses a command to try to determine your web server user and set it as
247- ``APACHEUSER ``:
247+ ``HTTPDUSER ``:
248248
249249 .. code-block :: bash
250250
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+
255255 **3. Without using ACL **
256256
257257 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.
269269
270270 Note that using the ACL is recommended when you have access to them
271271 on your server because changing the umask is not thread-safe.
272-
272+
273273 **4. Use the same user for the CLI and the web server **
274274
275275 In development environments, it is a common practice to use the same unix
0 commit comments