Oh, and I forgot to mention, but I was running php5 before, and am now running php7, just in case that makes a difference.
Fixing HTTP ERROR 500 (nginx) for every Laravel route
I am getting an error of:
The page isn’t working is currently unable to handle this request. HTTP ERROR 500
When going to http://
I've switched my servers from Ubuntu 14.04 (on DigitalOcean) to Ubuntu 16.04 (on Linode). I used Rocketeer to deploy. While on my previous servers, everything worked. But for some reason, Laravel is not even giving me practical errors to solve. The route is be hitting is; Route::get('/', 'MainWebController@index');
However, if I go to http:///images/pinpoint.png, I can see the image. So it seems the routes are not working for some reason, and Laravel is not sending down useful errors, even though .env is set with: APP_ENV=production APP_DEBUG=true
I appreciate any help you can offer to get Laravel working correct. Thank you,
Woohoo!!! And @usama.ashraf shoots and scores! Laravel is working properly now. Thank you so much for the quick turnaround and help. I actually made you a fun meme, and then realized that the image embedding is no longer available on these threads. :(
Here's the final code that got everything working:
sudo gpasswd -a www-data deploy
sudo chown www-data:deploy <laravel_directory>/storage/logs/laravel.log
sudo chown root:deploy -h <laravel_directory>/.env
sudo chown www-data:deploy -R <laravel_directory>/bootstrap
php artisan key:generate
php artisan cache:clear
php artisan clear-compiled
sudo chmod -R 777 <laravel_directory>/storage
sudo chmod -R 775 <laravel_directory>/bootstrap
composer dump-autoload
php artisan optimize
sudo apt-get install php-tokenizer
sudo apt-get install php-mbstring
sudo apt-get install php-openssl
sudo systemctl restart php7.0-fpm
Then.... magic!
Please or to participate in this conversation.