Troubleshoot problems
The initial error was: HTTP 500-internal server error, but I removed the "Show friendly HTTP error message" and got a more detailed error code. I also encountered many people have HTTP 500-internal server error message in the process of this online search, but maybe everyone more specific error is different, can not blindly credulous other people's advice
several possible internal server 500 errors
We have the following three kinds of judgment basis and corresponding solution:
1. Server Resource overload
If you have not made any changes to the Web site files, the most likely is the server's resources overload: That is, at the same time the processor has too many processes to be processed, there will be 500 errors. With SSH, you can enter the following command at the command line to view:
PS Faux
PS Faux |grep username
If you find that a process consumes too much resources, you can force it to shut down by using the KILL command, just enter the process number (PID) of the procedure:
Kill-9 PID
2. File Permission settings error
The 500 error may also have incorrect permissions set on the file:
Background directory and file permissions by default should be 755, and pictures, text and other HTML files should be 644, so if you have just uploaded files after 500 errors, you should mainly check the file permission settings.
You can use the FTP software to select all files and then bulk modify file permissions.
3. htaccess File Write error code
In the use of some wordpress seo plug-ins, Plug-ins will overwrite the. htacess file, if the syntax is wrong, it can cause 500 errors!
In the. htaccess file, you may have added some code that conflicts with the source file. So in order to detect the error statement, the best way is to add a comment to the statement to verify one after the other. Because after the comment, the statement no longer works.
Add "#" in front of the statement, such as
The code is as follows |
Copy Code |
DirectoryIndex default.html AddType application/x-httpd-php5 PHP |
You can add a # to the command before you realize the annotation effect:
The code is as follows |
Copy Code |
DirectoryIndex default.html #AddType application/x-httpd-php5 PHP |
The following error occurred with. Net
HTTP Error 500.21-internal Server error
Handler "webservicehandlerfactory-integrated" has a bad module, "Managedpipelinehandler" in its module list
Cause: After you install the framework v4.0, then enable IIS, causing the framework not to be fully installed
Solve:
code is as follows |
copy code |
start-> All Programs-> Attachment-> the right mouse button click "Command Prompt"-> Run as Administrator->%windir%microsoft.netframeworkv4.0.30319aspnet_regiis.exe-i |