diff options
author | Chaoyi Zha <summermontreal@gmail.com> | 2016-03-04 01:50:41 +0300 |
---|---|---|
committer | Chaoyi Zha <summermontreal@gmail.com> | 2016-03-04 01:50:41 +0300 |
commit | 193b1b4d5b053be3f33d0707ad30a1d41c58b7fc (patch) | |
tree | adaab1ebc19a858275bd25c8e98ccc118b2e80e0 /docs | |
parent | 39f18b94c6471d07c94e49a1260f23b40d8160be (diff) |
Add instructions about permissions, fix small typo
Diffstat (limited to 'docs')
-rw-r--r-- | docs/user-guide/installation.md | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/docs/user-guide/installation.md b/docs/user-guide/installation.md index fdc516c..9f6071d 100644 --- a/docs/user-guide/installation.md +++ b/docs/user-guide/installation.md @@ -25,8 +25,17 @@ you may be interested in looking at a [legacy 1.x release](https://github.com/cy ```bash $ sudo su +# switch to Polr directory (replace with other directory path if applicable) $ cd /var/www +# clone Polr $ git clone https://github.com/cydrobolt/polr.git +# set correct permissions +$ chmod -R 755 polr + +# run only if on Ubuntu-based systems +$ chown -R www-data polr +# run only if on Fedora-based systems +$ chown -R apache polr ``` ## Installing using `composer` @@ -45,7 +54,7 @@ php composer.phar install --no-dev -o To run Polr on Apache, you will need to add a virtual host to your `httpd-vhosts.conf` like so: -Replace `example.com` with your server's external address. +Replace `example.com` with your server's external address. ```apache <VirtualHost *:80> @@ -94,7 +103,7 @@ upstream php { server { listen *:80; - root /var/www; + root /var/www/polr/public; server_name example.com; # Or whatever you want to use # return 301 https://$server_name$request_uri; # Forces HTTPS, which enables privacy for login credentials. |