diff options
author | Nicolas LÅ“uillet <nicolas@loeuillet.org> | 2016-04-27 07:19:31 +0200 |
---|---|---|
committer | Nicolas LÅ“uillet <nicolas@loeuillet.org> | 2016-04-27 07:19:31 +0200 |
commit | 4c295cb928e2d2343e0879981c7567897e474dd0 (patch) | |
tree | 61582f398ce894da69276b79ac6cbe7cde218456 /docs/en/user | |
parent | edf3e88d88a00ee558983095618726c4af97895b (diff) | |
parent | 87b8461ed8a0cb8a5ba53317759325271a57a4c5 (diff) | |
download | wallabag-4c295cb928e2d2343e0879981c7567897e474dd0.tar.gz wallabag-4c295cb928e2d2343e0879981c7567897e474dd0.tar.zst wallabag-4c295cb928e2d2343e0879981c7567897e474dd0.zip |
Merge pull request #1985 from foxmask/master
Rights access to the folders of the project
Diffstat (limited to 'docs/en/user')
-rw-r--r-- | docs/en/user/installation.rst | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/docs/en/user/installation.rst b/docs/en/user/installation.rst index 8250d2d7..c2174a53 100644 --- a/docs/en/user/installation.rst +++ b/docs/en/user/installation.rst | |||
@@ -154,3 +154,30 @@ After reloading or restarting nginx, you should now be able to access wallabag a | |||
154 | .. note:: | 154 | .. note:: |
155 | 155 | ||
156 | When you want to import large file into wallabag, you need to add this line in your nginx configuration ``client_max_body_size XM; # allows file uploads up to X megabytes``. | 156 | When you want to import large file into wallabag, you need to add this line in your nginx configuration ``client_max_body_size XM; # allows file uploads up to X megabytes``. |
157 | |||
158 | |||
159 | Rights access to the folders of the project | ||
160 | ------------------------------------------- | ||
161 | |||
162 | |||
163 | Test Environment | ||
164 | ~~~~~~~~~~~~~~~~ | ||
165 | |||
166 | When we just want to test wallabag, we just run the command ``php bin/console server:run --env=prod`` to start our wallabag instance and everything will go smoothly because the user who started the project can access to the current folder naturally, without any problem. | ||
167 | |||
168 | |||
169 | Production Environment | ||
170 | ~~~~~~~~~~~~~~~~~~~~~~ | ||
171 | |||
172 | As soon as we use Apache or Nginx to access to our wallabag instance, and not from the command ``php bin/console server:run --env=prod`` to start it, we should take care to grant the good rights on the good folders to keep safe all the folders of the project. | ||
173 | |||
174 | To do so, the folder name, known as ``DocumentRoot`` (for apache) or ``root`` (for Nginx), has to be absolutely accessible by the Apache/Nginx user. Its name is generally ``www-data``, ``apache`` or ``nobody`` (depending on linux system used). | ||
175 | |||
176 | So the folder ``/var/www/wallabag/web`` has to be accessible by this last one. But this could be not enough if we just care about this folder, because we could meet a blank page or get an error 500 when trying to access to the homepage of the project. | ||
177 | |||
178 | This is due to the fact that we will need to grant the same rights access on the folder ``/var/www/wallabag/var`` like those we gave on the folder ``/var/www/wallabag/web``. Thus, we fix this problem with the following command: | ||
179 | |||
180 | .. code-block:: bash | ||
181 | |||
182 | chown -R www-data:www-data /var/www/wallabag/var | ||
183 | |||