Operating System - HP-UX
1825551 Members
2509 Online
109681 Solutions
New Discussion юеВ

Apache start up after reboot

 
Matthew Pegge_1
Frequent Advisor

Apache start up after reboot

How do I ensure that apache gets started automatically after reboot.
7 REPLIES 7
Ross Zubritski
Trusted Contributor

Re: Apache start up after reboot

Set apache_start=1 in /etc/rc.config.d/apacheconf.

Regards,

RZ
G. Vrijhoeven
Honored Contributor

Re: Apache start up after reboot

Hi,

You need to createn copy apachectl and place it in /etc/init.d. and create two symbolic links to this script. One to start /etc/rc3.d/S...
and one to stop /etc/rc1.d/K.... apache.



http://tiwrm.hpcc.nectec.or.th/MANUAL/APACHE_SSL/main.html


Gideon
Ross Zubritski
Trusted Contributor

Re: Apache start up after reboot

Vri- I think you are thinking solaris. In HP-UX, the apachectl script would go in /sbin/init.d.

Regards,

RZ
G. Vrijhoeven
Honored Contributor

Re: Apache start up after reboot

Ross,

Your absolutely right! /sbin/init.d it is.

Steven E. Protter
Exalted Contributor

Re: Apache start up after reboot

If you have done a manual compile or installed Oracle's IAS version of apache which isn't smart enough to start itself after install.

Do this.

ln -s /sbin/init.d/apachecontrol /sbin/rc3.d/S800apache

ln -s /sbin/init.d/apachecontrol /sbin/rc2.d/K200apache

The S guy starts apache at run level three and the K guy kills him when the machine drops to run level 2 The numbers are your choice.

/sbin/init.d/apachecontrol is something you need to create. Here is mine, attached. The name is up to you.

So many depots do this automatically, I wonder if doing it manually will become a lost art.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Kellogg Unix Team
Trusted Contributor

Re: Apache start up after reboot

All the above answers are applicable if you are not running apache in SSL mode. If you are running secure server with a passphrase (highly recommended), you will have to start it manually or devise some other way to automate it.

...Manjeet
work is fun ! (my manager is standing behind me!!)
Dave La Mar
Honored Contributor

Re: Apache start up after reboot

Attached is the doc for startup additions.
If followed, the doc is straight forward.

Our shop has used this for a standard.

Best of Luck.

Regards,
dl
"I'm not dumb. I just have a command of thoroughly useless information."