1. Download the installer from the official website.
Http://www.php.net/download The WinZip package, because the file of the Self-installed program is incomplete.
Http://www.mysql.com/download the latest version under Win.
Http://www.phpmyadmin.net/home_page/index.php to download the latest phpMyAdmin version.
2. Install MySQL by default.
3. Install PhP5
Decompress PhP5 to C:/PHP
Copy PHP. ini-recommended to the Windows directory and change the name to PhP. ini.
Configure PHP. ini to support MySQL and Gd libraries.
Open PHP. ini and find "extension_dir ",
Extension_dir = "./"
Change
Extension_dir = "C:/PHP/EXT"
Search; Extension = php_mbstring.dll
Extension = php_mbstring.dll
; Extension = php_mysql.dll
Extension = php_mysql.dll
; Extension = php_gd2.dll
Extension = php_gd2.dll
Save PHP. ini
5. Configure IIS to make IIS support PHP
Open IIS-default website-properties-home directory-configuration-add
Executable File-Open C:/PHP/php5isapi. dll
Extension-Enter. php and select the check boxes "Script Engine" and "check whether the file exists" to confirm and exit IIS.
Now the server should be able to support PHP.
6. decompress the downloaded phpMyAdmin file.
Copy config. Default. php In the directory to config. Inc. php, and then open config. Inc. php to modify it.
Find
$ Cfg ['servers'] [$ I] ['user'] = 'root ';
$ Cfg ['servers'] [$ I] ['Password'] = '';
Enter the MySQL password, as shown in figure
$ Cfg ['servers'] [$ I] ['user'] = 'root ';
$ Cfg ['servers'] [$ I] ['Password'] = 'passwd ';
Search
$ Cfg ['pmaabsoluteuri '] = '';
Enter the phpMyAdmin path, as shown in figure
$ Cfg ['pmaabsoluteuri '] = 'localhost/phpmyadmin ';
Save config. Inc. pH and exit.
7. Now Apache and PHP have been configured. Enter localhost in the browser to check the result and run it successfully. Then, enter localhost/phpMyAdmin.
If phpMyAdmin prompts an error message:
Quote:
MySQL returns:
#1251-client does not support Authentication Protocol requested by server; consider upgrading MYSQL client
Enter the MySQL command line client and enter the password
Mysql> Update mysql. User SET Password = old_password ('newpwd ')
-> Where host = 'localhost' and user = 'root ';
Mysql> flush privileges;
Newpwd is the Reset Password
Then exit.
The following two PHP files are used to test whether PHP and MySQL are successfully installed.
Phpinfo. php
Testdb. php
Note the following when installing the NTFS partition:
Select WordPress folder-properties-Web Sharing, and select the shared folder to save.
It is estimated that the NTFS partition permission settings are incorrect.