Wampserver configuration (Allow external access, phpMyAdmin set to enter user name password to login, etc.)

Source: Internet
Author: User
Wampserver configuration (Allow external access, phpMyAdmin set to enter user name password to log in, etc.)

? For a lot of friends who are not familiar with the installation of PHP environment, with the integration of the environment can be faster to get started, more convenient to build PHP operating environment, but the WAMP integration environment is only the basic work done, some individual key configuration operations are not integrated into the environment installation, so to everyone brings a lot of trouble, See a lot of search engine friends are asked why the installation of Wamp, only local access? No access in LAN? Or why is local database phpMyAdmin not accessible on an external LAN? How to set up MySQL must enter a user name and password instead of logging in directly into it???


?????? According to your own hands-on practice, say WAMP configuration of the entire process.

1. Download and install:?


?????? First download wampserver from http://sourceforge.net/projects/wampserver/, I wrote this article with the latest version of Wampserver2.2d-x32.exe.


??????? The first step is to change the language, right-click the Wampserver icon in the taskbar, and select Language-chinese.




2, ensure that wampserver work properly:?


?????? Do not let other programs occupy its default port (Apache default port 80 and MySQL default port 3306). You can open the http://localhost test and click the Wampserver icon-localhost.?

If the boot is not normal, most of the reasons are because Apache Port 80 is occupied, such as by IIS, so as long as the listen port in the httpd.conf in Apahce is modified.


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


?????? First shut down the firewall (or add an exception in the firewall, antivirus software has a firewall especially attention to close);


?????? Then write down these two sentences in wamp\bin\apache\apache2.2.21\conf\httpd.conf (to restart the Wamp service to take effect)


???? Deny?from?all?


???? allow?from?127.0.0.1?


?????? That is, instead?


???? #Deny? from?all?


???? #Allow? from?127.0.0.1?


?????? So that the external network can access the main site;


?????? Also allow the extranet access to phpMyAdmin to make the same changes in wamp\alias\phpmyadmin.conf, instead?


???? #Deny? from?all?


???? #Allow? from?127.0.0.1?


4, the phpMyAdmin is set to enter the account password to login:?


?????? After entering the phpMyAdmin, delete the account and edit 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 actions:?


?????? Change to in wamp\apps\phpmyadmin3.4.10.1\config.inc.php?


???? $cfg [' Servers '] [$i] [' Auth_type ']?=? ' Cookies ';???????? (the original is ' 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, the landing screen will appear.




5, about landing phpmyadmin after landing red hint "profile now requires a phrase password" solution:?




?????? Change to in wamp\apps\phpmyadmin3.4.10.1\libraries\config.default.php?


???? $cfg [' Blowfish_secret ']?=? ' arbitrary string ';?

?????? Then restart the Wamp service so that you won't be prompted after logging in. But I encountered a problem: Login interface user name line garbled, although does not affect you enter the user name password login but look uncomfortable. So I did not 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.