Quickly build a php environment in Windows 7 (windows7 + IIS7 + php + mysql)

Source: Internet
Author: User
Resend: apps. hi. baidu. comsharedetail10406992 (1). Reasons for use: advantages: the desktop graphic operating system is maximized, with excellent maintainability. Based on IISv6.0v7.0 (2008), the scripts supported are quite complete. Not only does Linux support aspasp.net, but php, mysql, and zend can also be installed to implement php.

Tip: http://apps.hi.baidu.com/share/detail/10406992 (1), use reasons: Advantages: Maximize the desktop graphical operating system, good maintainability. Based on IIS v6.0/v7.0 (2008), the scripts supported are quite complete. Not only does Linux support asp/asp.net, but php, mysql, and zend can also be installed to implement php.

Tip: http://apps.hi.baidu.com/share/detail/10406992

(1) Reasons for use:

Advantages: The desktop graphic operating system is maximized, and the maintainability is excellent. Based on IIS v6.0/v7.0 (2008), the scripts supported are quite complete. Not only does Linux support asp/asp.net, but php, mysql, and zend can also be installed to implement the php environment. In addition, Serv-U can be used for ftp management. The operation is simple. You can enable a fully-hosted host without having to enter any commands.

Disadvantage: Due to the expensive version of Windows, the general price of Windows 2003 Chinese Enterprise Edition is between 19000 and 30000,

Windows 2008 Chinese version is from 20000 to 25000. If MSSQL is installed, the price will multiply.

Success case: Microsoft Server Cluster

(2) Procedure:

Note: Windows 2008 installation cannot be implemented in virtual machines, mainly because the memory is not large enough. Therefore, use Windows 7 instead of Windows 2008, and use IIS v7.0 + php + mysql + ze nd to build the operating environment.

1. Install IIS v7.0

Control Panel-programs and functions-enable or disable Windows functions

To test whether IIS v7.0 is successfully installed, enter http: // localhost/or http: // 127.0.0.1/in the browser/

The above interface indicates that IIS v7.0 is successfully installed.

Create a site: (the default site is used as asp/asp.net/, and the 8080port is started, that is, you can use http://localhost:8080 /)

2. Configure the PHP Environment

Php v5.2.5 is used. Download php v5.2.5 and decompress it to G: \ php

In IIS, perform the following operations:

Add an ISAPI filter:

Add script ing:

Add application pool:

Change the site application pool and add the default document index. php:

Modify G:/PHP/php. ini-list file name is php. ini, copy to F:/windows/(dual system, drive letter of win7), modify php. ini: it supports GD, mysql, etc.

Modify the extension_dir directory:

Create an index. php file in the default directory.

Enter http: // 127.0.0.1: 8080/to verify whether php is successfully installed:

3. Add a Mysql database:

Mysql v5.1.35 is used.

Install Mysql:

Set Mysql:

Verify that mysql is correctly installed:

1. Check whether mysql is started in the Service Manager:

2. Can I use phpmyadmin to access mysql:

3. Zend Optimizer

Zend Optimizer v3.3.0a

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.