Solved

Apache Startup Service

Posted on 2004-08-10
7
209 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
[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
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
Enterprise Mobility and BYOD For Dummies

Like “For Dummies” books, you can read this in whatever order you choose and learn about mobility and BYOD; and how to put a competitive mobile infrastructure in place. Developed for SMBs and large enterprises alike, you will find helpful use cases, planning, and implementation.

 
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

Efficient way to get backups off site to Azure

This user guide provides instructions on how to deploy and configure both a StoneFly Scale Out NAS Enterprise Cloud Drive virtual machine and Veeam Cloud Connect in the Microsoft Azure Cloud.

Question has a verified solution.

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

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). #…
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…

739 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