From: nodiscc Date: Sat, 15 Aug 2020 18:11:04 +0000 (+0200) Subject: doc: installation: simplify permissions setup X-Git-Tag: v0.12.0-beta-1~16^2~11 X-Git-Url: https://git.immae.eu/?p=github%2Fshaarli%2FShaarli.git;a=commitdiff_plain;h=78b5b44d8febc3eb262d13a9f29eafe9ccbe4247 doc: installation: simplify permissions setup --- diff --git a/doc/md/Installation.md b/doc/md/Installation.md index 9f645a67..11b5da85 100644 --- a/doc/md/Installation.md +++ b/doc/md/Installation.md @@ -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.