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!

Script to automatically restart apache service

Discussion in 'General Discussion' started by jamshed_11946, May 17, 2019.

  1. jamshed_11946

    jamshed_11946 Member

    Joined:
    Aug 19, 2010
    Messages:
    5
    Likes Received:
    0
    Trophy Points:
    51
    Hello All,

    I need a script/command which will execute automatically when the apache service is down.

    Actually, I want to prevent server for being down due to apache downtime and I want that apache should be restarted automatically.

    Can anyone help me in this regard.
     
  2. GOT

    GOT Get Proactive! PartnerNOC

    Joined:
    Apr 8, 2003
    Messages:
    1,370
    Likes Received:
    154
    Trophy Points:
    193
    Location:
    Chesapeake, VA
    cPanel Access Level:
    DataCenter Provider
    CPanel already monitors the Apache service and tries to restart if down via the taliwatchd system. Click on service manager in WHM and verify the enabled and monitored boxes are checked.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. cPanelMichael

    cPanelMichael Technical Support Community Manager Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    47,009
    Likes Received:
    2,123
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Twitter:
    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