I\'ve an Ubuntu 14.04 kernel. I was installing my Laravel application in this server. After installing, I tried to set the root directory to public.
sudo n
First enable a2enmod rewrite next restart the apache
a2enmod rewrite
/etc/init.d/apache2 restart
click here for answer these question