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.