#Install Laravel 5 with LAMP stack
-
Follow tutsnare tutorial here -> http://tutsnare.com/how-to-install-laravel-on-ubuntu-lamp/
-
Edit apache2.conf (/etc/apache2/apache2.conf) find
<Directory /var/www/>
Options Indexes FollowSymLinks
AllowOverride None
Require all granted
</Directory>
change to
<Directory /var/www/>
Options Indexes FollowSymLinks
AllowOverride All
Require all granted
</Directory>
- Edit Apache default conf (/etc/apache2/sites-available/000-default.conf)
DocumentRoot /var/www/html
change to
DocumentRoot /var/www/html/yourlaravelprojectname
- Remove public by edit(or add) .htaccess on root laravel folder (http://tutsnare.com/remove-public-from-url-laravel/)
RewriteEngine On
RewriteRule ^(.*)$ public/$1 [L]