If your main Laravel page is working but no other routes are then this may be of use to you.
My doc root is here:
/var/www/html/quickstart/public
Firstly enable mod rewrite:
sudo a2enmod rewrite
Then check your routes that weren’t loading, if it works great! If not, then read on.
Edit your default apache site conf file:
sudo gedit /etc/apache2/sites-enabled/000-default.conf
Mine is below:
<VirtualHost *:80> ServerName localhost ServerAdmin webmaster@localhost DocumentRoot /var/www/html/quickstart/public ErrorLog ${APACHE_LOG_DIR}/error.log CustomLog ${APACHE_LOG_DIR}/access.log combined <Directory "/var/www/html/quickstart/public"> Allowoverride All </Directory> </VirtualHost> # vim: syntax=apache ts=4 sw=4 sts=4 sr noet
That worked for me on Ubuntu, hope it helps someone.
I have been trying out laravel and intend to use it for some projects in the future but I’ve been finding it very frustrating to get it installed and running. The homstead vagrant setup they have just simply doesn’t work and this is the second time I’ve tried it over the past 3 months, so it wasn’t a passing bug. I’ve only ever got laravel up and running on Linux by setting it up manually and never got it working on windows. Hopefully after a few fresh installs I’ll have it down to a few nice steps and I’ll write those up =)