Iis6.0 + PHP + MySQL + Zend Environment [Image and text]

Source: Internet
Author: User

Win2003iis6.0 + PHP + MySQL + Zend + environment Creation
The related software is as follows:
Operating System: Windows 2003 sp2 iis6.0
PHP version: PhP 5.2.5
MySQL version: MySQL 5.0.41
Zend version: zendoptimizer 3.3.0a
PhpMyAdmin version: phpMyAdmin v2.11.2.1
(It seems that all of them are in the latest version)
Related downloads:
PHP: Click to enter the download page
MySQL: Click to enter the download page.
Zend: Click to enter the download page.
PhpMyAdmin: Click to enter the download page.
Configure the environment below. It is very long and patient. It is best to watch and configure while saving time.
Installation start: Install iis6.0

1. Create Four folders wwwroot, PhP5, MySQL, and Zend on the local D Drive.
2. install PHP v5.2.5
1) decompress the downloaded php-5.2.5-win32.zip file to the D:/PhP5 directory.
2) Change the PHP. the ini-Dist file is renamed to PhP. INI, And put PHP. cut the INI file and place it in the C:/Windows Directory (if it is a 2000 system, put it in the C:/WINNT directory)
3) Put the php5ts. dll, libmysql. dll, and libmcrypt. DLL files under the PhP5 root directory to the System32 directory of the system. Note that these three files are required.
4) Open the C:/Windows/PHP. ini file.
Find
Extension_dir = "./"
Change
Extension_dir = "D:/PhP5/EXT"
Find
; Extension = php_mbstring.dll
Change
Extension = php_mbstring.dll
Find
; Extension = php_gd2.dll
Change
Extension = php_gd2.dll
Find
; Extension = php_mysql.dll
Change
Extension = php_mysql.dll
Find
; Extension = php_mcrypt.dll
Change
Extension = php_mcrypt.dll
The above is to modify and remove the previous ";" symbol to support corresponding functions, and finally save it.
3. Configure IIS to support PHP
1) In "Control Panel"-"Administrative Tools", locate and open "Internet Information Service (IIS) manager"


2) Find "website"-"default website", right-click "default website", and then click "properties"


3) Click "ISAPI filter", and then click "add". In the "filter attributes" dialog box that appears, enter the Filter Name "php" in sequence. The executable file "D: /PhP5/php5isapi. DLL, as shown in (php5isapi. dll path can be selected by clicking "Browse"), and then click "OK" to exit


4) Click the "home directory" tab, and then click "Browse" to direct the website directory to D:/wwwroot.


5) Click "configuration" under the Home Directory label. The "application configuration" dialog box appears, and then click "add, in the "Add/edit application extension ing" dialog box,
Enter D:/PhP5/php5iaspi. dll in the executable file location, enter php In the extension, and then confirm


6) Click the "document" tab and click the "add" button. In the "add default document" dialog box that appears, enter index. php and click OK.


7) Click "Web Service extension", click "Add a new Web Service extension", and enter PHP at the "extension" in the "Create web service extension" dialog box that appears, click "add" and enter D:/PhP5/php5isapi under "file path. DLL OK, then hook before "set extension status to allow", and finally confirm to exit.


8) to verify whether the environment we Just configured can run php normally, first create a new text and enter the following content
<? PHP
Phpinfo ();
?>
Save as phpinfo. PHP, and enter the website root directory (I am here d:/wwwroot), enter http: // localhost/phpinfo In the IE browser. PHP. After you press enter, the following information appears, proving that the system supports PHP.


9) Now that all the PHP environment configurations are complete, your website can run the normal PHP program. 4, install MySQL, run the download mysql-essential-5.0.41-win32.msi, the installation process please follow to show installation, after completion will ensure that your MySQL runs properly.


























Note: If you want more extensions, select UTF-8 Encoding








Check MySQL and press win + R on the keyboard. The run dialog box is displayed. Enter cmd and press enter to enter the command prompt,
Enter "mysql-uroot-P" and press enter to enter the password. The password I set is 123456. Enter the password and press Enter.
Now you can see the following success prompt, indicating that all the installation is successful








OK!
Supplement: (optional)
Enable and disable MySQL batch processing separately
Enable:
@ Echo off

"D:/usr/local/mysql5/bin/mysqld-nt.exe" -- install phpweb_db -- defaults-file = "D:/usr/local/mysql5/My. ini"
Net start phpweb_db
Save as: Start mysql. bat
Explanation: D:/usr/local/mysql5/bin/mysqld-nt.exe: Your MySQL program path
Close:
@ Echo off
Net stop phpweb_db
"D:/usr/local/mysql5/bin/mysqld-nt.exe" -- remove phpweb_db
Save as: Disable mysql. bat
Explanation: D:/usr/local/mysql5/bin/mysqld-nt.exe: Your MySQL program Path 5, install zendoptimizer v3.3.0a run the download zendoptimizer-3.3.0a-windows-i386.exe, the installation process please follow the instructions to install, after that, make sure that your Zend runs properly.


















Zend installation OK ~

6. Install phpMyAdmin-2.11.2.1
1. decompress the downloaded phpmyadmin-2.11.2.1-all-languages.zip file to the current folder, rename it phpMyAdmin, and move it to the root directory of the website. Here, my directory is under the D:/wwwroot directory.
2) EDIT config. Default. php under D:/wwwroot/PHPmyAdmin/libraries.

Find code
CFG ['pmaabsoluteuri '] =''
Change
CFG ['pmaabsoluteuri '] = 'HTTP: // localhost/PHPmyAdmin/' // change localhost to your actual browsing URL. Add "/" to the directory.

Find code
CFG ['blowfish _ secret'] =''
Change
CFG ['blowfish _ secret '] = 'gfehwwriewyi' // enter the content as needed.

Find code
CFG ['servers'] [$ I] ['host'] = 'localhost'
Change
CFG ['servers'] [$ I] ['host'] = 'localhost' // Note: If you are connecting to the local database, you do not need to modify it here, if you are connecting to a remote database, change localhost to the actual IP address of the database.

Find code
CFG ['servers'] [$ I] ['auth _ type'] = 'config'
Change
CFG ['servers'] [$ I] ['auth _ type'] = 'cooker'
3) Save and exit. Open the browser and enter http: // localhost/phpMyAdmin.

So far, all your server environments have been configured successfully!

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.