How to solve iis7 php 500 error

藏色散人
Release: 2023-03-02 13:00:02
Original
2466 people have browsed it

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.

How to solve iis7 php 500 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
Copy after login

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
Copy after login

If the warning error still occurs after modification like this, remove the warning as well:

error_reporting = E_ALL & ~E_NOTICE | E_WARNING
Copy after login

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!

Related labels:
php
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template