Visit Jeremy's Blog.
Go Back > Forums > Linux Forums > Linux - Software
User Name
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.


  Search this Thread
Old 11-04-2005, 02:58 PM   #1
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

Old 11-04-2005, 03:39 PM   #2
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

chkconfig --level 345 httpd on
hope this helps someone
Old 11-04-2005, 03:54 PM   #3
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.


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 > Forums > Linux Forums > Linux - Software

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

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