IIS configuration fastcgi running PHP

Source: Internet
Author: User
Tags php windows register php

1. Download fastcgi for IIS6.

2. Download the PHP Windows version, unzip to the d:/php directory, and give the user group permission to read and run the directory.

3. Register PHP to fastcgi, open the C:/windows/system32/inetsrv/fcgiext.ini file, and add the configuration under [Types]:

[Types] php = php

[PHP] ExePath = D:/php/php-cgi.exe

4. Configure php.ini, modify the corresponding content as follows:

Extension_dir=d:\php/ext

Fastcgi.impersonate = 1

5. Configure Web site: Website, properties, home directory, configuration, add, executable path, C:\windows\system32\inetsrv/fcgiext.dll

6. Modify the configuration file C:\windows\system32\inetsrv\fcgiext.ini:

[Types]

php=php

[PHP]

Exepath=c:\program Files\php\php-cgi.exe

instancemaxrequests=10000

activitytimeout=300

requesttimeout=600

Environmentvars=php_fcgi_max_requests:10000,phprc:c:\program files\php\

Changes the path in all configuration files to include a forward slash to a backslash.

IIS configuration fastcgi running PHP

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.