1834424 Members
2134 Online
110067 Solutions
New Discussion

Apache 2 Startup

 
SOLVED
Go to solution

Apache 2 Startup

Hi !
I'm trying to configure Apache 2 (2.0.43) to start automatically at system startup. It is fully configured, I can run the httpd server manually, with "apachectl start".

I made the following steps:
1. I created a soft link: /sbin/init.d/apache2
2. Created a soft link in /sbin/rc3.d/S950apache2
3. Created soft link in /sbin/rc2.d/K950apache2

All this links pointing to /usr/local/apache2/bin/apachectl initialization script.

Buy it seems not to be enough, am I missing some step?

As a reference, when I shutdown the system, the following message appears:
----
Usage: /usr/local/apache2/bin/httpd [-D name] [-d directory] [-f file]
[-C "directive"] [-c "directive"]
[-k start|restart|graceful|stop]
[-v] [-V] [-h] [-l] [-L] [-t]
----
As if the script was not executed correctly.

Any idea or reference to accomplish this?

Thank you all in advance...
2 REPLIES 2
James R. Ferguson
Acclaimed Contributor
Solution

Re: Apache 2 Startup

Hi:

The file '/sbin/init.d/apache2' should be based on the template '/sbin/init.d/template'. It is *not* a link to the initialization script. Rather is *calls* the initialization script to "start" or "stop" the process.

For a complete guide to the 'rc' startup model, see this document:

http://docs.hp.com/hpux/onlinedocs/os/startup.pdf

Regards!

...JRF...

Re: Apache 2 Startup

Thank you very much James, for the quick answer!!, I will read that doc.

Best regards...

Rogelio