WAMP environments are installed separately (versions of apache2.4, mysql5.5, php5.5 under Windows)

Source: Internet
Author: User
Tags configuration php mysql version set time

I'm currently using apache2.4, mysql5.5, php5.5 versions.

Software Download:

1, vc2012

2. Apache

3. mysql

4. php

The above four required software I have been packaged to upload to 51CTO Download Center, if necessary to download, the following installation steps are based on the above installation of the necessary software to do, very detailed, because considering the never installed used friends can quickly install the configuration, each step has detailed instructions.


1. Select version:
Apache2.4.10 x86 version

2. VC11 dependence (vc2012 x86)

Installation Order:
1, vc2012 (x86 version) Select the vc2012 in the "Vcredist_x86.exe";

2. Apache (x86 version)
First create a folder on your disk, such as "set up the Wamp folder in the D disk" to store your profile and create a new Apache and WWW folder in Wamp.
The configuration of the apache->conf->httpd.conf file is as follows:
(1) Modify ServerRoot Apache's follow path: "Unzip the Httpd-win32-src.zip, copy all the files in the Apache24 to the Wamp->apache folder, and then modify ServerRoot to" D:/wamp /apache ""


(2) Modify the host name of the ServerName: "remove servername www.example.com:80 in front of the #, change the example.com to localhost"


(3) Modify DocumentRoot Apache access to the home folder directory: "Modify DocumentRoot" C:/apache24/htdocs "for DocumentRoot" D:/wamp/www ""


(4) Modify the Portal file configuration DirectoryIndex to (configure as needed): "Modify DirectoryIndex index.html to DirectoryIndex default.html index.html index.htm index.php index.ps index.jsp "


(5) "Modify scriptalias/cgi-bin/" c:/apache24/cgi-bin/"for scriptalias/cgi-bin/" D:/wamp/apache/cgi-bin ""


(6) Set access rights: "Modify <directory" C:/apache24/cgi-bin "> For <directory" D:/wamp/apache/cgi-bin "> and modify AllowOverride Allow for allowoverride all; modify allowoverride none for allowoverride allow; modify <directory "C:/apache24/htdocs" > for < Directory "d:/wamp/www" >; modify allowoverride None for allowoverride all; modify/> in <directory allowoverride None for allowoverride all and require all denied for granted "


(7) Adding Apache to the service: "Run->CMD->D:->CD wamp/apache/bin->httpd.exe-k install-n apache2.4"

3, MySQL (MySQL version select more than 5.5 version)
First, create a new MySQL folder in Wamp
(1) Double-click Install Mysql-5.5.28-winx64.msi file in 03mysql folder, select Custom installation, select the first installation path of the file under Custom setup in D:/wamp/mysql, the last installation path is selected in d:/ In Wamp/mysql/mysql Server 5.5
================mysql Entry Method: ================
1) Select MySQL 5.5 Command line Client, enter the password, show databases;
2) command line: Switch the drive letter of the installation disk, such as: CMD->D:->CD wamp/mysql/bin,mysql-u root-p,show databases;


4. PHP (vc11-x86 version)
First, create a new folder in the Wamp folder, such as php5.5.21 (named after PHP version, easy to switch PHP version in real-world development)
(1) Copy the Php-5.5.21-win32-vc11-x86.zip in the 04php folder to php5.5.21 and unzip it, then delete the Php-5.5.21-win32-vc11-x86.zip in the current folder.


(2) Copy the php.ini-development and rename it to PHP.ini
================ Configuration php.ini:================
= = = Configure Dynamic link library (716 rows)
(1) Cancellation; Extension_dir = "./" Comment (That is: remove the semicolon at the beginning) and change it to Extension_dir = "D:/wamp/php5.5.21/ext"
= = = Open the common dynamic link library (860-897 rows)
(2) The place to uncomment is as follows:
Extension=php_bz2.dll
Extension=php_curl.dll
Extension=php_gd2.dll
Extension=php_mysql.dll
Extension=php_mysqli.dll
Extension=php_pdo_mysql.dll
Extension=php_soap.dll
Extension=php_sockets.dll
Extension=php_xmlrpc.dll
= = = Set time zone (910 rows)
(3) cancel; date.timezone = comment and change to Date.timezone = PRC


--------------------------------------Gorgeous split-line--------------------------------------
Modify the httpd.conf in the Apache conf directory
(1) If there is phpinidir in the file, then modify it, if not, add Phpinidir "d:/wamp/php5.5.21" at the end of the file
(2) Add a line at the end of the file: LoadModule php5_module "D:/wamp/php5.5.21/php5apache2_4.dll"
(3) Add another line: AddType application/x-httpd-php. php. php5. PhP4. PS




This article from "11075795" blog, declined reprint!

WAMP environments are installed separately (versions of apache2.4, mysql5.5, php5.5 under Windows)

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.