System: Alibaba Cloud ECS Ubuntu 16.04.2 LTSSoftware: docker, lnmp image
When a syntax error occurs in PHP, the page appears: This request cannot be processed at this time. HTTP ERROR 500
500 error is probably a problem with the php code
error_reporting(“E_ALL”)
ini_set(“display_errors”, “on”)
Add these two items Code
Let the errors be exposed
Then check them one by one based on the error information
Due to the error display closing in the php.ini configuration file.
Change the lower value from Off to On
display_errors = On display_startup_errors = On
View the error log of php-fpm
500 error is probably a problem with the php code
error_reporting(“E_ALL”)
ini_set(“display_errors”, “on”)
Add these two items Code
Let the errors be exposed
Then check them one by one based on the error information
Due to the error display closing in the php.ini configuration file.
Change the lower value from Off to On
View the error log of php-fpm