Configure fastcgi mode PHP in the IIS 7.5 environment in Windows 2008

Source: Internet
Author: User
Tags iis

Recently familiar with the Windows host Web environment, and today I encountered the IIS consolidated PHP 500 error problem, so the Internet to find a tutorial to solve the problem, and here to share with you.

1. To select the CGI script when installing IIS.

The procedure is:->turm Windows feature or not (Windows Central Administration)->role (role)->add role (Add roles)-> Select IIS through the Control Panel. The CGI entries in the World Wide Web under IIS are selected.

2, open "handler mapping"

The steps are: Open IIS, set up a virtual directory, and navigate to the Web site. Then click the Handlermaps->add module maps in the Features view panel to select the following in the module pool:

Request path:*.php//pointers to all PHP files

Module:fastcgimodule//Just choose it.

Executable:d:\php\php-cgi.exe//Depending on the actual path, select the type you want to select. ext to find this option

name:php via FastCGI//This name is arbitrary

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.