Apache in Background

Need help installing PHP, configuring a script, or configuring a server? Then come on in and post your questions! We'll try to help the best we can!

Moderator: General Moderators

Post Reply
Zorth
Forum Commoner
Posts: 76
Joined: Fri Feb 20, 2004 8:00 pm

Apache in Background

Post 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.
timvw
DevNet Master
Posts: 4897
Joined: Mon Jan 19, 2004 11:11 pm
Location: Leuven, Belgium

Post 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.
Zorth
Forum Commoner
Posts: 76
Joined: Fri Feb 20, 2004 8:00 pm

Post 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.
timvw
DevNet Master
Posts: 4897
Joined: Mon Jan 19, 2004 11:11 pm
Location: Leuven, Belgium

Post by timvw »

Zorth
Forum Commoner
Posts: 76
Joined: Fri Feb 20, 2004 8:00 pm

Post 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.
timvw
DevNet Master
Posts: 4897
Joined: Mon Jan 19, 2004 11:11 pm
Location: Leuven, Belgium

Post 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)
Zorth
Forum Commoner
Posts: 76
Joined: Fri Feb 20, 2004 8:00 pm

Post 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?
timvw
DevNet Master
Posts: 4897
Joined: Mon Jan 19, 2004 11:11 pm
Location: Leuven, Belgium

Post by timvw »

as only one socket can bind to a port... i advise to make sure nothing else is boudn to that port.
Zorth
Forum Commoner
Posts: 76
Joined: Fri Feb 20, 2004 8:00 pm

Post 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?
Post Reply