Iis+php+mysql installation Configuration

Source: Internet
Author: User
Tags install php win32

Source: http://www.ttjcnet.com/forum.php?mod=viewthread&tid=137&extra=

Download Php-5.2.0-win32.zip,mysql-noinstall-5.0.22-win32.zip and Phpmyadmin-2.9.1.1-all-languages.zip first. These three files can be found in Baidu search.

First, install PHP

1) Create a new folder named PHP in the D drive, unzip Php-5.2.0-win32.zip to D:\PHP.

2) Locate the Php.ini-dist file under the D:\PHP folder and copy it to make a backup. Rename the copied file to Php-ini.

3) Locate the following line in the php.ini file: Extension_dir = "./" (Note: This line specifies the location of the PHP lookup extension), edit the line as follows:

Extension_dir = "D:/php/ext" (Note: Do not use a slash/backslash \) here.

4) Locate the following line in the php.ini file:; Extension=php_mysql.dll (note: The semicolon at the beginning of the line instructs PHP to ignore the line), delete the semicolon at the beginning of the line to enable the extended extension=php_mysql.dll; Extension=php_mbstring.dll changed into Extension=php_mbstring.dll

5) Save and close the php.ini file, and copy the modified php.ini file to the C:\Windows\ folder;

6) Locate the file named Php5ts.dll,libmysql.dll in the D:\PHP\ folder and copy it to the C:\windows\System32 folder (Note: IIS handles PHP 5 and MySQL requires the file).

At this point, PHP installation is complete.

Ii. Installation Configuration IIS

1) Select Add/Remove Programs in the Control Panel and select Add/Remove Windows Components in the popup dialog box, check IIS. If you do not have an installation disk, you can go to the next IIS package that is extracted from the installation disk. After the installation is complete, there will be a Inetpub folder in the C drive.

2) Open Internet Information Services (IIS) Manager in the Administration tool, or enter "inetmgr" (excluding quotation marks) in the Run dialog box.

3) Create a new virtual directory under the default Web site, where you can store your PHP files. For example, the new virtual directory PHP points to the D:\phpamdin directory on the computer. Right-click on the PHP folder, select Properties, click Configure on the Virtual Directory tab, and open the Application Configuration dialog box.

4) On the Mappings tab, click Add, open the Add/Edit Application Extension Mapping dialog box, click Browse After executable, navigate to D:\PHP\php5isapi.dll, and enter ". PHP" in the text box after "extension" ( Note: Be sure to note the period before the extension) and click OK.

5) Add index.php as the default document in the document tab. can also not be added.

6) Click OK, exit the Application Configuration dialog box, click OK, and exit the PHP Properties dialog box.

This completes the IIS configuration.

Some configurations may require restarting the server: cmd under use:

net stop w3svc

net start w3svc

Third, test PHP installation

1) under D:\phpamdin, (this directory was set when IIS was configured with a virtual directory as PHP) after the new Notepad file opens, enter the following code:

<?php

Phpinfo ();

?>

Save the Segment code as version.php (the suffix must be PHP).

2) Open the browser, enter localhost/php/version.php in the Address bar, if the display is normal, the PHP installation is successful.

Iv. installation of MySQL

1) Create a new folder named MySQL in the D drive, unzip the downloaded Mysql-noinstall-5.0.22-win32.zip to D:\mysql.

2) Run D:\mysql\bin under the Mysqld-nt.exe, there will be a DOS screen flashed over. This launches the MySQL service.

3) in the command line switch directory to D:\mysql\bin, type mysql-u root-p Enter, if prompted enter password: The MySQL installation is successful. The default is a blank password.

V. Installation of phpMyAdmin

1) Extract the entire contents of the downloaded Phpmyadmin-2.9.1.1-all-languages.zip to the D:\phpadmin directory that was established when IIS was configured.

2) launch the browser to make sure that both IIS and MySQL services are running, and type http://localhost/php/index.php to see the phpMyAdmin management screen.

Iis+php+mysql installation Configuration

Related Article

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.