Configure iis6+php5.2.17+mysql5.5 operating Environment _php techniques in Win2003 (64-bit)

Source: Internet
Author: User

Pre-Installation Preparation work:


Create a folder in the root directory of C disk or D disk, and you can determine the name yourself. Here we create a folder called OServer in the D-packing directory.

1. Download PHP

A) access to Http://windows.php.net/download

b Download VC9 x86 Thread Safe (be sure to download the 5.2 series version, if you do not find a specific address, you can click the link below to download

Http://windows.php.net/downloads/releases/php-5.2.17-Win32-VC6-x86.zip)



c) After downloading, unzip it to the D:/oserver/php folder, and if there is no PHP folder, create it.

2. Download MySQL

A) access to http://www.mysql.com/downloads/mysql/, select the 64-bit version of mysql5.5



Click on the map below the red box link to download



If you do not find a specific address, you can click on the link below to download

Http://cdn.mysql.com/Downloads/MySQL-5.5/mysql-5.5.28-winx64.msi

b After downloading, put it on the desktop for use

3. Configure IIS

The default 2003 server does not have IIS installed, and you need to open it separately. The steps are as follows:

Click Control Panel Admin tools to manage Your server add or remove roles



Then click Next to select the application Server (iis,asp). NET)



In the following interface, if you want the current server to run both the PHP program and the ASP.net program, you can select the options in the red box, otherwise you do not have to select the options in the Red box.



Click Next



The system starts automatically installing IIS servers for you



If you are prompted for the following information during the installation process, insert your Windows 2003 installation CD or the Windows2003 mirror image in the virtual CD drive, select the next browse button, locate the I386 folder, and then click OK.





Then click Open and the system will continue to install automatically. If the system prompts you multiple times to specify a folder, you can select the I386 folder, and then click OK and the system will continue to install.

After the installation is successful, the interface is as follows.



4. Configure PHP

1. Modify the Php.ini-production in the PHP folder and change it to php.ini.

2. Found in php.ini; extension_dir= "./" Remove the semicolon before it, and modify it to extension_dir= "D:/oserver/php/ext"

3. Find the following statement, remove the preceding semicolon

Extension=php_gd2.dll

Extension=php_mbstring.dll

Extension=php_mysql.dll

Extension=php_pdo.dll

Extension=php_pdo_mysql.dll

Extension=php_mcrypt.dll

Find Date.timezone = Remove the preceding semicolon,

Changed into Date.timezone =asia/shanghai

5. Configure IIS so that it supports PHP

Open IIS and start configuring PHP



Find the Site "Default Web site, click the right mouse button, click Properties."



Click ISAPI Filter, and then click the Add button, and in the Filter Properties dialog box that pops up, fill in the filter name "PHP", and the executable file "D:\oServer\php\php5isapi.dll"



Click Configure under the Home Directory tab, the Application Configuration dialog box appears, click the Add button, and in the Add/Edit Application Extension Mapping dialog box, enter "D:\oServer\php\php5isapi.dll" in the executable location. Enter ". php" at the extension, and then determine.



Select the Chinese file, click Add and then enter index.php in the default content page, click OK.



To set the Web server Extensions in IIS Manager

Right-click on "Add a new Web service extension" to the blank area on the right



In the pop-up window: extension to fill in ". php", then click the Add button, browse the PHP installation package under the Php5isapi.dll file, click OK. Then select the set extension status bit allowed. When Setup is complete,

Restart IIS.





Restart IIS

Create a new txt text file in the site Directory

Enter the following content:

<?php

Phpinfo ();

?>

Save As test.php (note that extension cannot be test.php.txt)

Enter http://localhost/test.php in the browser, if the following interface appears, indicating that the installation was successful!

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.