Saturday, March 3, 2018

[Resolved] Laravel fresh install index page shows 500 internal server error, no error log

I am using Laravel 5.6 with php7.2 version, I ensure I have removed the old php modules and these extension are with status enabled in my server:
PHP >= 7.1.3
OpenSSL PHP Extension
PDO PHP Extension
Mbstring PHP Extension
Tokenizer PHP Extension
XML PHP Extension
Ctype PHP Extension
JSON PHP Extension
Remark :
Remember you must ensure your php version is bigger or equal to version 7.1.3
It's strange that check server error log found nothing...

What I do is remove the whole laravel 5.6 project and install it again,
found there is some problem during installed :
    Error message : PHP extension dom is missing from you system.

What to do is install this php-do, here is the example using yum here:
sudo yum install php-dom
After you installed the missing extensions and run the command install laravel 5.6 again,
you may find the problem is alright .
sudo composer create-project --prefer-dist laravel/laravel blog

Reference 
https://laravel.com/docs/5.6

No comments :

Post a Comment