Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save zamicol/33712c731b02f04a4b37 to your computer and use it in GitHub Desktop.
Save zamicol/33712c731b02f04a4b37 to your computer and use it in GitHub Desktop.
Installation of Laravel on Apache on Debian and Ubuntu
After installing, make sure the permissions are proper
sudo chmod -R g+w storage/
sudo chown -R :www-data storage/
Then modify the .htaccess file under yourProjectName/public/.htaccess
RewriteBase /yourProjectName/
Then add an alias to the Apache conf
Alias /yourProjectName /var/www/whatever/yourProjectName/public
@zamicol
Copy link
Author

zamicol commented Dec 7, 2014

This also needs to be added to the apacheconf for the routes to work:

<Directory "/var/www/yourProjectName/public">                                       
    AllowOverride All
</Directory>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment