Iis+php+mysql installation Configuration Method _win Server

Source: Internet
Author: User
Tags install php mysql in win32 phpmyadmin
First, install PHP
1 Create a new folder named PHP in D disk, extract 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: The row specifies the location of the PHP lookup extension), edit the row as follows:
Extension_dir = "D:/php/ext" (Note: Do not use slashes/instead of backslash \) here.
4 The following line is found in the php.ini file:; Extension=php_mysql.dll (note: The semicolon at the beginning of the line instructs PHP to ignore the row), deletes the semicolon at the start of the line to enable extended extension=php_mysql.dll;; Extension=php_mbstring.dll changed into Extension=php_mbstring.dll
5 Save and close the php.ini file, copy the modified php.ini file to the C:\Windows\ folder;
6 Locate the file named Php5ts.dll,libmysql.dll under 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.
Second, install the configuration IIS
1 Select Add/Remove Programs in the Control Panel, then select Add/Remove Windows Components in the pop-up dialog box and check IIS. If you do not have an installation disk, you can go to the next IIS package extracted from the installation disk. After the installation is complete, there will be a Inetpub folder in C disk.
2 Open the Internet Information Services (IIS) Manager in the Administration tool, or determine after entering "inetmgr" (excluding quotes) in the Run dialog box.
3 The Default Web site under the new virtual directory, where you can store your PHP files. For example, create a new virtual directory PHP points to the D:\phpamdin directory on your computer. Right-click on the PHP folder, select Properties, click Configure on the Virtual Directory tab, and then open the Application Configuration dialog box.
4 On the Mappings tab, click Add, open the Add/Edit Application Extension Mappings 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, click OK.
5 Add index.php as the default document in the document tab. You can also not add.
6 Click OK again, exit the Application Configuration dialog box, click OK, and exit the PHP Properties dialog box.
At this point, the IIS configuration is complete.
Some configurations may require a reboot of the server: using cmd:
net stop w3svc
net start w3svc
third, test the PHP installation
1 under D:\phpamdin, (this directory when you configure IIS to set up a virtual directory for PHP), open after the new Notepad file, enter the following code:
Copy Code code as follows:

<?php
Phpinfo ();
?>

Save the Segment code as version.php (the suffix name 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.
Four, install MySQL
1 Create a new folder named MySQL in D disk, 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 will start the MySQL service.
3 at the command line to switch directories to D:\mysql\bin, type mysql-u root-p carriage return, if prompted to enter password: it means that MySQL installation was successful. The default is a blank password.
V. Installation of phpMyAdmin
1 Extract all content from the downloaded phpmyadmin-2.9.1.1-all-languages.zip to the D:\phpadmin directory that was established when IIS was configured.
(Download address: http://www.phpmyadmin.net/home_page/downloads.php)
2 start the browser to ensure that IIS and MySQL services are running, type http://localhost/php/index.php you can see the phpMyAdmin management screen.
Server-related software download Http://s.jb51.net you can refer to the following.
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.