IIS7 Configuring PHP Plots

Source: Internet
Author: User
Tags phpinfo

First install the IIS7 installation of the time to pay attention to three places to play a tick

Note: CGI will be used in iis7+php_5.3.5 environment.

ISAPI extensions and ISAPI filters are iis7+php_5.2.17

Start adding PHP support for IIS below

iis7+php_5.3.5

1. Extract the downloaded php_5.3.5 to the C:\php directory (also can be placed elsewhere, but should be modified later)

2. Rename Php.ini-development to PHP.ini

3. Modify PHP.ini Find Data.timezone Modify to Date.timezone = "Asia/shanghai" (must be changed here, or will warn) find Windows extensions to open the required modules,

such as: Php_curl.dll Php_mysql.dll Php_mysqli.dll Php_xmlrpc.dll as long as remove the previous semicolon to save it.

4. Add < Module mappings >

The path here is filled out according to your actual situation.

5. Create a new phpinfo.php text file in the root directory of the Web site as follows:

<?php
Phpinfo ();
?>

6. Test, open the browser to see the results: localhost/phpinfo.php, if you can see a page similar to the following shows that you have succeeded:

Well, it is now possible to run the PHP program successfully.

FastCGI process quits unexpectedly resolves when IIS configures PHP with fastcgi

Many people have a 500 error while configuring iis7+fastcgi+php the fastcgi process quits unexpectedly while the php-cgi.exe process crashes.





This problem is usually caused by a problem with the PHP configuration.

The workaround is to first put the PHP program directory into the system path variable, so that you can use the PHP-V command to check the configuration of PHP without using IIS.

For example, I wrote the path to the Extension_dir attribute incorrectly in php.ini. Enter php-v on the command line with the following display (click to enlarge)

PHP can not load the extension library files, of course, will error.


If you look at it after the modification is complete, there is no problem.

The problem can be resolved by restarting IIS at this point.

Reprinted from: http://www.cnblogs.com/tianyaxiang/archive/2012/02/06/2339599.html

Http://blog.sina.com.cn/s/blog_63426ff90101cptm.html

IIS7 Configuring PHP Plots

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.