diff options
author | nodiscc <nodiscc@gmail.com> | 2020-08-15 20:11:04 +0200 |
---|---|---|
committer | nodiscc <nodiscc@gmail.com> | 2020-09-12 14:31:45 +0200 |
commit | 78b5b44d8febc3eb262d13a9f29eafe9ccbe4247 (patch) | |
tree | 5bad0e03014559127b8907732964606bb279cf1e | |
parent | ff2b5f5bd857ee7edf496cae2b4ab526b0703345 (diff) | |
download | Shaarli-78b5b44d8febc3eb262d13a9f29eafe9ccbe4247.tar.gz Shaarli-78b5b44d8febc3eb262d13a9f29eafe9ccbe4247.tar.zst Shaarli-78b5b44d8febc3eb262d13a9f29eafe9ccbe4247.zip |
doc: installation: simplify permissions setup
-rw-r--r-- | doc/md/Installation.md | 8 |
1 files changed, 1 insertions, 7 deletions
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/ | |||
50 | Regardless of the installation method, appropriate [file permissions](dev/Development.md#directory-structure) must be set: | 50 | Regardless of the installation method, appropriate [file permissions](dev/Development.md#directory-structure) must be set: |
51 | 51 | ||
52 | ```bash | 52 | ```bash |
53 | # by default, deny access to everything to the web server | ||
54 | sudo chown -R root:www-data /var/www/shaarli.mydomain.org | 53 | sudo chown -R root:www-data /var/www/shaarli.mydomain.org |
55 | sudo chmod -R u=rwX /var/www/shaarli.mydomain.org | 54 | sudo chmod -R g+rX /var/www/shaarli.mydomain.org |
56 | # allow read-only access to these files/directories | ||
57 | sudo chmod -R g+rX /var/www/shaarli.mydomain.org/{index.php,application/,plugins/,inc/} | ||
58 | # allow read/write access to these directories | ||
59 | sudo chmod -R g+rwX /var/www/shaarli.mydomain.org/{cache/,data/,pagecache/,tmp/} | 55 | sudo chmod -R g+rwX /var/www/shaarli.mydomain.org/{cache/,data/,pagecache/,tmp/} |
60 | ``` | 56 | ``` |
61 | 57 | ||
62 | |||
63 | ## Using Docker | 58 | ## Using Docker |
64 | 59 | ||
65 | [See the documentation](Docker.md) | 60 | [See the documentation](Docker.md) |
66 | 61 | ||
67 | 62 | ||
68 | |||
69 | ## Finish Installation | 63 | ## Finish Installation |
70 | 64 | ||
71 | Once Shaarli is downloaded and files have been placed at the correct location, open this location your web browser. | 65 | Once Shaarli is downloaded and files have been placed at the correct location, open this location your web browser. |