LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 09-30-2010, 12:48 PM   #1
linuxguy08
Member
 
Registered: Apr 2008
Posts: 155
Blog Entries: 2

Rep: Reputation: 15
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
 
Old 09-30-2010, 01:17 PM   #2
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,613

Rep: Reputation: 7962Reputation: 7962Reputation: 7962Reputation: 7962Reputation: 7962Reputation: 7962Reputation: 7962Reputation: 7962Reputation: 7962Reputation: 7962Reputation: 7962
Quote:
Originally Posted by linuxguy08 View Post
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.
 
Old 09-30-2010, 02:33 PM   #3
linuxguy08
Member
 
Registered: Apr 2008
Posts: 155

Original Poster
Blog Entries: 2

Rep: Reputation: 15
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
 
Old 09-30-2010, 03:06 PM   #4
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,613

Rep: Reputation: 7962Reputation: 7962Reputation: 7962Reputation: 7962Reputation: 7962Reputation: 7962Reputation: 7962Reputation: 7962Reputation: 7962Reputation: 7962Reputation: 7962
Quote:
Originally Posted by linuxguy08 View Post
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....
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
apache start automatically linuxguy08 Linux - Server 1 07-13-2009 04:11 PM
Compiled Apache v2.20, but it won't startup automatically Ziax Mandriva 6 12-19-2005 05:36 PM
starting Apache automatically nodger Linux - Software 2 11-04-2005 03:54 PM
starting apache automatically upon booting zoso *BSD 4 02-14-2005 09:01 PM
Starting Apache web server automatically gslater Linux - Newbie 4 05-09-2004 01:44 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 12:41 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration