Configuring apache2

I use apache 2 from the LAMP stack together with PHPMYADMIN for MYSQL administration. A description on how to install and configure LAMP can be found at Ubuntu community ApacheMySQLPHP.

When using Xenial, installation of LAMP will install PHP 7.0.

Drupal 8 requires clean urls and Drupal 7 can use them. These needs to be enabled in apache.

I enable the rewrite module with

sudo a2enmod rewrite

and in the file /etc/apache2/sites-available/000-default.conf  I enable overrides for my hmtl directory by adding the lines:

<Directory /var/www/html>
    AllowOverride All

To display errors in the web browser, I change display_errors and display_startup_errors from Off to On in /etc/php5/apache2/php.ini.

 I use the script to configure apache2.

Leave a Reply

Your email address will not be published. Required fields are marked *