[Zz] install IIS + PhP5 + mysql5 in XP

Source: Internet
Author: User
Tags php and mysql mysql command line

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.

 

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.