Page 1 of 1

[solved]Apache Install Windows 7 - Multiple Failure

PostPosted: 13. November 2011 17:23
by JEM
Installing the install package 1.7.7 win32 on a Windows 7 machine. I'm administrator. I do not have IiS installed, I do not have W3SVC.


I've tried installing 4 times now, rebooting after each, completely uninstalling after each failure.
I keep getting the installation error: Ports 80 or 443 (SSL) already in use. Installing Apache 2.2 service failed! Then it says congrats it worked! (it didn't) and MySql is running but apache isn't.

I have only one service running on port 80: "NT Kernel & System." I found that via the command prompt: netstat -o -n -a | findstr 0.0:80 and then bounced the result of that off of the services tab in task manager.

I'm not very savvy about services and ports but I see kernel and think that would be a bad thing to disable. I've searched the forum for +solved +windows +port +80 +apache and got nowhere.
What is the proper way to install Apache on Windows 7 when Windows 7 appears to be using the port 80?

Re: Apache Install Windows 7 - Multiple Failure

PostPosted: 13. November 2011 17:56
by Altrea
Windows 7 don't uses port 80, it just reserved it for managing and sharing it with IIS.
The related service is the World Wide Web Publishing service or WWW-publishung.

You can simply deactivate this service without any issues if you don't want to use IIS.

Re: Apache Install Windows 7 - Multiple Failure

PostPosted: 13. November 2011 18:01
by JEM
Yea, but as I said up front - I don't have WWW publishing service running, or even installed. There is nothing in my task manager in processes or services that looks remotely like that, or like the abbreviation W3SVC. If I don't have it, I can't stop it.

Or did I misunderstand you - are you telling me to disable the process NT Kernel & Services?

Re: Apache Install Windows 7 - Multiple Failure

PostPosted: 13. November 2011 18:19
by Altrea
JEM wrote:Or did I misunderstand you - are you telling me to disable the process NT Kernel & Services?

No. "NT kernel & system" is just a proxy which can be uses by other programs.
You have to find out which of the processes or services on your computer uses this proxy.

Maybe the new XAMPP control panel v3 give you more information about where to search for it.
If you show us your full "netstat -aon" (without findstr filter) maybe we can find something more.

Re: Apache Install Windows 7 - Multiple Failure

PostPosted: 13. November 2011 18:34
by JEM
Image

I don't have control panel 3.0, I have 2.5 because that's what came up with the install package I just downloaded, and I wasn't in the mood to start updating if I couldn't get the original package to work.
thanks
Joe

Re: Apache Install Windows 7 - Multiple Failure

PostPosted: 13. November 2011 18:47
by Altrea
Okay, your netstat don't give more information. Port 80 is blocked by system as already known.

JEM wrote:I don't have control panel 3.0

The control panel v3 is included in XAMPP 1.7.7 as beta version (more specific the control panel v3.0.2 is included). You can find it in the base directory like where the control panel v 2.5 is saved too.

JEM wrote:I wasn't in the mood to start updating if I couldn't get the original package to work.

You don't need to "update" it. You can simply download the current control panel version v3.0.8 from [url=http://community.apachefriends.org/f/viewtopic.php?f=16&t=48932]this thread[/quote] and extract the control-panel-v3.exe into your base directory. Thats all you have to do. Ready for take off :D

Re: Apache Install Windows 7 - Multiple Failure

PostPosted: 13. November 2011 19:27
by JEM
I got the new control panel installed, but it's just giving me faster access to the same errors. This is what the screen says (it's hung up on the apache after I hit start):
11:23:42 AM [main] Windows version: 6.1 (build 7601) - Service Pack 1
11:23:42 AM [main] Xampp version: 1.7.7
11:23:42 AM [main] Control center version: 3.0.2 [ Compiled: Jul 21th 2011 - build #1 ]
11:23:42 AM [main] Running as admin - good!
11:23:42 AM [main] Working with basedir: "c:\xampp\"
11:23:42 AM [main] Initializing moduls
11:23:42 AM [apache] Possible problem detected: Port 80 in use by "system"!
11:23:42 AM [main] Starting check-timer
11:24:00 AM [mysql] Starting mysql service...
11:24:00 AM [mysql] Status change detected: running
11:24:05 AM [apache] Starting apache service...

And the error log says nothing - it's blank.
So I changed the port from 80 to 85 with the config tab, changing that line in the httpd. I hit start and apache starts right up. But when I go to http://localhost I get a 404.

(if you red this a second ago and there was more below, sorry I made a mistake.)

Re: Apache Install Windows 7 - Multiple Failure

PostPosted: 13. November 2011 19:36
by Altrea

Re: Apache Install Windows 7 - Multiple Failure

PostPosted: 13. November 2011 19:39
by JEM
Altrea wrote:http://localhost:85

And that did the trick - thanks!

Re: Apache Install Windows 7 - Multiple Failure

PostPosted: 13. November 2011 19:48
by Altrea
You're welcome :D

Your main problem (something blocks your port 80) isn't solved, but with that workaround you can work i think.
Just remember that you have to add the port number on every request (especially on absolute urls. on relative they are added automatically by Apache).

can i close this thread now or is something left?

Re: Apache Install Windows 7 - Multiple Failure

PostPosted: 13. November 2011 20:17
by JEM
I tested by putting a default.html in the right folder, navigated to it no problem so like you said - as long as I put the :85 in the url it should work. It would be nice to know what is really using the port, but at this point I just want to get to work on my project! Thanks a bunch, I think it's safe to close the thread as solved.