Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

WAMP server in green but only get 404

Alright ladies and gents. I have quite the puzzling issue. I have WAMP server installed on my WIN7 machine at work, everything was working fine and dandy. Didn't use it for a few weeks because I got pulled into other things. The other day I tried to start it up... The icon was green and I figured we were good. Then I tried to open up localhost and just get a 404 error:

HTTP Error 404. The requested resource is not found.

I have no clue why it's doing this, we were working fine 2-3 weeks ago and now nothing. Have any of you had the green icon but couldn't get any pages to come up? Where in the heck do I go because I'm beating my head against the wall here.

Thanks in advance.

like image 526
cschneider27 Avatar asked Dec 18 '12 12:12

cschneider27


People also ask

Why is WAMP not turning green?

To fix this issue, navigate to the WAMP server icon in the system tray > Apache > Service administration 'wampapache64' > Install Service. It will open the Command Prompt on your screen. After closing the Command Prompt, go to the same path and click on Start/Resume Service.

Why my WAMP server is not working?

It says that whatever port is used by Apache (Wamp server) is currently used by some other service, so if you want to start the Apache service then you have to changethe port of this Wampserver service. Now for changing the port you have to go to Wampserver menu => Apache. Open httpd. conf file.

Why my WAMP server is orange?

If the icon remains red or orange, it means that one or more components are not working as they should. Apache, MySQL and PHP all have error logs that are accessible from the WampServer menu and it's a good idea to check those if there's any problem but here are a couple of things you can also try.


2 Answers

It is also possible that some other service is running on port 80 (maybe IIS Express, some Torrent clients, Skype..). A solution could be to change the port on which is being listened (as Mithun Sen has said).

So change the port on which Wamp listens:

  • Click on Wamp server -> Apache -> httpd.conf
  • Change Listen 80 to something else, eg: Listen 81
  • I would also change ServerName localhost:80 to ServerName localhost:81

If you've done this, and saved httpd.conf, you have to restart the Wamp server. Then use localhost:81 as your root url.

So the urls will then look like

localhost:81/phpmyadmin
localhost:81/mysite_directory
like image 109
ndsmyter Avatar answered Sep 21 '22 18:09

ndsmyter


For me, all I had to do was click the WAMP icon then click "Put Online", and it went online. It may be the case for someone else out there as well.

like image 40
Andrew Avatar answered Sep 21 '22 18:09

Andrew