Top VPS Hosting Provider

Welcome to the myhosting.com Forums.
+ Reply to Thread
Results 1 to 3 of 3
  1. #1
    sgoodman is offline Master Member
    Join Date
    Jul 2008
    Location
    Alberta, Canada
    Posts
    397

    Question How do I restart Apache?

    Greetings,

    How do I restart Apache 2.0 from the command line? The documentation says to issue this command:

    Code:
    apachectl -k graceful
    Is this correct?

    Parallels has instructions for stopping Apache for RedHat, Debian, Ubuntu, and FreeBSD, but not CentOS, which is what I have.

    Thanks,
    Shane.
    Basic Linux Hosting on classic platform; Parallels Plesk Panel 10.3.1

  2. #2
    suwunk is offline Super Moderator
    Join Date
    Aug 2010
    Posts
    1,082

    Default

    Hi Shane

    Code:
    apachectl -k graceful
    It works for me

    Code:
    apachectl restart
    or:
    Code:
    # service httpd restart
    I'm usually using above commands for full Apache restart.

    Cheers

  3. #3
    sgoodman is offline Master Member
    Join Date
    Jul 2008
    Location
    Alberta, Canada
    Posts
    397

    Thumbs up Restarting Apache

    OK, thanks.

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

    Shane.
    Basic Linux Hosting on classic platform; Parallels Plesk Panel 10.3.1


 

Similar Threads

  1. Apache Wave
    By PotsNPans in forum News, Announcements, and Notices
    Replies: 0
    Last Post: 2010-12-07, 10:28 AM
  2. PHP with Apache?
    By Rusher in forum Programming
    Replies: 3
    Last Post: 2010-11-15, 08:05 PM
  3. Stop Apache from writing to the access_log?
    By RichardLeik in forum How-To
    Replies: 1
    Last Post: 2009-10-24, 10:55 AM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts