Skip to content
This repository has been archived by the owner on Sep 10, 2021. It is now read-only.

Commit

Permalink
Specify Directory AllowOverride in docs
Browse files Browse the repository at this point in the history
  • Loading branch information
mgrauer committed Feb 12, 2016
1 parent 524595d commit 287d736
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions docs/installation/linux.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ sudo apt-get dist-upgrade
sudo apt-get install apache2 cmake curl git libapache2-mod-php5 memcached mysql-server nano php5 php5-curl php5-gd php5-json php5-memcached php5-mysqlnd php5-pgsql php5-sqlite php5-xdebug postgresql python python-jinja2 python-markdown python-pip python-yaml sqlite3 subversion
sudo pip install mkdocs
sudo a2enmod rewrite
echo -e "<VirtualHost *:80>\nServerAdmin webmaster@example.org\nServerName example.org\nServerAlias www.example.org\nDocumentRoot /var/www/example.org/html\nErrorLog \${APACHE_LOG_DIR}/error.log\nCustomLog \${APACHE_LOG_DIR}/access.log combined\n</VirtualHost>" | sudo tee -a /etc/apache2/sites-available/example.org.conf
echo -e "<Directory /var/www/example.org/html>\nAllowOverride All\n</Directory>\n<VirtualHost *:80>\nServerAdmin webmaster@example.org\nServerName example.org\nServerAlias www.example.org\nDocumentRoot /var/www/example.org/html\nErrorLog \${APACHE_LOG_DIR}/error.log\nCustomLog \${APACHE_LOG_DIR}/access.log combined\n</VirtualHost>" | sudo tee -a /etc/apache2/sites-available/example.org.conf
sudo a2ensite example.org.conf
sudo service apache2 restart
```
Expand Down Expand Up @@ -81,11 +81,16 @@ sudo chown $USER:$USER /var/www/example.org/html
The value of $DOCUMENT_ROOT in the general instructions will be
/var/www/example.org/html.

Add the configuration of the virtual host:
Add the configuration of the virtual host, including a Directory section
to allow apache to execute directives defined in .htaccess files:

```bash
sudo nano /etc/apache2/sites-available/example.org.conf

<Directory /var/www/example.org/html>
AllowOverride All
</Directory>

<VirtualHost *:80>
ServerAdmin webmaster@example.org
ServerName example.org
Expand Down

0 comments on commit 287d736

Please sign in to comment.