I. Environment Description:
OS: windows server 2003 r2 enterprise SP2;
IIS6.0; php-5.2.11; MySql5.1.40;
PhpMyAdmin-3.2.3-all-languages
Step 2: Configure PHP
1. decompress the downloaded php package to a directory, such as c: \ php.
2. Set the environment variables. Choose my computer> Properties> advanced> environment variables> system variables. append the php and php extension paths after the variable path, c: \ php; C: \ php \ ext
Modify php. in ini, The extension_dir is extension_dir = "C:/php/ext". After modification, copy it to Windows and copy libmysql. dll and ext \ mysql. dll to Windows \ System32.
3. Open the IIS manager,
1) Add a new WEB Service extension. The corresponding file is C: \ php \ php5isapi. dll and the name is customized, such as php isapi.
2) Select a website, open the Properties window, select the ISAPI filter, and add a filter with a custom name, such as PHP. The corresponding file is still C: \ php \ php5isapi. dll.
3) Select the main directory and click Configure to add an application extension ing. Enter. php as the extension. The executable file is C: \ php \ php5isapi. dll.
4. Restart IIS with iisreset
5. Create a test page. For example, create an index. php file under D: \ phptest \. The content is as follows:
<? Php
Phpinfo ();
?>
6. Create a website in IIS. The corresponding directory is D: \ phptest, and the website name is customized, such as php. Then select the website, open the Properties window, select a document, and add a default document index. php.
7. Restart IIS with iisreset
8. Visit this website. My local access path is http: // localhost: 9996/. Note: If you specify an IP address when creating a website, replace localhost with the corresponding IP address.
If the PHP information page appears, the configuration is successful.
Step 3: Configure phpMyAdmin
1, first install mysql, I installed mysql-essential-5.1.40-win32.msi.
Decompress the downloaded phpMyAdmin package to a directory and configure it as a website on IIS.
2. Create a file config. inc. php under the phpMyAdmin root directory, copy the content in config. sample. inc. php to config. inc. php, and modify the following configuration section.
$ Cfg ['servers'] [$ I] ['controluser'] = 'root ';
$ Cfg ['servers'] [$ I] ['controlpass'] = 'pwd001 ';
Note: root is the mysql user name and pwd001 is the password.
3. If the php version is not installed, find the php Directory, and there is a php. in the INI file, open the mysql extension, specifically remove the semicolon before extension = php_mysql.dll, copy the file to the C: \ WINDOWS directory, and then restart IIS.
4. Access http: // localhost: 9997/index. php. The phpMyAdmin logon page is displayed. Enter the username and password configured in step 2 to go to mysql management.
Complete.