Wamp cannot access phpMyAdmin or localhost

Source: Internet
Author: User

I use the latest wampsever5 version. It is installed normally in win7 (64-bit) and cannot access phpMyAdmin. However, I installed win8 (64-bit Professional Edition) on the virtual machine ), when testing the usage under win8, there is a problem, that is, when you directly click the wamp icon to enter phpMyAdmin, the prompt 403 forbidden is displayed, which means access is prohibited. Finally, I suddenly had an idea to check whether or not 127.0.0.1/phpmyadmin can be entered. But if I select phpmyadmin on the wamp icon, the URL bar is actually localhost/phpmyadmin, I just thought, why can't I use 127.0.0.1/phpmyadmin and then use localhost/phpadmin? (First note: You can use 127.0.0.1 and localhost to access the wamp homepage.) I will check it. Later I will see a Your Aliases in the lower-left corner of the localhost homepage, which says:

I clicked the first phpmyadmin, and the result was the same. The error 403 forbidden was prompted. However, I found the word aliases, which means "alias". Then I went online to find it, I also studied the wamp menu (that is, the menu popped up by the left-click wamp program icon), and found that there is an Alias directories under the apache directory of wamp, and there is a directory under Alias directories, it is http: // localhost/phpmyadmin/. In this http: // localhost/phpmyadmin/, another option is edit alias. Click it and it will be opened in notepad, then find the following:

<Directory "d:/wamp/apps/phpmyadmin3.5.1/">

Options Indexes FollowSymLinks MultiViews
AllowOverride all
Order Deny, Allow
Deny from all
Allow from 127.0.0.1

</Directory>

Change it

<Directory "e:/wamp/apps/phpmyadmin3.5.1/">
Options Indexes FollowSymLinks MultiViews
AllowOverride all
Order Allow, Deny
Allow from all

</Directory>

OK, everything is done (restart wamp if it doesn't work). You can click the phpmyadmin option in the wamp icon to enter phpmyadmin, instead of entering 127.0.0.0/phpmyadmin manually.

Last several figures

1. Go to the alias modification method and click edit alias (someone may set it to Chinese, and Chinese is editing alias)

2. Before Modification

3. After modification (in fact, I modified it according to the prompt following # above)

Note: Later I found that the above configuration is still not feasible. I successfully followed the above configuration because I have modified httpd before. conf file, which is also used to modify the <directory> </directory> label, such

Before modification:


After modification:

After the modification, I found that I could finally enter localhost/phpmyadmin. Later I changed it back, but the result was the same. I really don't know what's going on.

During the modification process, I found that I was suddenly unable to enter localhost again. It was okay when I was just installed. Later I found that I had to go online, that is, put online, for example:

 

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.