doc: installation: simplify permissions setup

This commit is contained in:
nodiscc 2020-08-15 20:11:04 +02:00
parent ff2b5f5bd8
commit 78b5b44d8f

View file

@ -50,22 +50,16 @@ $ rsync -avP /home/me/Shaarli/ /var/www/shaarli.mydomain.org/
Regardless of the installation method, appropriate [file permissions](dev/Development.md#directory-structure) must be set:
```bash
# by default, deny access to everything to the web server
sudo chown -R root:www-data /var/www/shaarli.mydomain.org
sudo chmod -R u=rwX /var/www/shaarli.mydomain.org
# allow read-only access to these files/directories
sudo chmod -R g+rX /var/www/shaarli.mydomain.org/{index.php,application/,plugins/,inc/}
# allow read/write access to these directories
sudo chmod -R g+rX /var/www/shaarli.mydomain.org
sudo chmod -R g+rwX /var/www/shaarli.mydomain.org/{cache/,data/,pagecache/,tmp/}
```
## Using Docker
[See the documentation](Docker.md)
## Finish Installation
Once Shaarli is downloaded and files have been placed at the correct location, open this location your web browser.