Internal Server Error after installation

Symptom:

After the installation, you will see an “Internal Server Error” on the page. This is usually due to a misconfiguration in Apache2.

Example:

internal-server-error-after-installation.png

Solution:

To fix the error, make sure the Apache rewrite module is enabled: a2enmod rewrite. Also update the /etc/apache2/apache2.conf file and change the following:

<Directory /var/www/>
    Options Indexes FollowSymLinks
- AllowOverride None
+ AllowOverride All
    Require all granted
</directory>

After restarting Apache with systemctl erstart apache2 the error should now be fixed.