iis7 The solution to the php 500 error: first find and open the "php.ini" file; then modify the content to "log_errors = Off"; then turn off the warning error; finally delete the warning error.
Solution to IIS7 PHP HTTP 500 Internal Server Error
IIS7 PHP HTTP 500 Internal Server Error We are very much thinking of It will be a program error, but the error reminder is not turned on. Here we will take a look at how to make the HTTP 500 error display as a real error so that we can find a solution.
"HTTP 500 Internal Server Error" occurs when opening a website in PHP environment under IIS7:
The solution is as follows
Modify the php.ini file as follows
log_errors = Off
In addition, php turns off warning error reporting and modifies error_reporting in the php.ini file. By default, it should be:
display_errors = Off error_reporting = E_ALL & ~E_NOTICE
If the warning error still occurs after modification like this, remove the warning as well:
error_reporting = E_ALL & ~E_NOTICE | E_WARNING
It is often seen that error_reporting (7) means: setting the level of error message reporting.
Finally restart iis.
For more related knowledge, please visit PHP Chinese website!
The above is the detailed content of How to solve iis7 php 500 error. For more information, please follow other related articles on the PHP Chinese website!