Page 1 of 1

Apache in Background

Posted: Sat Oct 16, 2004 2:20 am
by Zorth
Hey all,

I had to re-install Windows XP(thanks to viruses) and that means re-doing the entire Apache thing. I installed the phptriad that comes with Apache, MySQL, and PHP, but I haven't been able to find the version that runs in the background instead of a command prompt version. I believe it was Apache 2.0, but I may be wrong. Anyway, I don't think I saw it at apache.org.

If anyone knows what I'm talking about and wouldn't mind getting me a link, that'd be great. Thanks.

Posted: Sat Oct 16, 2004 3:30 am
by timvw
if i remember well, you can run both of them as a service...

just open a (dos|command) prompt and type:
net start apache or net start apache2


you could also go to configuration -> services -> and configure apache(2) service to start at boot.

Posted: Sat Oct 16, 2004 12:59 pm
by Zorth
And this would automatically start Apache AND run it in the background? By running in the background I mean that I won't see the window down at the bottom. Apache 2.0 was a win32 application, which ran in the background anyways.

I tried the net start command in the command promp and went into the Apache folder where the program is. The thing returns an error saying that the service name is invalid.

Where can Apache2 be downloaded? I didn't see it at Apache.org.

Posted: Sat Oct 16, 2004 2:33 pm
by timvw

Posted: Sat Oct 16, 2004 3:02 pm
by Zorth
Ok, I got it. When I install it, it gives me some errors when it pops up some console windows and says something along the lines of: "One usage of each socket address <protocol/network port/address> is usually permitted. Error binding to server 0.0.0.0:80", then a few seconds later it pops up with a console window saying that it couldn't find some files in the log folder.

Other than this the program installs and opens, but the problem is that the Apache Monitor does not have either Apache 1 or Apache 2 inside of it when I open it up. What do you to do add it to the Monitor?

Sorry for these newbie Apache questions but I don't remember this being so complicated before.

Posted: Sat Oct 16, 2004 3:15 pm
by timvw
i presume you already have IIS running? or another webserver?

OR you shutdown those other services, or you configure apache to listen to another port (edit the LISTEN directive in httpd.conf)

Posted: Sat Oct 16, 2004 3:40 pm
by Zorth
I had installed Apache 1 already but I'm pretty sure that it was not running while I installed Apache 2.0, nor anything else on port 80. So you're saying make sure that no other webserver programs are up while I do this and re-install?

Posted: Sat Oct 16, 2004 4:06 pm
by timvw
as only one socket can bind to a port... i advise to make sure nothing else is boudn to that port.

Posted: Sat Oct 16, 2004 4:19 pm
by Zorth
Well, nothing else that SHOULD be running on port 80 is up, and I get the same error message. Also, I start Apache 1 and it will work fine, and I am pretty sure that that runs on port 80 as well. Is there any other reason why I'd be getting this error message?