First, Apache installation
Version Explanation: openssl is that with openssl module, openssl can be used to configure SSL secure links to Apache, which is to use https: // way to access.
nossl said without the OpenSSL module, can not be used for SSL security links, where we download with OpenSSL.
Select version: apache_2.2.14-win32-x86-openssl-0.9.8k.msi
Download address: http://www.apache.org/dist/httpd/binaries/win32/
First of all we are in the D drive (drive letter according to the actual situation of their own choice) to create a new directory,
And named "WAMP" The meaning of "Wdindows Apache Mysql PhpMyAdmin" after the installation of some of the content, will also be installed in the directory.
1. Installation instructions:
Run apache installer, the method is very simple, after the installation interface has been bomb "next"
Then there will be an interface, you need to fill in three content, namely: Network Domain, Server Name, Administrator's Email Address just like to fill, does not affect the content.
In the following there are 2 options, the default selection of 80 ports, the second for the 8080 port, according to individual needs choice, usually the default port 80.
We continue the installation, select Custom (custom installation) - "next"
Among them are the components marked with red X, we click the capacity of this component, select "This feature, and all subfeatures, will be installed on local hard drive.", "This section, and sub-sub-content, all installed locally Hard disk ". - "next"
Then select the lower right corner of the "change" to change the installation path, install to the directory you just created "D: WAMPApache" - "next"
After installation, the computer will be an icon in the lower right corner, double-click to open, select start or restart, to normal operation, thus the installation is complete.
2. Modify the configuration:
Open the installation record D: WAMPApacheconfhttpd.conf file (modify the configuration file is not recommended to use Notepad, it may be affected, it is recommended to use Notepad ++ or other editing software to open the change)
After opening Ctrl + F to find what you want to modify
Add under #LoadModule vhost_alias_module modules / mod_vhost_alias.so:
LoadModule php5_module "D: /WAMP/PHP/php5apache2_2.dll"
PHPIniDir "D: / WAMP / PHP"
AddType application / x-httpd-php .php
AddType application / x-httpd-php .htm
AddType application / x-httpd-php .html
DocumentRoot "E: / WAMP / Apache / htdocs"
Modify (the path here and IIS wwwroot directory, used to store the page, with or without modification default): DocumentRoot "D: / WAMP / www"
Modify into (default or not):
DirectoryIndex index.html
Modify to: DirectoryIndex index.php default.php index.html index.htm default.html default.htm
Test
Create a index.html page in the D: / WAMP / www directory
Enter http: // localhost /
If you can normally display, Apache configuration is completed, has been operating normally.
Second, MySql installation
Version Description: The Essentials Package: does not include embedded server and benchmark suite, there are automatic installer and configuration wizard, there is no MySQL Documentation.
The Complete Package: contains embedded server and benchmark suite, with automatic installer and configuration wizard, with MySQL Documentation.
The Noinstall Archive: contains embedded server and benchmark suite, there is no automatic installer and configuration wizard, MySQL Documentation.
Select version: mysql-essential-5.1.44-win32.msi
Download address: http://www.mysql.com/downloads/mysql/
1. Installation instructions:
Open the installation program, click "next"
Select custom, the default component selection, we do not make changes - "next"
Path is set to "D: WAMPMysql" - "next"
After installation click "finish"
Followed by a configuration wizard - "next"
Select "Detailed Configuration (Detailed Configuration)" - "next"
Here are 3 options:
Developer Machine, will use as little memory as possible;
Server Machine, will use a moderate amount of memory;
Dedicated MySQL Server Machine, this server only runs mysql database, it will take up all the memory.
You can choose according to their needs, where we choose the second "Server Machine" - "next"
Select database usage, there are three options as well:
Mutltifunctional Database versatile use, will optimize the database into a very good innodb storage type and efficient myisam storage type;
Transactional Database Only only for transaction types, the best optimization innodb, but also supports myisam;
Non-Transactional Databse Only Non-transactional type, suitable for simple applications, only myisam types that do not support transactions are supported.
The first choice of the general multi-function, the same we are too. - "next"
Choose InnodDB data storage location, the general acquiescence on the line, in order to unify me to fill out the "WAMP / MySQL Datafiles" - "next"
Select the maximum number of connections allowed mysql, the first is the maximum number of concurrent connections 20, the second is the maximum number of concurrent connections 500, the last is a custom, you can choose according to demand, I choose the second - " next "
The following is the choice of database listening port, the default is 3306, if changed to other ports, after connecting to the database must remember to modify the port, or can not connect mysql database, more trouble, do not modify here, with mysq default Port: 3306 - "next"
This step set mysql default encoding, we choose the third, and in the Character Set menu, select "gbk" encoding - "next"
(Note: If you want to use the original database data, it is best to determine what the original database encoding, if the encoding set here and the original database data encoding inconsistencies, may be garbled when used.
This step is whether to set the mysql to windows, the general option to set as a service, so that later you can start and shut down the mysql database through the service. The following check box is also checked, so that in cmd mode, you do not have to mysql bin directory to execute the command. That is, up and down 2 hook are marked, the middle of the default - "next"
This step is to set the mysql super user password, the super user is very important, have all the permissions on mysql, set and remember the super user password, the following check box is to choose whether to allow the remote machine to connect to the root user Your mysql server above, if you have this demand, please check. Here we use the default selection, enter the password in New root password and Confirm. "Next"
Click "execute" to configure, wait for a while, click on the dot on the hook, on behalf of the configuration is completed.
2. Modify the configuration:
Open D: WAMPMySQLmy.ini
Set datadir to D: / WAMP / MySQL / data / or the directory where you want to store the data.
Third, PHP installation
Version Explanation: VC9 is a script specifically for IIS, compiled with the Visual Studio 2008 compiler, supporting the latest Microsoft builds to increase efficiency.
VC6 is a script provided for other web services software like Apache.
Thread Safe is ready-made security, Star will be thread-safety checks to prevent the desire to start the new thread (Thread) of the CGI implementation and run out of system resources.
Non Thread Safe is non-thread safe and does not perform thread safety checks when executed
Select version: PHP5.3 (5.3.1) VC6 x86 Thread Safe under the ZIP download
Download address: http://windows.php.net/download/
1. Installation instructions
Since we downloaded the ZIP archive, you only need to extract the files to "D: WAMPPHP" directory
Modify the configuration
Modify the E: WAMPPHPphp.ini-development file to php.ini
Open php.ini
; extension_dir = "ext"
Modify to: extension_dir = "E: WAMPPHPext"
Will 947 line, these files in front of the ";" removed
extension = php_curl.dll
extension = php_gd2.dll
extension = php_mbstring.dll
extension = php_mysql.dll
extension = php_mysqli.dll
extension = php_pdo_mysql.dll
extension = php_xmlrpc.dll
; date.timezone =
Modify into (many sites did not mention here to be modified, the default is the United States time, if you do not modify the error): date.timezone = Asia / Shanghai
Test
Restart Apache (modified configuration file must restart Apache will take effect)
Create a new index.php page, enter the code, save the file into the "D: WMAPwww" directory
Open the browser, enter: http: //localhost/index.php If you can normally display, PHP configuration is completed, you can see the PHP information on the page is correct.
(Note: Entering a function in the change file can output a lot of information about the current state of PHP, such as the PHP version, server information, environment, etc.)
(Note:)
Then we test, can connect to Mysql
Create a new link.php, enter the following code
$ link = mysql_connect ("127.0.0.1", "root", "Mysql fill in the installation password");
if (! $ link) echo "Mysql database connection failed!";
Else echo "Mysql database connection is successful!";
mysql_close ();
?>
Also save the file into the "D: WMAPwww" directory
Open the browser input: http: //localhost/link.php view
Fourth, PhpMyAdmin installation
Version Description: phpMyAdmin-3.2.5
Choose version: phpMyAdmin-3.2.5-all-languages.zip
Download address: http://www.phpmyadmin.net/home_page/downloads.php
1. Installation instructions
Extract to D: WAMPphpMyAdmin
Modify the configuration
Open D: WAMPphpMyAdminlibrariesconfig.default.php
$ cfg ['PmaAbsoluteUri'] = ";
Modify to (fill in the absolute URL for accessing phpMyAdmin): $ cfg ['PmaAbsoluteUri'] = 'http: // localhost / PHPMyadmin /';
$ cfg ['Servers'] [$ i] ['host'] = 'localhost';
Modify to (fill in the server address, usually by default, do not need to modify): $ cfg ['Servers'] [$ i] ['host'] = 'localhost';
$ cfg ['Servers'] [$ i] ['user'] = 'root';
Modify into (fill in Mysql user name, here we default): $ cfg ['Servers'] [$ i] ['user'] = 'root';
$ cfg ['Servers'] [$ i] ['password'] = ";
Modify into (fill in Mysql password): $ cfg ['Servers'] [$ i] [' password '] =' Mysql PWD;
$ cfg ['Servers'] [$ i] ['auth_type'] = 'cookie';
Modify to (set authentication method, security considerations, fill in cookie): $ cfg ['Servers'] [$ i] ['auth_type'] = 'cookie';
$ cfg ['blowfish_secret'] = ";
Modify to (set the phrase password, if the above set to cookie, it can not be left blank, or login will prompt error): $ cfg ['blowfish_secret'] = 'cookie';
Test
Open the browser and enter: http: // localhost / phpmyadmin / Access and login
Fifth, the end
At this point Windows7 under the PHP environment to build is completed, we enjoy the use of it.