run command:
nano /etc/apache2/apache2.conf
Change from "AllowOverride None" to "AllowOverride All"
Save and close
Now run:
a2enmod rewrite
Now run
sudo service apache2 restart
It should work now.
Required steps to perform this:
You should have root access to terminal.
Server: Ubuntu 14
LAMP should be installed.
Run this command: cat /etc/motd.tail