Solved

how to start apache automatically?

Posted on 2000-03-31
3
249 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Understanding Linux Permissions

Linux for beginners: How to view the permissions associated with files and directories and also how you can change them.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

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…
If you're a developer or IT admin, you’re probably tasked with managing multiple websites, servers, applications, and levels of security on a daily basis. While this can be extremely time consuming, it can also be frustrating when systems aren't wor…
There are cases when e.g. an IT administrator wants to have full access and view into selected mailboxes on Exchange server, directly from his own email account in Outlook or Outlook Web Access. This proves useful when for example administrator want…

627 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