Deployment of Apache + PHP + MySQL running environment in Windows

Source: Internet
Author: User
Tags php download

Official:
MySQL http://www.mysql.com/downloads/mysql/ find an MSI file down. Apache http://httpd.apache.org/download.cgi
Php http://windows.php.net/download/#php-5.4

The first is MySQL)

Step by step, no more configuration required

Then install Apache,

Also step by step

Install PHP. (I'm proud to be lazy. On the PHP download page, find the Installer file... it may not be the latest version ~)

Download Page

Installation notes

Other things to remember:

In fact, the above is all nonsense. The following is what I want to remember.

1. PHP and IIS combination notes

Edit this value in IIS Manager

2. PHP and Apache combined, Apache config file changes

In C: \ Program Files \ Apache Software Foundation \ Apache2.2 \ conf \ httpd. conf, add
Copy codeThe Code is as follows:
PHPIniDir "D: \ Program Files \ PHP \"
LoadModule php5_module "D: \ Program Files \ PHP \ php5apache2_2.dll"

3. Configure Apache config to workspace (for Eclipse debugging)

In C: \ Program Files \ Apache Software Foundation \ Apache2.2 \ conf \ httpd. conf, modify

Copy codeThe Code is as follows:
DocumentRoot "D: \ workspaces"

......

<Directory "D: \ workspaces">

4. Set the default PHP encoding.

Add C: \ Program Files \ PHP \ php. ini

default_charset = "gb2312" 
If the configuration is troublesome, you can use phpnow or apmsevr to quickly build a php runtime environment.

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.