Reputation: 113946
Okay so a continuation from this question, where you experts intro'd me to WAMP, which can basically execute PHP within a Windows XP environment.
So now I've got it installed, but the tray icon forever shows YELLOW, and when I visit any PHP page in my browser, it just shows me the PHP source!
Also, when I visit "http://localhost/" in IE7 it gives me a 404 Not Found, FF3 just shows a blank page.
BTW I've tried "Restart All Services" and restarting my machine, but it still won't work.
Any ideas? Any of you had this problem and solved it? Please help me here, I'm desperate to execute PHP client-side and I'm just reverting to testing on-server for now!
Upvotes: 18
Views: 67730
Reputation: 113946
Got it! Under the WAMP tray icon, left-click context menu > Apache > Service > Test Port 80, it said :
"Your port 80 is actually used by - Info not available, Must be Skype"
Well, so off goes Skype, WAMP > Restart All Services, and Localhost shows "WAMP5 Homepage":
(source: wampserver.com)
And, phpMyAdmin works, PHP scripts execute too. Wow!
So now I can dubug in the proper fashion! Thank you StackOverflow!
Upvotes: 9
Reputation: 4623
For me, when I have opened the httpd.conf file I have found that I have tow Listen statement as following:
Listen 80
Listen 169.254.96.77:80
and when I have commented the second line (adding '#' at beginning of the line) I restarted all wamp services (left click of wamp icon in the task bar), the wamp icon became green!
Hope this help other.
Upvotes: 1
Reputation: 2100
In skype:
Go to Tools -> Options -> Advanced -> Connections and uncheck the box "use port 80 and 443 as alternative".
This should help.
Upvotes: 0
Reputation: 2021
Most of the time this problem happens because of conflict between apachi servers, or ports, or duplicate of wamp installation
So to fix that:
First of all if you are using SKYPE try to change the port by opening Skype, then:
second if the problem still exists try to find if you are using - or was using - other Apache server (for example XAMPP server), if so try to remove it and after removing it, go to regedit by:
Upvotes: 0
Reputation: 7113
try this one, i had the same problem and this helped me:
Upvotes: 8
Reputation: 3996
I'd like to expand on what some of the other folks have contributed here - as Skype is not always the culprit.
You can also check exactly which process is hogging your port 80 by running this from a command prompt:
netstat -ao
This will list all processes using ports with their PID. You can correlate those to processes in Task Manager, and take appropriate action from there. The bottom line is - you're looking for what's hogging port 80 and/or 443 (if you're connecting over SSL), as that is the default browser port.
Upvotes: 1
Reputation: 61
just go to wamp>bin>apache>apache 2.2.17>conf>httpd.conf (file)
change Listen 80
to Listen 8080
save the file
n restart the services
this time type http://localhost:8080
Upvotes: 6
Reputation: 21
Well, in case the above still dont help as it was with me, follow these steps:
Hope it works! A better approach is really needed.
Upvotes: 0
Reputation: 1172
you can start Skype up after wamp is online or change Skypes port not to use 80
Upvotes: 1
Reputation: 1437
Skype reserves port 80 for its incoming connection which conflicts with WAMP, so simply configure Skype to use another port by doing the following:
In Skype go to Tools|Options|Advanced|Connection uncheck the option --> Use port 80 and 443 as alternatives for incoming connections, that's it
For this change to take effect restart Skype and Restart all services on WAMP by doing the following:
Left-click WAMP tray icon > Restart All Services"
Now Wamp and Skype can co-exist together, hope this solves your problem!!
Upvotes: 55
Reputation: 5142
Glad you got it sorted - Skype is notorious for that.
If you want to use Skype and WAMP together, you can edit your httpd.conf file - change the 'listen' value from 80 to something else and restart all services.
Upvotes: 3