Solved

Apache Startup Service

Posted on 2004-08-10
7
206 Views
Last Modified: 2010-03-04
To All,
I installed Apache 2.0.48 (on RH 9) by issuing the following commands: ./configure;  make;   make install.  The installation was successful but apache (aka httpd) does not start when the server is restarted.  How do I make apache automatically startup?  Thanks


Chigs
0
Comment
Question by:chigs20
7 Comments
 
LVL 9

Expert Comment

by:ronan_40060
ID: 11768185
Hello Chings

You need to check if  a daemon is set to start automatically :

 /bin/chkconfig --list httpd

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

also do check the documentation at
http://httpd.apache.org/docs-2.0/invoking.html
let us know how it goes
Good Luck
Ronan
0
 
LVL 6

Author Comment

by:chigs20
ID: 11768497
I ran the command:
/bin/chkconfig --list httpd

and it returned nothing (no listings, data, etc).
0
 
LVL 9

Expert Comment

by:ronan_40060
ID: 11768660
0
PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

 
LVL 4

Accepted Solution

by:
TomDavidson earned 500 total points
ID: 11770924
when entering runlevel 3 (the normal operating runlevel for pretty much all servers) the server will start all the services in
/etc/rc.d/rc3.d/S*
and stop all the services
/etc/rc.d/rc3.d/K*

you most likely have a symbolic link to /etc/rc.d/init.d/httpd at
/etc/rc.d/rc3.d/Kxxhttpd
just rename it to
/etc/rc.d/rc3.d/Sxxhttpd
and the server will start the service every time the server enters this runlevel, including on boot.
0
 
LVL 22

Expert Comment

by:pjedmond
ID: 11770998
If you want a really nice *easy* and graphical way to view and configure startup processes (and more), try webmin:

www.webmin.com

It'll save you loads of time on this type of problem and others.

Basically, you connect with your browser to port 10000 and off you go.

I cannot stress enough how easy it makes tasks for people who are just starting to get to grips with this type of thing.

HTH:)
0
 
LVL 22

Expert Comment

by:pjedmond
ID: 11771002
..and although it has a .com, it is 100% 'free'
0
 
LVL 51

Expert Comment

by:ahoffmann
ID: 11771756
you need to follow the docs, either those which come with apache itself, or the listed links here
I'd use original apache docs ;-)

Reason is that each Linux distribution has its own way to handle rc-scripts.
AFAIK chkconfig in RH is not enough, you first need to install the right script (apachectl for example) in the right place ((etc/init.d for example), then chkconfig works
And no, webmin does help you if you'd not installed the script before, unfortunatelly.
0

Featured Post

Zoho SalesIQ

Hassle-free live chat software re-imagined for business growth. 2 users, always free.

Question has a verified solution.

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

Hi, in this article I'm going to teach you how to run your own site, and how to let people in (without IP). I'll talk about and explain each step... :) By the way, everything in this Tutorial is completely free and legal. This article is for …
If you are a web developer, you would be aware of the <iframe> tag in HTML. The <iframe> stands for inline frame and is used to embed another document within the current HTML document. The embedded document could be even another website.
This Micro Tutorial will give you a basic overview how to record your screen with Microsoft Expression Encoder. This program is still free and open for the public to download. This will be demonstrated using Microsoft Expression Encoder 4.
Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…

863 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

20 Experts available now in Live!

Get 1:1 Help Now