1. IIS6 installation is normal
2.
A. Unzip the php-5.2.1-Win32 and copy all the DLL files in it and all the DLL files in the ext folder to \ windows \ system32
B. Copy the php.exe‑php-win.exe and PHP. ini-Dist files in the C: \ PHP Directory to c: \ windows;
C. Change c: \ windows \ PHP. ini-Dist to PhP. ini, open it in notepad, and search by using the search function of notepad.
Code:
Register_globals = off
, Change off to on;
Search again
Code: extension_dir =
And direct the path to the extensions directory under your PHP Directory, for example, extension_dir = "C: \ Inetpub \ PHP \ Ext ";
Search found
Code:; Windows extensions
List
Code:; Extension = php_dbase.dll
Optional
Code:
; Extension = php_gd2.dll
This is used to support the GD library. It is generally required.
Code:; Extension = php_ldap.dll
Optional
Code:; Extension = php_mbstring.dll
If you do not select phpMyAdmin, a red prompt is displayed. Therefore, it is required.
Code:; Extension = php_mssql.dll
This is used to support MSSQL. Optional.
Code:; Extension = php_mysql.dll
This is used to support mysql. It is required to support MySQL.
Remove the previous ";". You can also remove the previous one if you need it. Then, close and save the file.
D. Configure IIS to support PHP:
PHP supports CGI and ISAPI installation modes. The ISAPI mode is recommended.
Here we will only describe how to install ISAPI:
In "Control Panel", select "Internet Service Manager" in "Administrative Tools", enable IIS, and stop the service, then, right-click the "web site that you need to support PHP" on the left, for example, "Default web site", and choose "properties ", in the "ISAPI filter" tab in the "web site properties" window, find and click "add, in the pop-up "Filter Properties" window, enter: PhP in the "Filter Name" column, and then point the executable file to php5isapi. the dll path is c: \ windows \ system32 \ php5isapi. DLL.
Open the "home directory" tab in the "website properties" window, find and click "Configure". In the displayed "application"ProgramIn the Configuration window, find and click Add. In the displayed window, add a new extension ing with the extension. PHP, Click Browse to point the executable file to php5isapi. dll path, for example, c: \ windows \ system32 \ php5isapi. DLL, and then click OK. If you want to support PHP files with extensions such as. php3 and. phtml, repeat the "add" step.
Open the "documents" tab in the "web site properties" window, find and click "add" to add the index. php item to the default web site startup document list. You can raise index. php to the highest priority, so that the index. php document is automatically searched and opened when you visit the site.
Select "Pure script" from the application settings and execution licenses in the web directory, and then restart the Internet Information Service Manager.
Then, set the ISAPI extension permission in "Web Service extension" on the left of "Internet Service Manager". The Active Server Pages allow
Create a virtual directory in IIS, create the file index. php, and enter <? Echo phpinfo () ;?> Open your browser and enter http: // localhost/your virtual directory/index. php. The information page is displayed, and the configuration is successful.
3. mysql-5.0.18-win32.
Download To www.mysql.cn and install http://info.mysql.cn/install/2006/0208/81.html. It is recommended.
4. phpMyAdmin-2.7.0-pl2
Download To www.mysql.cn create a virtual directory phpMyAdmin in IIS, point to the file location, and select the script for executing the virtual directory permission. Edit the file config. default. PHP, find $ cfg ['blowfish _ secret'] = ''; add your MySQL password, $ cfg ['servers'] [$ I] ['controluser'] = ''; add root // (this user must have read-only
$ Cfg ['servers'] [$ I] ['controlpass'] = ''; your root password and $ cfg ['blowfish _ secret'] = ''; the password is the same.
Everything is OK. Hope to help beginners like me.
For more information, see http://www.souzz.net/html/edu/php/php2/7196.htmlconfiguration.