PHP5.5 cannot run on IIS7.5. it works normally after version 5.3 is used.

Source: Internet
Author: User
PHP5.5 cannot run on IIS7.5. after using PHP5.5, a front-end engineer in the normal department needs to deploy PHP under IIS and install PHP5.5.14. after the deployment is complete, the error 500 is always prompted when you open the page: an unknown FastCGI error occurs.

I searched the internet for half a day, and some said that the VC11 for PHP 5.5.14 was not installed, so I went here to download and install it. the problem persists.


Continue to search, saying that PHP5.5 has started and does not support running on xp or win2003. it only supports Windows 7 7 and above, but this is Windows 7.
Then try to double-click to run c: \ php5.5.14 \ php-cgi.exe, the results pop up the prompt "c: \ php5.5.14 \ php-cgi.exe is not a valid Win32 application", use this to search, "This is a version Issue. PHP5.5 must run at least 6.0 in the operating system version? My WIN7 version is 6.1.

Later, I tried to download php5.3.58.first, double-click php-cgi.exe, and confirm that it can be executed without reporting an error. then, I modified the program ing in IIS to point to the cgi of 5.3.5, and php ran smoothly.

Postscript: who told me that PHP5.5.14 only supports WIN7 and above?


Note: The steps for installing PHP are as follows:

1. download a ZIP package, decompress PHP to C: \ php5.5.14, modify the file name, and change php. ini-development to php. ini;

2. modify the configuration in php. ini in the following section and modify the configuration one by one (note: some configurations are the environment I need ):

extension_dir = "ext"fastcgi.impersonate = 1extension=php_curl.dllextension=php_mbstring.dllextension=php_mysql.dlldate.timezone = "Asia/Shanghai"
3. install IIS for Windows 7. check whether to install CGI.
Go to the control panel, find and open "programs and functions", click "enable or disable Windows function" on the left side of the window, and select "Internet information service":

4. configure PHP,

A. run =, enter inetmgr, open "Internet information service manager", and open "handler ing" on the right:

Bits open the upper right corner of the page, click the "", and click the PHP extension name to list the php-cgi.exe program in the PHP Directory:

In this step, if there is no accident, PHP configuration is complete. you can add a. PHP file under the root directory of the website, the content is as follows:

 Open the browser and access: http: // 127.0.0.1/a. php. The php information is displayed normally.

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.