IIS server prompts HTTP Error Internal server error solution

Source: Internet
Author: User
Tags error code file permissions

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.