This article mainly and everyone to share the Web service environment Wamp detailed installation process, hope to help everyone.
First step, download and install Apache
Go to official Download Apache
Install Apache: First you can create a Web service environment directory under any drive letter WAMP file name, then create Apache file name under this folder, double-click the downloaded Apache installation package, and then start the installation: Finally specify the directory we have created (drive letter: \wamp\ Apache) is the installation directory. The installation steps are as follows:
After installation, open the browser, enter: localhost, return, if the following prompt indicates that the installation was successful:
Apache Default Web site root directory in: Apache installation directory/htdocs directory
Step two, download and install the Windows version of PHP and configure Apache to process PHP Web files
Go to official download of the Windows version of PHP
Install the Windows version of PHP, is actually the PHP package decompression, the folder name is changed to PHP and placed in our created directory (drive letter: \wamp\) can be, Then copy the Php.ini-development file from the PHP installation directory to a php.ini PHP configuration file.
Configure Apache to handle files with the suffix. PHP: First to find the Apache configuration file-apache installation directory/conf/httpd.conf, in the file where the module is loaded under-# Dynamic Shared Object (DSO) Support adds the following code:
#加载php语言引擎模块LoadModule php5_module "full path to Php5apache2_2.dll files in PHP installation package" Eg:loadmodule php5_module "C:/wamp/php/php5apache2_2.dll" #声明所有后缀为. php files are handled by the PHP engine AddType application/x-httpd-php . php# Specify the php.ini profile path so that when you configure php.ini, restarting Apache will take effect phpinidir "c:/wamp/php"
Finally save the configuration file and restart Apache.
Configure the time zone for PHP
Locate the php.ini configuration file in the PHP installation directory and modify it in the file by locating the [Date] configuration module:
Data.timezone = PRC. Remember to put the previous comment symbol, remove it, and finally restart Apache to take effect.
Step three, download and install the Windows version of MySQL
Go to official website to download the Windows version of MySQL
To install MySQL, under the Wamp folder that we just started creating, create the MySQL folder as the MySQL installation directory. Unzip the installation package to install the following:
Click Finish to install.
Load the MySQL module in the php.ini configuration file to access the MySQL database
In the php.ini configuration file, locate Extension_dir = "ext" to Extension_dir = "C:/wamp/php/ext". Specify the path where the PHP module resides
Then find Extension=php_mysql.dll the previous comment symbol, remove it, and finally restart Apache to take effect.
At this point, the WAMP site server environment is basically built!