Solved

Apache Startup Service

Posted on 2004-08-10
7
204 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
Comment Utility
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
Comment Utility
I ran the command:
/bin/chkconfig --list httpd

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

Expert Comment

by:ronan_40060
Comment Utility
0
Get up to 2TB FREE CLOUD per backup license!

An exclusive Black Friday offer just for Expert Exchange audience! Buy any of our top-rated backup solutions & get up to 2TB free cloud per system! Perform local & cloud backup in the same step, and restore instantly—anytime, anywhere. Grab this deal now before it disappears!

 
LVL 4

Accepted Solution

by:
TomDavidson earned 500 total points
Comment Utility
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
Comment Utility
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
Comment Utility
..and although it has a .com, it is 100% 'free'
0
 
LVL 51

Expert Comment

by:ahoffmann
Comment Utility
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

Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

Join & Write a Comment

Over the last year I have answered a couple of basic URL rewriting questions several times so I thought I might as well have a stab at: explaining the basics, providing a few useful links and consolidating some of the most common queries into a sing…
If you've heard about htaccess and it sounds like it does what you want, but you're not sure how it works... well, you're in the right place. Read on. Some Basics #1. It's a file and its filename is .htaccess (yes, with a dot in the front). #…
This video explains how to create simple products associated to Magento configurable product and offers fast way of their generation with Store Manager for Magento tool.
You have products, that come in variants and want to set different prices for them? Watch this micro tutorial that describes how to configure prices for Magento super attributes. Assigning simple products to configurable: We assigned simple products…

743 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

18 Experts available now in Live!

Get 1:1 Help Now