Installing apache+mysql+php under Windows system

Source: Internet
Author: User

Get the Software:

apache:http://httpd.apache.org/download.cgi

MySQL:http://dev.mysql.com/downloads/

PHP:http://www.php.net/downloads.php

Zendoptimizer:http://www.zend.com/en/downloads/

PhpMyAdmin:http://www.phpmyadmin.net/home_page/downloads.php

Or to Baidu cloud Share link Download: http://pan.baidu.com/s/1nurXOAt

Installation directory: D/lamp


First, install Apache

Similar to the installation of QQ software, directly double-click installation, not repeat.

Directory index:

<ifmodule dir_module>

DirectoryIndex index.php index.html

</IFModule>

Command line start, stop Apache

net stop apache2.2

net start apache2.2

NET Restart apache2.2


Second, install MySQL

Similar to the installation of QQ software, directly double-click the installation

The installation directory, the data storage directory, the two can not be in the same directory.

Set the root login password

Command line start, stop MySQL

net stop MySQL

net start MySQL

NET restart MySQL

Log in to MySQL:

Mysql-u root-h Localhost-p


Third, install PHP

Unzip directly, copy and paste.

1) Use PHP as an extension module for Apache servers

Open httpd.conf file to add PHP module

LoadModule php5_module "D:/lamp/php5/php5apache2_2.dll"

2) tell the Apache server to parse the php file's suffix name

AddType application/x-httpd-php. php. phtml

3) Specify the configuration file directory for PHP

Phpinidir "D:/LAMP/PHP5"

4) Change the configuration file php.ini-recommended in the PHP5 directory to php.ini

5) allow PHP to connect to MySQL

--Copy the Libmysql.dll file from the PHP5 directory to the C:/windows

--Open the php.ini file and remove the # before MySQL extension

--Set PHP extension directory extension_dir= "D://lamp/php5/ext"

IV. Installing the Zend Accelerator

Similar to the installation of QQ software, directly double-click the installation

Note Select the Apache installation directory and the PHP configuration file directory


This article is from the "Dongdongのhome" blog, make sure to keep this source http://autophp.blog.51cto.com/8062337/1746462

Installing apache+mysql+php under Windows system

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.