Wampserver Configuration method (allow external access, phpMyAdmin set to enter user name password to login, etc.) _linux

Source: Internet
Author: User
Tags phpmyadmin

For many friends who are unfamiliar with the installation of the PHP environment, with integrated environment can be faster to start, more convenient to build PHP operating environment, but, WAMP integration environment is just the bottom of the basic work done, some individual key configuration operation and not integrated into the environment installation, so to bring you a lot of trouble, See the search engine many friends are asked why the installation of good Wamp, only local access? No access in the LAN? Or why is the local database phpMyAdmin not accessible in the external LAN? How do I set MySQL to enter a username and password instead of just logging in?

Below according to own hands-on practice, say wamp the whole process of configuration.
1. Download and install:

First download from the http://sourceforge.net/projects/wampserver/wampserver, I write this article with the latest version of the Wampserver2.5-x32.exe. Or to the cloud-dwelling community to download http://www.jb51.net/softs/161568.html

The first step is to change the language, right-click the taskbar's wampserver icon and select Language-chinese.


2, to ensure that wampserver work normally:

Do not allow other programs to occupy its default port (Apache default port 80 and MySQL default port 3306). You can then open the http://localhost test and click the Wampserver icon-localhost.
If the boot is not normal, most of the reason is because Apache 80 ports are occupied, such as by IIS, so as long as the httpd.conf in the APAHCE to modify the listen port.

3, so that the site and phpMyAdmin can be accessed by the external network (by default only allow local access):

First shut down the firewall (or add an exception to the firewall, anti-virus software, some have a firewall especially attention to close);

Then, in wamp\bin\apache\apache2.2.21\conf\httpd.conf, the two sentences are written off (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 the extranet can access the main web site;

Similarly, to allow extranet access to the phpMyAdmin also in the wamp\alias\phpmyadmin.conf to make the same change, to

#Deny from all
#Allow from 127.0.0.1

4, the phpMyAdmin will be set to enter the account password before landing:

After entering the phpMyAdmin, adding and deleting accounts in the permissions, and editing the permissions (including global permissions, passwords, login information, etc.).

At this time may find phpMyAdmin landing does not go in, need to do the following operations:

In wamp\apps\phpmyadmin3.4.10.1\config.inc.php, change to

$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 the phpMyAdmin again, there will be landing interface.


5, about landing phpmyadmin after landing red hint "configuration file now need a phrase password" solution:

In wamp\apps\phpmyadmin3.4.10.1\libraries\config.default.php, change to

    $cfg [' blowfish_secret '] = ' arbitrary string ';
      Then restart the Wamp service so that it will not be prompted after the login. But I encountered a problem: Login interface user name line appears garbled, although does not affect you enter user name password login but look uncomfortable. So I don't have to set the phrase password.

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.