From 287d736037e79a02be08e3fe7014b0cac4a6b252 Mon Sep 17 00:00:00 2001 From: mgrauer Date: Fri, 12 Feb 2016 20:30:30 +0000 Subject: [PATCH] Specify Directory AllowOverride in docs --- docs/installation/linux.md | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/docs/installation/linux.md b/docs/installation/linux.md index f266a8382..172ce4eff 100644 --- a/docs/installation/linux.md +++ b/docs/installation/linux.md @@ -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 "\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" | sudo tee -a /etc/apache2/sites-available/example.org.conf +echo -e "\nAllowOverride All\n\n\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" | sudo tee -a /etc/apache2/sites-available/example.org.conf sudo a2ensite example.org.conf sudo service apache2 restart ``` @@ -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 + + AllowOverride All + + ServerAdmin webmaster@example.org ServerName example.org