File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -4,16 +4,16 @@ Setting up or Fixing File Permissions
44In Symfony 3.x, you needed to do some extra work to make sure that your cache directory
55was 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.
You can’t perform that action at this time.
0 commit comments