Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

Apache is not starting when our server reboots. How can I check to be sure it's being told to start with the server?

update

Sorry, I'm using Ubuntu

share|improve this question
add comment

3 Answers

up vote 4 down vote accepted

On Fedora/RedHat system:

chkconfig httpd on

On Debian/Ubuntu system:

update-rc.d apache defaults

share|improve this answer
    
Nvm, got it... .thanks! –  Webnet Jul 15 '10 at 14:05
add comment

You'll need to, at the absolute least, specify what distribution you're using, assuming the "linux" tag is correct.

On CentOS/RHEL/FC, you're looking for:

chkconfig httpd on

For Debian, last time I did it, it was:

sysv-rc-conf

though that may have changed in more-recent versions. For others, there are various ways to do it, but for any that use SysV init (which is nearly all of them), the process basically boils down to adding specially-named symlinks to a rc(X)[.y] directory (or two or three) that point at a master [init|rc] directory that contains the actual startup scripts.

share|improve this answer
add comment

FC/RedHat/CentOS

chkconfig httpd on

service httpd status

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.