httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Owen Boyle <...@bourse.ch>
Subject Re: Apachectl is not working (Debian package, apache ver. 1.3.22)
Date Mon, 10 Dec 2001 09:06:05 GMT
W i l l y wrote:
> 
> Okay I seem to be having trouble starting and stopping apache with
> apachectl.  The file apachectl itself looks like the script
> /etc/init.d/apache.  When I run apachectl, or the script for that matter, it
> (both of them) calls /usr/sbin/apachectl with the same argument (start,
> stop, reload etc.).  Then the whole loop keeps repeating.  I am pretty sure
> that the file apachectl is not meant to call itself, because then it enters
> a endless loop.  Is there any way I could fix this, or should I reinstall
> the package, or should I compile my own apache?

You shouldn't have to reinstall unless you've messed up the file :-)

What is supposed to happen is:

(1) apachectl is a standalone start-script for manually controlling
apache.

(2) /etc/init.d/apache is a copy of apachectl. It has a symbolic link
leading to it from something like /etc/rc3.d/S50apache. The purpose of
this arrangement is to allow apache to start automatically on boot
(scripts in /etc/rc3.d which begin with "S" get executed with argument
"start" when the computer gets to run-level 3).

(3) apachectl has a variable called HTTPD which points to the apache
binary (e.g. /usr/local/apache/bin/httpd). It is this which gets called
"recursively" by apachectl.

If you have apachectl in /usr/sbin then it must've come from a bundled
version of apache which came with Debian. If you have installed 1.3.22
on top of it, you probably have two versions of apache on your system...

Might be best to strip out the Debian apache and re-install from
scratch.

Rgds,

Owen Boyle.

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message