8000 minor #6518 Add details about chmod +a vs setfacl (pasdeloup) · symfony/symfony-docs@cb6a26c · GitHub
[go: up one dir, main page]

Skip to content 8000

Commit cb6a26c

Browse files
committed
minor #6518 Add details about chmod +a vs setfacl (pasdeloup)
This PR was squashed before being merged into the 2.3 branch (closes #6518). Discussion ---------- Add details about chmod +a vs setfacl | Q | A | ------------- | --- | Doc fix? | yes | New docs? | no | Applies to | all | Fixed tickets | no chmod +a seems to be a MacOS X non standard feature so it's useless to ask everyone to try it before setfacl. Linux users should directly go for it (Internet is full of comments of people asking how to chmod +a on Ubuntu or CentOS). Add also informations about NFS and setfacl: it's a common issue when deploying on production. Commits ------- f70c6c0 Add details about chmod +a vs setfacl
2 parents 44bf2ab + f70c6c0 commit cb6a26c

File tree

1 file changed

+12
-10
lines changed

1 file changed

+12
-10
lines changed

book/installation.rst

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -229,10 +229,9 @@ If there are any issues, correct them now before moving on.
229229
its user to be the same as your CLI user (e.g. for Apache, update the ``User``
230230
and ``Group`` values).
231231

232-
**2. Using ACL on a system that supports chmod +a**
232+
**2. Using ACL on a system that supports chmod +a (MacOS X)**
233233

234-
Many systems allow you to use the ``chmod +a`` command. Try this first,
235-
and if you get an error - try the next method. This uses a command to
234+
MacOS X allows you to use the ``chmod +a`` command. This uses a command to
236235
try to determine your web server user and set it as ``HTTPDUSER``:
237236

238237
.. code-block:: bash
@@ -244,14 +243,12 @@ If there are any issues, correct them now before moving on.
244243
$ sudo chmod +a "$HTTPDUSER allow delete,write,append,file_inherit,directory_inherit" app/cache app/logs
245244
$ sudo chmod +a "`whoami` allow delete,write,append,file_inherit,directory_inherit" app/cache app/logs
246245
246+
**3. Using ACL on a system that supports setfacl (most Linux/BSD)**
247247

248-
**3. Using ACL on a system that does not support chmod +a**
249-
250-
Some systems don't support ``chmod +a``, but do support another utility
251-
called ``setfacl``. You may need to `enable ACL support`_ on your partition
252-
and install setfacl before using it (as is the case with Ubuntu). This
253-
uses a command to try to determine your web server user and set it as
254-
``HTTPDUSER``:
248+
Most Linux and BSD distributions don't support ``chmod +a``, but do support
249+
another utility called ``setfacl``. You may need to `enable ACL support`_
250+
on your partition and install setfacl before using it. This uses a command
251+
to try to determine your web server user and set it as ``HTTPDUSER``:
255252

256253
.. code-block:: bash
257254
@@ -261,6 +258,11 @@ If there are any issues, correct them now before moving on.
261258
262259
If this doesn't work, try adding ``-n`` option.
263260

261+
.. note::
262+
263+
setfacl isn't available on NFS mount points. However, setting cache
264+
and logs over NFS is strongly not recommended for performance.
265+
264266
**4. Without using ACL**
265267

266268
If none of the previous methods work for you, change the umask so that the

0 commit comments

Comments
 (0)
0