Windows 2008 server PHP environment Configuration tutorial

Source: Internet
Author: User
Tags character set iis ini php and win32 phpmyadmin zend

Configure iis + Php + Mysql + Zend Optimizer + GD library + Phpmyadmin in Windows 2008
The difference between windows 2008 and windows 2003 is that the former is iis7 and the latter is iis6. In both systems, Iis + Php + Mysql + Zend Optimizer + GD library + Phpmyadmin are basically the same.

I. Prepare required software

1: mysql-5.0.18-win32
3: mysqlcc-0.9.4-win32
4: phpMyAdmin-2.11.1-all-languages
5: ZendOptimizer-3.2.6-Windows-i386

II. Start configuring Php

1: decompress and name it Php. Copy it to C.
2. Copy all *. dll files in C: php and C: phpext to C: WINDOWSsystem32 and overwrite them.
3: Copy the php-win.exe, php.ini-dist, and php.exe files in C: php to C: WINDOWS, and rename php. ini-dist to php. ini.
4: Start-run-inetmgr: after iis7 is enabled. Select the IIS server under the start page on the left. This IIS server can be expanded. There are sites in it. When global IIS is configured, select the IIS server. Many icons are displayed in the right area. Double-click the handler ING. Select Add module ing in the action on the right.
Request path: *. php
Module: FastCgiModule
Executable: C: Phpphp-cgi.exe
Name: FastCGI-PHP (custom)
Now you can run the php program.

3. Install ZendOptimizer (ZendOptimizer is used to accelerate php)

Next-Finish (all the way to the next step, OK, complete)

4. Configure Php. ini

Open the WordPad and press C: WINDOWSphp. ini, search (Ctrl + f) register_globals = Off, change Off to On; extension_dir = ". /", and ". /"to" C: phpext ". Note that there cannot be spaces in the left path;
Start the following lines of code and delete the number.
; Extension = php_dbase.dll optional
; Extension = php_gd2.dll this is used to support the GD Library. It is generally required.
; Extension = php_ldap.dll optional
; Extension = php_mbstring.dll (required)
; Extension = php_mssql.dll this is used to support MSSQL, optional
; Extension = php_mysql.dll this is used to support MYSQL. To support MYSQL, you must remove the ";" before the above code. You can also remove the previous one if needed; close and save the file.

V. Install Mysql (one installation page per step)

1: run mysql-5.0.18-Custom item-Next
2: Click (Change...) to Change the installation path.
3: after changing the path, click Next, and then click Install to start installation.
4: We can see the installation progress!
5: select Skip Sign-Up and click Next> continue installation!
6: the installation is complete. Select Configure the MySQL Server now and click Finish to Configure Mysql.
7: go to the Mysql configuration page-Next
8: Select Detailed Configuration item-Next
9: Select Server Machine item-Next
10: Select the Multifunctional Database item-Next
11: In this step, I still use the default one (let you choose the location where the database files are stored)
12: select Online Transaction Processing (OLTP)-Next
13: Continue Next
14: Select language support! Use the default-Standard Character Set item
15: Remember to select Include Bin Directory In Windows Path item-Next
16: enter the password-Next
17: click Execute to complete the configuration and start the MYSQL service.
18: click Finish to complete the installation of Mysql.

6. Install mysqlcc-0.9.4-win32 (manage database. Create user. DataBase. Table ...)

"1: This article mainly installs how to configure Iis + Php + Mysql. This module is simple to say. Either" Next "or" Finish ". There are several items in the pop-up interface.
Hostname-just enter a name)
Name-username root when Mysql is installed)
Password-the user password used to install Mysql)
Another mysql address is localhost by default.
Click Add. 2: After this step is completed, change the interface to the Simplified Chinese menu bar-Options-General Ctrl + 0-in the open General Language item, select the Simplified Chinese option-0 K to restart mysqlcc
7. Install Phpmyadmin

1: Iis points to the decompressed phpmyadmin directory.
2: rename config. sample. inc. php in the root directory to config. inc. php.
3: When you browse index. php, a prompt is displayed, indicating that the password is empty. In the upper-right corner, click a connection to enter the phpmyadmin configuration page. After entering the information, add-OK.

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: 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.