WAMPserver configuration method (allow external access set phpmyadmin to enter user name and password before login etc.)

  • 2020-05-13 04:04:57
  • OfStack

For the friend that many are not familiar with PHP environment installation, using integrated environment can be faster to fit in a more convenient set up PHP running environment, however, WAMP integration environment is just the underlying basis of work done, some individual key configuration is not integrated into the operation environment of installation, so bring a lot of trouble, see a lot of friends in the search engine are asking why after installed WAMP only local access? Access banned on LAN? Or why can't the local database PHPMYADMIN be accessed from an external LAN? How do you set Mysql to have to enter a username and password instead of logging in?

Let's talk about the whole process of WAMP configuration based on my own practice.
1. Download and install:

First from http: / / sourceforge net/download/projects wampserver WampServer, I write this article in the latest edition wampserver2. 5 - x32. exe. Or to this site to download / / www ofstack. com softs / 161568. html

After installing step 1 is to change the language, right-click the WampServer icon in the taskbar and select Language-chinese.


2. Ensure normal operation of WampServer:

Don't let another program use its default port (apache default port 80 and mysql default port 3306). You can open http://localhost test and click the wampserver icon -localhost.
If the startup is not normal, most of the reason is that port 80 of apache is occupied, such as iis, so just modify listen port in httpd.conf.

3. Make the website and phpmyadmin accessible to the external network (only native access is allowed by default) :

First off the firewall (or in the firewall to add exceptions, some antivirus software firewall especially pay attention to close);

Then log off the two sentences in wamp\bin\apache\ conf\ httpd.conf (you need to restart the wamp service to take effect)

Deny from all
Allow from 127.0.0.1

Is changed to

#Deny from all
#Allow from 127.0.0.1

So that the external network can access the main site;

phpmyadmin should also be allowed to be accessed from the external network. The same change should be made in wamp\alias\ phpmyadmin.conf

#Deny from all
#Allow from 127.0.0.1

4. Set phpmyadmin as the password to log in:

After entering phpmyadmin, add or delete accounts in the permissions, and edit the permissions (including global permissions, passwords, login information, etc.).

At this time, you may find that phpmyadmin cannot log in, so you need to do the following:

In wamp\apps\ phpmyadmin3.4.10.1 \
.inc.php

$cfg [' Servers] [$i] [' auth_type] = 'cookie'; // (originally 'config ')
$cfg [' Servers] [$i] [' user] = $cfg [' Servers] [$i] [' user] = 'your username;
$cfg [' Servers] [$i] [' password] = $cfg [' Servers] [$i] [' password] = 'your password;

Then restart the wamp service, open phpmyadmin again, and a login screen will appear.


5. Solution to the red prompt "configuration file now requires 1 phrase password" after logging in phpmyadmin:

In wamp\apps\ phpmyadmin 3.4.10.1\libraries\ config.default.php

$cfg['blowfish_secret'] = 'any string ';
Then restart the wamp service so it doesn't prompt you when you log in. However, I encountered a problem: the user name 1 line of the login interface appears garbled code, although it does not affect you to enter the user name and password to log in, but it looks uncomfortable. So I didn't have a phrase password.


Related articles: