Apache problem
Tom Wilson
twilson
Mon May 17 11:45:27 PDT 2004
On Sun, 2003-03-09 at 13:39, Brian Witowski wrote:
> Hi,
>
> I just upgraded to Apache 2.0.44 (from source) on a Caldera 3.1 Linux box.
> Installation went fine, however I no longer have a /etc/rc.d/init.d/httpd
> file to launch httpd. I did track down the /usr/local/apache2/apachectl
> file which appears to have the same function.
Using apachectl is the preferred way to start/stop Apache.
> In other words, typing in "./apachectl start" will start the daemon. My
> problem is that I can't make it executable! I have tried every 'chmod'
> combination possible. I've tried chmod a+x and even that doesn't work. It
> needs to have the "./" in front of it.
If your are in the /usr/local/apache2 directory you have to have the ./
in there so it knows to look in the current directory for the script. If
you are in a directory other than the /usr/local/apache2 directory
apachectl should work if you put /usr/local/apache2 in your path. Or you
can use the full path to apachectl.
If you want to start Apache at boot time stick
/usr/local/apache2/apachectl start in the /etc/rc.local file.
>
> Does this version NOT have the /etc/rc.d/init.d/httpd script? Why can't I
> make it executable?
Did you install Apache the first time during the install of the OS? I
believe when I once used Apache from the default install of the OS it
had the /etc/rc.d/init.d/httpd and other times when I compiled from
source it didn't. That was awhile ago and my memory is no good. YMMV.
--Tom Wilson
More information about the Linux-users
mailing list