How to configure PHP in IIS6 200911_win server

Source: Internet
Author: User
Tags phpmyadmin
First, the environment description:
Os:windows Server 2003 R2 Enterprise Edition SP2;
iis6.0;php-5.2.11;mysql5.1.40;
Phpmyadmin-3.2.3-all-languages
Two, configure the PHP steps
1, the download of the PHP compression package to a directory, such as c:\php
2, set environment variable, my Computer-> attribute-> advanced-> environment variable-> system variable, add php and PHP extension path after variable path, respectively, C:\php; C:\php\ext
3, open IIS Manager,
1 Add a new Web service extension, the corresponding file is C:\php\php5isapi.dll, the name is custom, such as PHP ISAPI
2 Select Web site, open Properties window, select ISAPI Filter, add a filter, name custom, such as PHP, corresponding file or C:\php\php5isapi.dll
3 Select the Home directory, click on the Configuration button, add an application extension mapping, extension fill. php, executable file or C:\php\php5isapi.dll
4,iisreset Restart IIS
5, create a test page, such as creating a index.php file under D:\phptest\, which reads as follows:
<?php
Phpinfo ();
?>
6, create a Web site in IIS, the corresponding directory for D:\phptest, site name customized, such as PHP, and then select the site, open the Properties window, select the document, add a default document index.php.
7,iisreset Restart IIS
8, visit the website, my local access path for http://localhost:9996/Note that if you create the site when you specify an IP address, you want to change the localhost to the appropriate IP address.
If the PHP information page appears, the configuration is successful.
Third, configure phpMyAdmin steps
1, the first to install a good MySQL, I installed is mysql-essential-5.1.40-win32.msi.
Extract the downloaded phpMyAdmin compressed package into a directory and configure it as a Web site on IIS.
2, create a file config.inc.php in the phpMyAdmin root directory, and then copy the contents of config.sample.inc.php into config.inc.php to modify the following configuration section
$cfg [' Servers '] [$i] [' controluser '] = ' root ';
$cfg [' Servers '] [$i] [' controlpass '] = ' pwd001 ';
Description: Root is the user name of MySQL, pwd001 is the password.
3, if the previous PHP is not installed version, find the PHP directory, there is a php.ini file, the inside of the MySQL extension to let go, the specific is to remove the semicolon before, and then copy the file to the C:\WINDOWS directory below, and then iisreset restart IIS.
4, access to http://localhost:9997/index.php, you will enter the phpMyAdmin login interface, input 2 in the configuration of the user name, password, you can enter the management of MySQL.
Complete.

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.