Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

How to stop apache?

Discussion in 'EasyApache' started by alexz, Sep 10, 2005.

  1. alexz

    alexz Member

    Joined:
    Jun 20, 2005
    Messages:
    13
    Likes Received:
    0
    Trophy Points:
    151
    I need to stop apache, I've disabled httpd service in whm, but httpd only stops for a couple of minutes and then it somehow starts again :(
    Is there anyway to stop apache from runing for 1 day (only apache, I need everything elese)?
     
  2. neutro

    neutro Well-Known Member

    Joined:
    Apr 11, 2004
    Messages:
    70
    Likes Received:
    1
    Trophy Points:
    158
    i think you need to stop chkservd first

    service chkservd stop
    and later
    service httpd stop
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
    Contemplator likes this.
  3. alexz

    alexz Member

    Joined:
    Jun 20, 2005
    Messages:
    13
    Likes Received:
    0
    Trophy Points:
    151
    yes, it did help!
    Thank you very much!
    Alex
     
  4. webignition

    webignition Well-Known Member

    Joined:
    Jan 22, 2005
    Messages:
    1,880
    Likes Received:
    0
    Trophy Points:
    166
    chkservd is used for both restarting failed services and is responsible for updating the service status in WHM and cPanel (or so I believe). Therefore it would be best to keep chkservd running and just tell it not to monitor and restart Apache.

    Code:
    rm -Rf /var/run/chkservd/apache
    To get chkservd to monitor Apache again, just re-add /var/run/chkservd/apache - this file should contain a + and be owned by root:root and have permissions of 0644. Copying one of the other files in /var/run/chkservd/ might be easier than manually recreating /var/run/chkservd/apache

    Code:
    cp /var/run/chkservd/bind /var/run/chkservd/apache
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  5. webignition

    webignition Well-Known Member

    Joined:
    Jan 22, 2005
    Messages:
    1,880
    Likes Received:
    0
    Trophy Points:
    166
    Interestingly, the changelog now lists something that may be of use:

    As soon as this slips down to whichever release you might be on, this would probably do the trick nicely from within WHM.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  6. chirpy

    chirpy Well-Known Member

    Joined:
    Jun 15, 2002
    Messages:
    13,460
    Likes Received:
    22
    Trophy Points:
    463
    Location:
    Go on, have a guess
    It's in EDGE now too. Seems to work nicely, though I wish they'd add a monitor from crond ;)
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice