LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 11-04-2005, 02:58 PM   #1
nodger
Member
 
Registered: Oct 2003
Location: Ireland
Distribution: Slackware 9.1, Ubuntu
Posts: 192

Rep: Reputation: 30
starting Apache automatically


Ive just got a new centOS server, after installing apache, I just want to know whats the
best (most correct) way to start apache incase the server reboots for whatever reason.

for now I placed the "apachectl --start" line in /etc/rc.local

Is this right? I know in Slackware its not done like this

Thanks,
Noel
 
Old 11-04-2005, 03:39 PM   #2
nodger
Member
 
Registered: Oct 2003
Location: Ireland
Distribution: Slackware 9.1, Ubuntu
Posts: 192

Original Poster
Rep: Reputation: 30
After some searching, I found that this is better

Code:
chkconfig --level 345 httpd on
hope this helps someone
 
Old 11-04-2005, 03:54 PM   #3
fouldsy
Senior Member
 
Registered: Jan 2002
Location: St Louis, MO
Distribution: Ubuntu
Posts: 1,284

Rep: Reputation: 47
chkconfig is a bit cleaner than adding to rc.local, but would still have been valid. Different systems have different methods of setting bootscripts are different runlevels which is why it might have been different under Slackware. You might also want to look at stopping Apache upon reboot or shutdown.
 
  


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
Starting Internet Automatically? grazak Linux - Networking 1 03-27-2005 11:39 PM
starting apache automatically upon booting zoso *BSD 4 02-14-2005 09:01 PM
not starting automatically ??? JNaas Linux - Networking 0 09-30-2004 07:25 PM
Starting Apache web server automatically gslater Linux - Newbie 4 05-09-2004 01:44 PM
Starting X Automatically shari Linux - Software 2 08-08-2001 01:11 AM


All times are GMT -5. The time now is 11:04 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration