@@ -48,10 +48,10 @@ the location of the cache directory to ``app/{environment}/cache``.
48
48
49
49
.. warning ::
50
50
51
- You should keep the ``cache `` directory different for each environment,
52
- otherwise some unexpected behaviour can happen as a different environment
53
- means different config files and those are cached, so the cached data
54
- is different .
51
+ You should keep the ``cache `` directory different for each environment,
52
+ otherwise some unexpected behaviour may happen. Each environment generates
53
+ its own cached config files, and so each needs its own directory to store
54
+ those cache files .
55
55
56
56
Override the ``logs `` directory
57
57
-------------------------------
@@ -73,23 +73,31 @@ method::
73
73
}
74
74
}
75
75
76
- We have changed location of the directory to ``app/{environment}/logs ``.
76
+ Here we have changed the location of the directory to ``app/{environment}/logs ``.
77
77
78
78
Override the ``web `` directory
79
79
------------------------------
80
80
81
- Some shared hosting require to rename the ``web `` directory to ``public_html ``
82
- and move this directory to the apache root. You can simply rename the directory:
83
- The only thing you need to check is if the path to the ``app `` directory
84
- is still right in ``app.php `` or ``app_dev.php ``. For instance: If we move
85
- the ``web `` directory one map up we need to add ``Symfony `` (the name of
86
- your Symfony installation directory) to the path::
81
+ If you need to rename or move your ``web `` directory, the only thing you
82
+ need to guarantee is that the path to the ``app `` directory is still correct
83
+ in your ``app.php `` and ``app_dev.php `` front controllers. If you simply
84
+ renamed the directory, you're fine. But if you moved it in some way, you
85
+ may need to modify the paths inside these files::
87
86
88
87
require_once __DIR__.'/../Symfony/app/bootstrap.php.cache';
89
88
require_once __DIR__.'/../Symfony/app/AppKernel.php';
90
-
89
+
90
+ .. tip ::
91
+
92
+ Some shared hosts have a ``public_html `` web directory root. Renaming
93
+ your web directory from ``web `` to ``public_html `` is one way to make
94
+ your Symfony project work on your shared host. Another way is to deploy
95
+ your application to a directory outside of your web root, delete your
96
+ ``public_html `` directory, and then replace it with a symbolic link to
97
+ the ``web `` in your project.
98
+
91
99
.. note ::
92
-
100
+
93
101
If you use the AsseticBundle you need to configure this, so it can use
94
102
the correct ``web `` directory:
95
103
0 commit comments