Skip to content

Instantly share code, notes, and snippets.

@sicksand
Last active August 29, 2015 14:27
Show Gist options
  • Save sicksand/1596b1aa27c60356de0f to your computer and use it in GitHub Desktop.
Save sicksand/1596b1aa27c60356de0f to your computer and use it in GitHub Desktop.
Install Laravel 5 with LAMP stack

#Install Laravel 5 with LAMP stack

  1. Follow tutsnare tutorial here -> http://tutsnare.com/how-to-install-laravel-on-ubuntu-lamp/

  2. 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>
  1. Edit Apache default conf (/etc/apache2/sites-available/000-default.conf)
DocumentRoot /var/www/html

change to

DocumentRoot /var/www/html/yourlaravelprojectname
  1. 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]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment