Home  >  Article  >  Backend Development  >  How to solve php 500 internal server error problem

How to solve php 500 internal server error problem

藏色散人
藏色散人Original
2020-10-30 09:13:132998browse

Solution to php 500 internal server error: First open IIS, click "Error Page" in the global settings; then click Edit Function Settings; then in the error response, select the second item "Detailed Error" ; Finally, you can solve it according to the specific error message.

How to solve php 500 internal server error problem

Recommended: "PHP Video Tutorial"

Solve the "500 - Internal Server" that appears in IIS PHP Error”

Http 500 Internal Server Error

Some faults in the system are the last thing users want to see. Sometimes they have to deal with most of the faults they encounter. Geniuses can do it. When opening the website, an HTTP 500 internal server error message appears. The detailed information of the error cannot be viewed, and the user cannot solve the specific problem. This is indeed a very troublesome thing for many new users. In fact, when encountering this kind of failure, We can display these error details through the IIS settings in the system, so that we can also "prescribe the right medicine" to solve these problems.

1. Common causes of 500 errors are:

ASP syntax errors, ACCESS database connection statement errors, file reference and include path errors, and the use of files that are not supported by the server. Components such as FSO, etc.

2. Let IE display detailed error information:

Menu--Tools--Internet Options--Advanced--Show friendly HTTP error messages, remove this option, and then refresh the error page, you can see the detailed error information!

3. Set IIS to display detailed error information:

1. Open IIS and click "Error" in the global settings Page" (note that it must be a global website!)

How to solve php 500 internal server error problem

 2. Click the edit function settings in the upper right corner.

How to solve php 500 internal server error problem

3. In the error response, select the second item "Detailed Error"

4. Click OK and refresh IE to display detailed error information.

There are many reasons for 500 internal server errors in the system. Usually when this happens, we can display detailed error information according to several analyzes in the tutorial, so that we can solve these problems for the specific reasons.

The above is the detailed content of How to solve php 500 internal server error problem. For more information, please follow other related articles on the PHP Chinese website!

Statement:
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