First, open LAN access
Profile: Click on the WAMP server tray in the lower right corner and select apache>httpd.conf
Search for the keyword "deny from", you will find a "deny from all" to delete him, and then found that there is a line "Allow from 127.0.0.1", and then change 127.0.0.1 to all, that is, "allow from all" is allowed any The Apache service will allow the extranet to be accessed.
Second, open phpMyAdmin external access permission (this feature can be opened as needed for database security is not recommended to open)
Locate the alias directory in the WAMP installation directory, modify the phpmyadmin.conf configuration file, and, as with httpd.conf, you will find a "Deny from all" delete him and then "Allow from 127.0.0.1" Modify to: "Allow from all".
third. Set Password
First, open MySQL via Wamp and click on MySQL console.
Prompt for password, because it is now empty, so press ENTER directly
Then enter "Usemysql", meaning that using MySQL database, prompt "database changed" on the line.
Then enter the SQL statement for the password you want to modify "update user set Password=password (' Hooray ') where user= ' root ';", note that the semicolon at the end of the SQL statement must not be less, It's OK to suggest what's okay.
Finally enter "flush privileges;", do not enter this, the operation of the password change will not take effect.
Then enter "quit" to exit.
In fact, the use of mysqladmin can also change the password will not say, thank you http://www.cnblogs.com/hooray/archive/2011/07/23/2114792.html
At this point, if the login database reported the following error:
It may be that your account is not allowed to log on remotely, only on localhost. This time, as long as the computer on the localhost, log in to MySQL, change the "MySQL" Database in the "User" table "host" item, from "localhost" to "%" or through the MySQL console
Mysql-u root-pvmwaremysql>use MySQL;
Mysql>update User Set host = '% ' where user = ' root ';
Mysql>select host, user from user;
Four, set the database must enter the user name password login, configuration file modification: config.inc.php
First please modify the database password, installed by the WAMP tray icon can be clicked phpMyAdmin into the database, in the middle of the phpMyAdmin page "permissions", you can see the "user list", there is a line of user information below, that is, root LocalHost this line, click on the right side of this line "Edit Permissions" icon, find "Change Password" on the new page, set the password for the root user, and click "Execute". Then modify the configuration file: config.inc.php, this file path is: \wamp \apps\phpmyadmin3.1.1
Find $cfg[' Servers ' [$i] [' password '] = ', modify it $cfg[' Servers ' ' [$i] [' password '] = ' You set the password '; Re-open the phpMyAdmin to complete the visit.
Continue, config.inc.php, will be configured $cfg[' Servers ' [$i] [' auth_type '] = ' config ';
$cfg [' Servers '] [$i] [' auth_type '] = ' cookie ';
Then add a line below this row: $cfg [' blowfish_secret '] = ' fslk3xkl319sf '; Here you can enter the alphanumeric numbers in quotation marks.
Save, restart all services, and then open phpMyAdmin will need to enter a password to log in.
Five, change the port file modification: httpd.conf
HTTPD. conf file, search Listen 80 Modify to another port, then reboot
Six, change the root directory
Configuring the WWW directory for Wampserver
File Modification: E:\wamp\scripts\config.inc.php
Open config.inc.php, find $wwwdir Modify to your directory can be example $wwwdir = ' e:/web/';(Note: The folder in Windows is E:\Web, here is E:/web) Close and save the file, exit Wampserverserver enter again to take effect
Configure the Apache web directory
File modified: E:\wamp\bin\apache\Apache2.2.21\conf\httpd.conf
Find: DocumentRoot Then set your directory to the example DocumentRoot "e:/web/www/" (The "\" (backslash) in the Windows path is replaced by "/" (forward slash), and the double quotes outside the path are preserved)
Find directory and then set up your directory to sample <directory "e:/web/www/" >
Save Restart Service,
VII, change the default site Start Page
Wampserver default site Start page for index.php, INDEX.PHP3, index.html, index.htm users are accessing your service
The Apache Web server automatically searches the Web home directory for a matching file name and returns it to the guest at the priority level
Households. For example: The Web home directory has both index.php files and index.html files, then the Apache Web server will index.php
Execution, passing the execution result to the user without automatically transmitting the index.html. Apache Web Server also allows users to customize the start page
The file name and priority of the polygon, set the method to find the code shown below, add the home page filename after DirectoryIndex, name
is separated by a space, and the priority is decremented from left to right in descending order.
<ifmodule dir_module>
DirectoryIndex index.php index.php3 index.html index.htm
</IfModule>
Configuring Wampserver under Windows