How to enable application debug logs on laravel 500 server issue?
1. Log in to hosting server and follow below steps:
2. Search for laravel application directory
Find .env file and change as below
APP_DEBUG=false to true
Browse the url in browser we will get error.Act according to errors.
For example : if the error is due to fileinfo module check below steps to proceed further
To enable fileinfo module follow below steps:
a.Loginto >>WHM
b.Search for >>Easyapache2
c.Check for >>currently installed packages
d.Go to >>customize
e.Go to>>PHP Extensions
f. >>search with module name and enable it for the required php version .
Once the above process is completed , need to replace APP_DEBUG=false in .env file
For reference: Debugging HTTP Error 500 in Laravel - LaraClassifier
Errors & Logging - Laravel - The PHP Framework For Web Artisans