Skip to content

Instantly share code, notes, and snippets.

@Faizanq
Created December 21, 2018 17:45
Show Gist options
  • Save Faizanq/d67678296514d990cebf4d23efeabdba to your computer and use it in GitHub Desktop.
Save Faizanq/d67678296514d990cebf4d23efeabdba to your computer and use it in GitHub Desktop.
Check if mod rewrite is enabled - sudo a2enmod rewrite
Give permissions to your storage and vendor folders - chmod 755 -R laravel and then chmod -R o+w storage
Check if you app.config has the environment variables set correctly including the 'url' . Set it to point to the right URL.
If you are using database ensure that you have your database.config set to the correct database for e.g. mysql. Set the database, user id and password
Go to /etc/apache2/sites-available/ and change your Document root to point to your Laravel public folder. (the one where you have your project installed)
Go to /etc/apache2 and use either of mcedit/vi/nano apache.conf and make the following modifications to /var/www/, you may also want to add this as an additional entry Assuming this is your DocumentRoot "/var/www/html/laravel/public/" <Directory "/var/www/html/laravel/public"> Allowoverride All Require all granted
Restart your apache-> apachectl restart or use a command that you find to handy.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment