Download your favorite Linux distribution at LQ ISO.
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-11-2006, 07:20 PM   #1
Registered: Nov 2005
Distribution: redhat, debian, ubuntu
Posts: 47

Rep: Reputation: 15
Apache 2.2 how to make it start at boot time


I compiled apache 2.2.3 on Redhat ES4.
Since it's compiled and not an RPM, when I do chkconfig, apache doesn't even show up. The documentation says to include the
command to rc.local file so that it starts at boot time.
So added /usr/local/apache2/bin/apachectl start to rc.local file.
However when it reboots, it doesn't start apache.
I need to manually run /usr/local/apache2/bin/apache1 start then it starts up.
I tried doing ln -s /usr/local/apache2/bin/apachectl /etc/init.d/apache to see if it'll show
up under chkcofig --list so that I can chkconfig apache on but doesn't show.
What would I need to do so that apache starts at boot time automatically?


Last edited by pridefc; 11-11-2006 at 07:38 PM.
Old 11-11-2006, 07:45 PM   #2
Senior Member
Registered: Dec 2005
Location: Brisbane, Australia
Distribution: Slackware64 14.0
Posts: 4,138

Rep: Reputation: 168Reputation: 168
Are the other commands in rc.local being run at startup or are they failing too? Were there any errors in the Apache log files when you started the box and tried to run apachectl from rc.local?
Old 11-15-2006, 12:12 AM   #3
Registered: Nov 2005
Distribution: redhat, debian, ubuntu
Posts: 47

Original Poster
Rep: Reputation: 15
I was finally able to add it under chkconfig services after adding some lines to apache script file.
Not sure why the command in rc.local didn't work. That was the only command in rc.local and didn't find anything in the logs.


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
How do I get aic7xx to start at boot time? sutch51 Linux - Software 4 03-22-2006 01:46 AM
How to make a program run at start up time. TruongAn Linux - Software 22 10-26-2005 06:50 PM
Start Apache at boot-time alexthedon Linux - Networking 1 06-26-2005 03:59 PM
Start a program at boot time cppkid Programming 3 08-31-2004 09:33 AM
How To make MySql and Apache start at boot time? umeshz Red Hat 1 05-18-2004 01:00 PM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 02:31 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