Iis Server prompts http Error 500 Internal Server Error Solution

Source: Internet
Author: User

This article will introduce to you how to solve the problem that the iis Server prompts http Error 500 Internal Server Error. If you need such a problem, refer.

Troubleshoot

The first error prompt is: HTTP 500-Internal server error, but after I removed "show friendly HTTP error message", I got more detailed error code. During this online search, I also encountered an HTTP 500-Internal server error message, but most people may have different specific errors, you cannot blindly trust others' suggestions.


Possible internal server 500 errors

The following three judgment bases and corresponding solutions:

1. server resource overload

If you haven't made any changes to the website file, the most likely thing is that the resources on the same server are overloaded: when there are too many processes on the processor at the same time to process, a 500 error will occur. With SSH, you can enter the following command in the command line to view:

Ps faux

Ps faux | grep username

If you find that a process consumes too much resources, you can use the kill command to force the process to close. You only need to enter the process ID (Pid) of the process ):

Kill-9 pid

2. Incorrect File Permission settings

The Error 500 may also be caused by incorrect permissions on the file:

By default, the permissions for the background directories and files should be 755, while those for html files such as images and text should be 644. Therefore, if the 500 error occurs after the file is uploaded, check the file permission settings.

You can use the FTP software to select all files and then modify the file permissions in batches.

3. Error code written to the htaccess File

When using some wordpress SEO plug-ins, the plug-in will rewrite the. htacess file. If the syntax is incorrect, it may cause a 500 Error!

In the. htaccess file, some code conflicting with the source file may be added. Therefore, to detect incorrect statements, the best way is to add comments to the statements for verification one by one. Because the statement does not take effect after the annotation.

Add "#" one by one before the statement, as shown in figure

The Code is as follows:

DirectoryIndex default.html
AddType application/x-httpd-php5 php

You can add # To the command to achieve the annotation effect:

The Code is as follows:

DirectoryIndex default.html
# AddType application/x-httpd-php5 php

. Net has the following error:

HTTP Error 500.21-Internal Server Error

Handler "WebServiceHandlerFactory-Integrated" has a bad module "ManagedPipelineHandler" in its module list

Cause: after the Framework v4.0 is installed, IIS is enabled again. As a result, the Framework is not fully installed.

Solution:

The Code is as follows:

Start-> All Programs-> attachments-> right-click "command prompt"-> Run as administrator-> unzip windir#microsoft.netframeworkv4.0.30319aspnet_regiis.exe-I


Related Article

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.