I was also faced with this issue and managed to solve it with the help of this site
Here's where it comes down to:
First: enable mod_rewrite:
- open terminal
- enable mod_rewrite
- restart apache2
sudo a2enmod rewrite
sudo systemctl restart apache2
Secondly: adjust your .conf file:
- locate your .conf file
- add the
<Directory ...>
code
- restart apache2
ls /etc/apache2/sites-available
sudo nano /etc/apache2/sites-available/000-default.conf
Add this code below the tag:
<Directory /var/www/html>
Options Indexes FollowSymLinks MultiViews
AllowOverride All
Require all granted
</Directory>
sudo systemctl restart apache2
And now you should be able to surf to your own admin page
Note: you'll probably use the 000-default.conf
, unless you have set up a different VirtualHost. In that case you need to change the 000-default.conf
with your own VirtualHost.conf file and change the /var/www/html
to point to your own public_html directory.
Note2: use ctrl-o
in nano to save a file and ctrl-x
to close it.