WAMPserver configuration (allow external access, and set phpmyadmin to enter the user name and password for login)

Source: Internet
Author: User
WAMPserver configuration (allow external access, and set phpmyadmin to enter the user name and password for login )? For many friends who are not familiar with installing the PHP environment, using the integrated environment can help them get started faster and build a PHP runtime environment more conveniently. However, the WAMP integration environment only completes the underlying basic work, and some key configuration operations are not integrated into the environment installation, which brings a lot of trouble to everyone, many people in the search engine are asking why WAMPserver is configured (allow external access, and set phpmyadmin to enter the user name and password to log on)

? For many friends who are not familiar with installing the PHP environment, using the integrated environment can help them get started faster and build a PHP runtime environment more conveniently. However, the WAMP integration environment only completes the underlying basic work, and some key configuration operations are not integrated into the environment installation, which brings a lot of trouble to everyone, many of my friends in the search engine are asking why they can only access them locally after WAMP is installed? Is access prohibited in the LAN? Or why can't the local database PHPMYADMIN be accessed in an external LAN? How do I set that Mysql must enter the user name and password instead of logging in directly ???


?????? Next, let's talk about the whole process of WAMP configuration based on our own practices.

1. download and install :?


?????? Starting from begin .?


??????? The first step after installation is to change the Language. right-click the WampServer icon in the taskbar and select Language-chinese .?




2. ensure that WampServer works properly :?


?????? Do not let other programs use its default port (apache default port 80 and mysql default port 3306 ). In this case, you can open http: // localhost test and click the wampserver icon-localhost .?

? If the startup is abnormal, most of the reasons are that apache port 80 is occupied, for example, by iis. Therefore, you only need to modify the listen port in httpd. conf of apahce.


3. enable the website and phpmyadmin to be accessed by external networks (only local access is allowed by default ):?


?????? First, disable the firewall (or add exceptions to the firewall. some anti-virus software have firewalls and pay special attention to them );?


?????? Then, log out the two sentences in wamp \ bin \ apache \ Apache2.2.21 \ conf \ httpd. conf (the two sentences will take effect after the wamp service is restarted)


???? Deny? From? All?


???? Allow? From? 127.0.0.1?


?????? That is, change?


???? # Deny? From? All?


???? # Allow? From? 127.0.0.1?


?????? In this way, the Internet can access the main website ;?


?????? Similarly, to allow access to phpmyadmin over the Internet, you must make the same changes in wamp \ alias \ phpmyadmin. conf?


???? # Deny? From? All?


???? # Allow? From? 127.0.0.1?


4. set phpmyadmin to enter the account password before logging on :?


?????? After entering phpmyadmin, add or delete an account in the permission list and edit the permissions (including global permissions, passwords, and logon information ).?


?????? At this time, you may find that phpmyadmin cannot be logged in. you need to perform the following operations :?


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


???? $ Cfg ['servers'] [$ I] ['auth _ type']? =? 'Cookies ';???????? // (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 and open phpmyadmin again. The logon page appears .?




5. after logging on to phpmyadmin, the red prompt "a phrase and password are required for the configuration file" is displayed :?




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


???? $ Cfg ['blowfish _ secret']? =? 'Arbitrary string ';?

?????? Then restart the wamp service, so that no prompt will be sent after login. However, I encountered a problem: a garbled line of the user name on the login interface does not affect your login by entering the user name and password, but it looks uncomfortable. So I didn't set a phrase password .?

Related Article

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.