Getting a 500 Internal Server Error on Laravel 5+ Ubuntu 14.04
Finally Overcame the problem
- It was not the .htaccess file that was the problem nor the index.php. The problem was on accessing the files and requiring permissions.
For solving the problem i ran the following commands through terminal.
sudo chmod -R 755 laravel_blog
and then type below to allow laravel to write file to storage folder
chmod -R o+w laravel_blog/storage
This two commands solved the problem.
Create the .env file and also run :
php artisan key:generate
This worked for me after pulling a git project.
After creating .env file and generating the key, run the code below:
php artisan cache:clear
php artisan config:clear
After installing run below command
sudo chmod 755 -R laravel
chmod -R o+w laravel/storage
here "laravel" is the name of directory where laravel installed