WAMP not working in Windows 8
Posted by: tanglai (---.hsd1.ca.comcast.net)
Date: October 29, 2012 06:21AM

Hi,

I updated to Windows 8 just a few days ago and I am having problem running WAMP. The WAMP manager stayed orange and says "WAMPSERVER - server Offline" when I point to the tray icon.

When I ran httpd.exe directly from wamp\bin\apache\apache2.4.2\bin, I got the following error:

(OS 10013)An attempt was made to access a socket in a way forbidden by its access permissions. : AH00072: make_sock: could not bind to address [::]:80
(OS 10013)An attempt was made to access a socket in a way forbidden by its access permissions. : AH00072: make_sock: could not bind to address 0.0.0.0:80
AH00451: no listening sockets available, shutting down
AH00015: Unable to open logs

I read a few posts in the forum, but none of them seemed to work. Here's what I have:

There is only 1 line in the HOSTS file:
127.0.0.1 localhost

Within the <Directory> tag in phpmyadmin.conf, sqlbuddy.conf, and webgrind.conf, I have:
Options Indexes FollowSymLinks MultiViews
AllowOverride all
Require local

In httpd.conf, I have these, besides other stuffs:
...
Listen 80
...
ServerName localhost:80
...
<Directory />
AllowOverride none
Require all denied
</Directory>
...
# onlineoffline tag - don't remove
#Require local
Order Allow,Deny
Allow from all
...

What should I do to fix this?

Thanks,
Tang

Options: ReplyQuote
Re: WAMP not working in Windows 8
Posted by: k0teg (178.125.62.---)
Date: October 29, 2012 07:42AM

You can try the following:
Open console (cmd.exe) and execute

netstat -aon | findstr 0.0:80

to check if the port is controlled by process with ID 4 (System). Otherwise we should kill it (the process with PID != 4) using a task manager.

But what eventually worked for me is to disable a HTTP service of Windows 8:
1) goto registry editor (execute regedit);
2) proceed to HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\HTTP;
3) create a new DWORD param with name "NoRun" and set it to "1" (without quotes);
4) set "Start' param to "0";
5) reboot.

Options: ReplyQuote
Re: WAMP not working in Windows 8
Posted by: stevenmartin99 (Moderator)
Date: October 29, 2012 07:48AM

this is not correct.


you dont want to disable the HTTP service, its used for many things , and it DOES NOT use port 80

Steven Martin
stevenmartin99@gmail.com
stevenmartin99@hotmail.com
PampServer.com - [pampserver.com]

Options: ReplyQuote
Re: WAMP not working in Windows 8
Posted by: tanglai (---.hsd1.ca.comcast.net)
Date: October 29, 2012 07:55AM

Thanks for the replies. I ran the command and it showed

TCP 0.0.0.0:80 0.0.0.0:0 LISTENING 4

So a system process is using port 80. If disabling the HTTP service is incorrect, what should I do?

Thanks,
Tang

Options: ReplyQuote
Re: WAMP not working in Windows 8
Posted by: stevenmartin99 (Moderator)
Date: October 29, 2012 07:57AM

you need to disable IIS, its the windows server that is running.

Do you have teamviewer and ill show you how to see which parts of IIS are running?

Steven Martin
stevenmartin99@gmail.com
stevenmartin99@hotmail.com
PampServer.com - [pampserver.com]

Options: ReplyQuote
Re: WAMP not working in Windows 8
Posted by: tanglai (---.hsd1.ca.comcast.net)
Date: October 29, 2012 08:16AM

Hi Steven,

I don't have Teamviewer, but I think I can turn off IIS in Windows Features, by unchecking Internet Information Services/World Wide Web Services (right now only Application Development Features/.Net Extensibility 4.5 and Security/Request Filtering are checked). Am I right?

Thanks,
Tang

Options: ReplyQuote
Re: WAMP not working in Windows 8
Posted by: stevenmartin99 (Moderator)
Date: October 29, 2012 08:25AM

yes but it may not stop it,


i havent used win8 yet but ill tell you the steps for 7 and and should be the same

in cmd (open as admin or you will get access denied)


type

sc query w3svc

if you get some information about the service proceed with (otherwise read NOTE at bottom of post)

net stop http

press y


then

net stop w3svc

then you need to stop this service starting again , in the registry ( regedit.exe) goto

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\W3SVC


change the START TYPE from 2 to 4


While you are there, scroll to

Wampapache ( HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\WAMPAPACHE)

Wampmysqld (HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\WAMPMYSQLD)


and change the start type FROM 3 TO 2 for both of these


--------------------------------------------

restart pc and HTTP will start up again so printers etc work again.

Note: if W3SVC gives you errors that it does not exist , replace W3SVC with MSDEPSVC and carry on using that in place of W3SVC

Steven Martin
stevenmartin99@gmail.com
stevenmartin99@hotmail.com
PampServer.com - [pampserver.com]



Edited 1 time(s). Last edit at 10/29/2012 08:27AM by stevenmartin99.

Options: ReplyQuote
Re: WAMP not working in Windows 8
Posted by: tanglai (---.hsd1.ca.comcast.net)
Date: October 30, 2012 04:54AM

Hi Steven,

I followed the instruction and now the tray icon turned green. :-) However, when I am getting 403 when i do [localhost] in a browser. Any idea?

Thanks,
Tang

Options: ReplyQuote
Re: WAMP not working in Windows 8
Posted by: paulmin (101.169.42.---)
Date: October 30, 2012 01:41PM

Thank you Steven Martin!

Your instructions fixed this problem for me and wampserver is running again. So far no other effects from the change.

Paul

Options: ReplyQuote
Re: WAMP not working in Windows 8
Posted by: tanglai (---.hsd1.ca.comcast.net)
Date: October 31, 2012 06:39AM

Hi,

I tried again and found [localhost] working, but still got 403 forbidden access for [localhost]. [localhost] and [localhost] are not working either. Is there anything else I need to do?

Thanks,
Tang

Options: ReplyQuote
Re: WAMP not working in Windows 8
Posted by: krunal (27.121.101.---)
Date: October 31, 2012 06:55AM

@Steven Martin

I follow Your instruction My Wamp icon is green and shoing wamp is online

but when i am opening localhost/ showing

Oops! This link appears to be broken.

in chrome

Options: ReplyQuote
Re: WAMP not working in Windows 8
Posted by: tanglai (---.hsd1.ca.comcast.net)
Date: October 31, 2012 07:40AM

I found out why /webgrind and /sqlbuddy didn't work; the alias pointed to /phpmyadmin as roote. I also created another alias for my own test site, but I used "/" as the root and it didn't work. When I go to [localhost], I got this in the error log:

[Tue Oct 30 23:22:31.008894 2012] [authz_core:error] [pid 668:tid 872] [client ::1:52817] AH01630: client denied by server configuration: C:/Program Files/wamp/www/catherinesun/


I am really running out of idea, couldn't believe it's so much harder to run Apache on Windows 8 than on Windows 7.

Options: ReplyQuote
Re: WAMP not working in Windows 8
Posted by: RiggsFolly (---.as13285.net)
Date: October 31, 2012 10:27AM

Dont create alias's for your own sites.

run it from the address bar in a browser like this http: //localhost/catherinesun ( without the space of course )

Options: ReplyQuote
Re: WAMP not working in Windows 8
Posted by: ammarkayani (175.110.208.---)
Date: November 07, 2012 01:41PM

I've found the solution .

I am using Windows 8 pro.

Just goto control panel . Click on Program and then click on Turn Windows features on or off. After that Scroll down to Internet Information Services. Remove the black dot. Click ok wait for the windows to finsih the setup.

After that reboot your pc.

Now Install wamp 2.1d-x64.

Launch the wamp server and it will work.

Options: ReplyQuote


Sorry, only registered users may post in this forum.