Solved

how to start apache automatically?

Posted on 2000-03-31
3
245 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

Microsoft Certification Exam 74-409

Veeam® is happy to provide the Microsoft community with a study guide prepared by MVP and MCT, Orin Thomas. This guide will take you through each of the exam objectives, helping you to prepare for and pass the examination.

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…
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…

734 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