Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I was wondering if anyone can explain this to me.

I installed WAMP 2.2. I opened up the dashboard menu, and clicked localhost. I was brought to the WAMP localhost home page. I clicked on phpmyadmin and get a 403 access is denied error message. However, if I type in the ip address 127.0.0.1/phpmyadmin in the address bar, then VOILA, I am in (however, I am not prompted to login to phpmyadmin, I am instantly brought to the phpmyadmin homepage)

Please note, I have found the solution to get rid of the 403 error message when entering phpmyadmin from the the localhost extension (change the Deny all setting to Allow all); so I am not asking how to solve that, but my question is:

Why if localhost and 127.0.0.1 go to the same spot, will when using the IP addres, I am granted access to subsequent applications and with localhost I am not?

Any feedback would be greatly appreciated.

share|improve this question

closed as off-topic by Tom O'Connor Aug 14 '13 at 21:01

This question appears to be off-topic. The users who voted to close gave this specific reason:

  • "Questions must be relevant to professional system administration. Server Fault is a site dedicated to professionals; novice questions are off-topic. Please see the Help Center for more information on topicality. The best advice we can give you is to hire a professional to help you out." – Tom O'Connor
If this question can be reworded to fit the rules in the help center, please edit the question.

2 Answers 2

There is a bug present with the WAMP. Remove all other instance of 127.0.0.1 in the hosts file, because each time you installed WAMP, 127.0.0.1 will be added. ALso, remove or # ::1 if IPv6 support is present. Now restart the WAMP and give it 1 minutes and check it again. I have atleast tested it 5 times and all the times its work.

share|improve this answer
    
+1: check your hosts file. –  ladenedge May 14 '12 at 23:33

Probably you have in /etc/hosts something like 127.0.1.1 localhost instead of 127.0.0.1 localhost as it happens frequently and mysql is listening only 127.0.0.1

share|improve this answer

Not the answer you're looking for? Browse other questions tagged or ask your own question.