Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Server error 500 when accessing Laravel 5.8

After installing laravel in blog directory, when I try to check it runs normally or not by accessing localhost/blog/public it shows 500 Server error like this screenshot :

enter image description here

I've tried to grant apache with mod_rewrite and it didn't help.

I installed laravel with XAMPP in Windows.

======

UPDATE : Here is the log file in the storage/logs/ and .env file link

like image 798
Zulfikar Sandy Pratama Avatar asked Apr 16 '19 10:04

Zulfikar Sandy Pratama


People also ask

How do I fix 500 internal server error on laravel?

If you have a 500 Server Error, just rename the ". env. example" to ". env" and run: - php artisan key:generate - php artisan cache:clear - php artisan config:clear In my case, I pulled the project to Github repo to local machine.

How do I fix a 500 Internal server error?

Clear your browser cache and cookies Check these articles on deleting the cache on an Android phone or iPhone, if you use a mobile device. Alternatively, you can test opening the page from another browser. For instance, if you use Chrome, try Firefox or vice versa.

How do you fix 500 Internal server error There is a problem with the resource you are looking for and it Cannot be displayed?

500 - Internal server error. There is a problem with the resource you are looking for, and it cannot be displayed. To resolve this issue, set the Enable 32-bit Applications to "False": Open the Internet Information Services (IIS) Manager.


1 Answers

do you have .env file

in terminal

cp .env.example .env

php artisan key:generate

chmod 777 -R  storage
like image 196
Şafak Çıplak Avatar answered Sep 25 '22 17:09

Şafak Çıplak