Created
December 21, 2018 17:45
-
-
Save Faizanq/d67678296514d990cebf4d23efeabdba to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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