944,210 Members | Top Members by Rank

Ad:
Nov 23rd, 2006
0

DSL Apache (won't start with system)

Expand Post »
Hello and Hapy Thanksgiving!

I've recently set up an old Compaq Deskpro 2000 as a web server. I'm running Damn Small Linux and Apache 2.0.54. Everything works perfect except for one small thing—Apache doesn't start with the system. Does anyone know how to setup Apache to startup when the system boots? I've only been working with Linux for about two months so please explain everything slowly and in detail. Thank you all here at DaniWeb for your time and answers!

~ Sparkplug188 (linux n00b)
Similar Threads
Reputation Points: 12
Solved Threads: 2
Junior Poster in Training
Sparkplug188 is offline Offline
92 posts
since Jun 2005
Nov 23rd, 2006
0

Re: DSL Apache (won't start with system)

This is what you're looking for, I think:
Quote originally posted by http://httpd.apache.org/docs/2.2/invoking.html#boot ...
If you want your server to continue running after a system reboot, you should add a call to apachectl to your system startup files (typically rc.local or a file in an rc.N directory). This will start Apache as root. Before doing this ensure that your server is properly configured for security and access restrictions.
rc.local is almost always in /etc/rc.x. So look there, edit the file with vi or something, and add a line for apachectl.

Hope this helps
Team Colleague
Reputation Points: 2240
Solved Threads: 338
Vampirical Lurker
John A is offline Offline
5,055 posts
since Apr 2006
Nov 23rd, 2006
0

Re: DSL Apache (won't start with system)

Thank you Joeprogrammer, you need a pay raise!


For anyone else in the situation I was in, edit "/opt/bootlocal.sh". Add the line "/opt/wwwroot/bin/apachectl -k start" to the end of the document.
Reputation Points: 12
Solved Threads: 2
Junior Poster in Training
Sparkplug188 is offline Offline
92 posts
since Jun 2005

This thread is solved

Either the thread starter or a moderator has marked this thread as solved. You can most likely trust the responses and answers given. There is most likely no reason for any further responses to be posted here. If you have a related question, please start a new thread in this forum instead.

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in Linux Applications and Software Forum Timeline: proxy server problem in liux enterprise server
Next Thread in Linux Applications and Software Forum Timeline: problem with java in fedora4





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC