Skip to content

Commit 32a2516

Browse files
Minor fixes
1 parent 327db54 commit 32a2516

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

setup/file_permissions.rst

+4-4
Original file line numberDiff line numberDiff line change
@@ -4,16 +4,16 @@ Setting up or Fixing File Permissions
44
In Symfony 3.x, you needed to do some extra work to make sure that your cache directory
55
was writable. But that is no longer true! In Symfony 4, everything works automatically:
66

7-
* In the ``dev`` environment, ``umask`` is used in ``bin/console`` and ``web/index.php``
7+
* In the ``dev`` environment, ``umask()`` is used in ``bin/console`` and ``web/index.php``
88
so that any created files are writable by everyone.
99

1010
* In the ``prod`` environment (i.e. when ``APP_ENV`` is ``prod`` and ``APP_DEBUG``
11-
is ``0)``, as long as you run ``php bin/console cache:warmup``, no cache files
11+
is ``0``), as long as you run ``php bin/console cache:warmup``, no cache files
1212
will need to be written to disk at runtime.
1313

1414
.. note::
1515

1616
If you decide to store log files on disk, you *will* need to make sure your
17-
logs directory (e.g. ``var/logs``) is writable by your web server user and
18-
terminal user. One way this can be done is by using ``chmod 777 -R var/logs``.
17+
logs directory (e.g. ``var/log/``) is writable by your web server user and
18+
terminal user. One way this can be done is by using ``chmod 777 -R var/log/``.
1919
Just be aware that your logs are readable by any user on your production system.

0 commit comments

Comments
 (0)