IIS7. X configuration PHP Running Environment summary

Source: Internet
Author: User
Tags configuration php iis ini win32 zip root directory

Using IIS to run a PHP program

1. Download PHP First, Here I am downloading php5.2.14 (if it is the other high version, you may not find Php5isapi.dll, its related configuration method for the moment, regardless of whether it is recommended to download ZIP compression package, do not need to install on it, and when downloading, please pay attention to choose VC9 Package instead of VC6 (this is Apache use). For example, I unpack to d:\ Php-5.2.14-win32.

2. Find Php.ini-dist modified to php.ini, and then open the file:

Find register_globals = Off

Modified to Register_globals = ON,

Find Extension_dir = "./"

Modify the path to the extension DLL in your zip package, for example, my d:\ Php-5.2.14-win32\ext is modified to Extension_dir = "D:\ php-5.2.14-win32\ext"

Add an extension to

; Extension=php_curl.dll

; Extension=php_dbase.dll

; Extension=php_gd2.dll

; Extension=php_ldap.dll

; Extension=php_mysql.dll

Front semicolon ";" Removed to enable these common extensions.

3. Create a Web site in IIS, such as: Phptest, by default add an application pool to the application pool. The NETFramework version is modified to "no managed code" and the managed piping mode is modified to "classic". Then add the application map to the Web site, add a script map, request the path to "*.php", and the executable file is "D:\php-5.2.14-Win32\php5isapi.dll" (depending on the PHP directory).

So far you can run your PHP site. For example, in the site root directory to create a file named "index.php", add "" After the run can appear the following interface:

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.