LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (https://www.linuxquestions.org/questions/linux-server-73/)
-   -   Apache automatically brings up (https://www.linuxquestions.org/questions/linux-server-73/apache-automatically-brings-up-835462/)

linuxguy08 09-30-2010 12:48 PM

Apache automatically brings up
 
Hi ,

I have an appliation which needs apache , I configured apache that works fine. The thing is that every time i start server i need to manully run the apache scripts. How can let is automatically start while the server comes up?

this is the sample work around to bring the application brings up

cd /opt/apache2.0.53/bin/
./apachectl startssl

Thanks

TB0ne 09-30-2010 01:17 PM

Quote:

Originally Posted by linuxguy08 (Post 4113980)
Hi ,
I have an appliation which needs apache , I configured apache that works fine. The thing is that every time i start server i need to manully run the apache scripts. How can let is automatically start while the server comes up?

this is the sample work around to bring the application brings up
cd /opt/apache2.0.53/bin/
./apachectl startssl

Hard to say, since you don't tell us what version/distro of Linux you're on. Might want to try "chkconfig apache2 on" (or just apache), if you're on CentOS. Different versions have different ways of doing things.

linuxguy08 09-30-2010 02:33 PM

it is

Red Hat Linux release 8.0 (Psyche)

kernel version : 2.4.18-14smp

httpd is off and apachectl is running where i confgiured our own app. So i need it to be start automatically while the server comes up. Is there a way that i can put under /etc/rc.d/rc3.d . not sure exactly..

Thanks

TB0ne 09-30-2010 03:06 PM

Quote:

Originally Posted by linuxguy08 (Post 4114054)
it is

Red Hat Linux release 8.0 (Psyche)
kernel version : 2.4.18-14smp

httpd is off and apachectl is running where i confgiured our own app. So i need it to be start automatically while the server comes up. Is there a way that i can put under /etc/rc.d/rc3.d . not sure exactly..

Given the age of that box, I'd not let it anywhere NEAR the net. Seriously consider upgrading.

That said, you can easily add your script/commands into a start-script in /etc/rc3.d, and it should work. May want to look at an initscript utility, such as /sbin/chkconfig, /sbin/ntsysv, or the Services Configuration Tool program. But RH8 is ancient....


All times are GMT -5. The time now is 03:36 AM.