Solved

how to start apache automatically?

Posted on 2000-03-31
3
204 Views
Last Modified: 2010-03-18
I install the latest version 1.3.12 of apache to my linux redhat 6.0 pc.
However, I don't know how can I start it automatically once the pc start?

thank you
0
Comment
Question by:cstsang
3 Comments
 
LVL 40

Expert Comment

by:jlevie
ID: 2673249
You can add the startup commands to /etc/rc.d/rc.local, or you could create a separate script in /etc/rc.d/init.d named apache or httpd and link it to the run level dir that you want the web server started in (probably /etc/rc.d/rc5.d/SNNhttpd).
0
 
LVL 1

Expert Comment

by:bcoleman
ID: 2673834
You could use linuxconf.  Type linuxconf  Go into Control->Control Panel->Control Service Activity.  In there you can select httpd and see if it is running, plus set it up to start up on boot(Automatic), or you can start/stop it by hand(Manual).
0
 
LVL 1

Accepted Solution

by:
philiph_elvis earned 30 total points
ID: 2674407
I believe the easiest way to do this is from the command line (as root):

# /sbin/chkconfig httpd on

You can verify that a daemon is set to start automatically thusly:

# /sbin/chkconfig --list httpd

which will list all runlevels that daemon is configured to start for.

chkconfig works with all /etc/rc.d/init.d rc scripts which are set up correctly (all the RH61 scripts are).
0

Featured Post

Highfive Gives IT Their Time Back

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

I have seen several blogs and forum entries elsewhere state that because NTFS volumes do not support linux ownership or permissions, they cannot be used for anonymous ftp upload through the vsftpd program.   IT can be done and here's how to get i…
Note: for this to work properly you need to use a Cross-Over network cable. 1. Connect both servers S1 and S2 on the second network slots respectively. Note that you can use the 1st slots but usually these would be occupied by the Service Provide…
It is a freely distributed piece of software for such tasks as photo retouching, image composition and image authoring. It works on many operating systems, in many languages.
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

744 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now