There is a Bug in apache while using a2enmod, it doesn't make any
changes, so I am following these steps from last 1 year everytime I
reinstall ubuntu. May be they fixed it in new version. But these steps works 100%
Open terminal & follow this :
#sudo gedit /etc/apache2/sites-enabled/000-default
Check for these lines & change as I have done here :
DocumentRoot /var/www/ <Directory /> Options FollowSymLinks AllowOverride all </Directory> <Directory /var/www/> Options FollowSymLinks AllowOverride all Order allow,deny allow from all </Directory> Save the file & restart apache :
#sudo /etc/init.d/apache2 restart