Tell me more ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

When I try and access my WAMP server over a connection to localhost through Firefox I get a 404 error.

I checked the firewall and changed it to off. Then I changed the listening port from 80 to 81 but I didn't change the port for localhost (port 80). The error changed and it says:

#2005 - Unknown MySQL server host 'localhost:81' (11001)

When I ping port 80 it says "this port is not used" so I'm really confused.

share|improve this question
did this happen after a first install? – Gunner May 2 '11 at 6:07
yes and ofcourse when I removw that and again install the same has happend . – farah May 2 '11 at 6:31

migrated from stackoverflow.com May 4 '11 at 4:27

2 Answers

It looks like a configuration problem. MySQL does not run on port 80 or port 81.

Can you give some more details about your install. Where did you get the software? What OS are you installing it on? Is there any other software installed prior to the "WAMP" install?

share|improve this answer

1) The default MySQL port is 3306. Port 80 is the HTTP port, and is the port used by Apache.

2) A 404 error is not caused by firewalls. 404 HTTP status code means that the server (Apache) received the request but can't find the asked for file (bad url or missing file).

A firewall issue would simply block the request and you would get nothing back (no status codes).

3) Apache does not respond to "pings".

Try a different wamp package such as XAMPP, WampDeveloper Pro (not free), easyPHP, etc.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.