FastCGI Error Number:-2147467259 (0x80004005) Error in IIS + php

Source: Internet
Author: User
Tags ini

My PHP is in IIS mode. The following Error occurs today: FastCGI Error the FastCGI Handler was unable to process The request. // FastCGI cannot process the request. This error occurs most often when PHP is run in FastCGI mode in IIS, because php. ini configuration problems, not to mention, here is a direct solution, not a waste of time.

1. Open php. ini and find register_globals = Off. Change it:

The code is as follows: Copy code

Register_globals = On

Note that the comment above this line, that is, semicolon (;), is removed and the global variable function of PHP is enabled.
2. Configure the FastCGI File: modify the maxInstances value:

The code is as follows: Copy code

[Types]
Php = PHP
[PHP]
ExePath = D: \ php_5.2.3 \ php-cgi.exe
Instancemax requests = 10000
MaxInstances = 300
EnvironmentVars = PHP_FCGI_MAX_REQUESTS: 10000
RequestTimeout = 500
ActivityTimeout = 900

If the above method cannot be solved

Copy msvcr71.dll to your system directory.

The code is as follows: Copy code

C:/Windows/System/System32
C:/Windows/System
C:/Windows


3. Optimize the IIS application pool

Set the maximum memory used to 2048 MB. You can also try other values. You can manually modify the value and try again. The value I changed may not be suitable for you. After the above modification, restart IIS.

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.