Internal Server Error While Run Laravel on Localhost

Getting 500 server error with Laravel 5.7 on Windows

Answer based on your comment under in your question:

RuntimeException No application encryption key has been specified.

set a value for the APP_KEY variable.

At the command line, the following Artisan command to generate a key:

php artisan key:generate

This will generate a random key, you must restart the server and you should no longer see the error message.

Laravel, unknown error after deploy to LIFE server, 500 Internal Server Error

I finally found the solution after a lot of attempts, the .htaccess file was wrong and I swapped:

RewriteRule ^ index.php [L]

with:

RewriteRule ^ /index.php [L]

I added the / before index.php. This has fixed the problem.

Getting a 500 Internal Server Error (require() failed opening required path) 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.

Running Laravel project as localhost causes HTTP 500 error

You can find your solution with exactly this problem in this link:

Laravel crash on init with error 500 (no additional info)

Good luck:)



Related Topics



Leave a reply



Submit