PDA

View Full Version : How do I restart Apache?



sgoodman
2012-11-25, 11:20 PM
Greetings,

How do I restart Apache 2.0 from the command line? The documentation (http://httpd.apache.org/docs/2.0/stopping.html) says to issue this command:


apachectl -k graceful
Is this correct?

Parallels has instructions (http://kb.parallels.com/en/122) for stopping Apache for RedHat, Debian, Ubuntu, and FreeBSD, but not CentOS, which is what I have.

Thanks,
Shane.

suwunk
2012-11-26, 05:40 AM
Hi Shane


apachectl -k graceful
It works for me


apachectl restart
or:

# service httpd restart
I'm usually using above commands for full Apache restart.

Cheers

sgoodman
2012-11-26, 07:06 AM
OK, thanks.

I just wanted to check first, to make sure I didn't break anything.

Shane.