Results 1 to 9 of 9
  1. #1

    automatically restart apache..

    Hello ..

    is there a way to automatically restart apache when it goes down?

    I'm running plesk on centos 6..


  2. #2
    Join Date
    Feb 2006
    Something called SIM (System Integrity Monitor) is good for this, fully configurable so you're able to define the paths to any service you want checking.

  3. #3
    Join Date
    Oct 2011
    Just install Watchdog (System monitoring extension) on your Plesk. Use Plesk autoinstaller for this.

  4. #4
    Join Date
    Mar 2003
    You can also create a cron to monitor it easily.
    Specially 4 You
    JoneSolutions.Com ( Jones.Solutions ) is on the net 24/7 providing stable and reliable web hosting solutions and services since 2001

  5. #5
    Join Date
    May 2013
    Another option is monit, which comes with very simple configuration. You can read a howto at

  6. #6
    Join Date
    May 2013
    Whatever you decide to use, ensure that it tests for more than a socket connection on port 80. Apache could accept a socket connection and still not load the page.
    ▄▀▄ Brian Harrison, Lead Engineer - Reprise Hosting (AS62838)
    ▄▀▄ Deals on cheap dedicated server hosting. IPMI included! Unmetered bandwidth.
    ▄▀▄ Website migration, 24/7/365 support, basic server setup, 15 day money back.
    ▄▀▄ Looking for DEALS on self-managed cheap VPS hosting? Visit

  7. #7
    Its best to create a cron and let it check the apache service.
    Softaculous - Auto Installer for cPanel, Direct Admin, InterWorx, Plesk, H-Sphere
    The only Auto Installer that installs 260+ scripts. Install in just ONE STEP!
    Virtualizor - VPS Control Panel supporting OpenVZ, Xen, KVM and has 60+ OS Templates
    Webuzo - Softaculous for the Cloud i.e. Softaculous Standalone

  8. #8
    Join Date
    Sep 2002
    Top Secret
    Cron is good, cron is great, cron is your friend.
    The real question you should be asking yourself, though:
    Why is apache going down so frequently that it needs to be constantly restarted
    WHMCS Guru - WHMCS addons, management, support and more.
    WHMCS Notifications Extended - Add slack, hipchat, SMS, pushover to WHMCS !!
    Linux Problems? WHMCS Issues? +1-866-546-8914 (linux-14) or @whmcsguru on twitter!

  9. #9
    How often does it happen? Did you check your logs and what does they say about it? Is your server too loaded - ram, cpu, etc? Did you check your plugins, heavy scripts, etc...

Similar Threads

  1. how to monitor crond and restart it automatically?
    By emsjs1 in forum Hosting Security and Technology
    Replies: 4
    Last Post: 06-21-2010, 04:10 AM
  2. Server restart automatically
    By khurramalvi in forum VPS Hosting
    Replies: 6
    Last Post: 06-14-2010, 01:13 PM
  3. Apache: Graceful restart requested, doing restart
    By guarriman in forum Dedicated Server
    Replies: 3
    Last Post: 10-11-2005, 03:31 PM
  4. Automatically restart services
    By Skeptical in forum Hosting Security and Technology
    Replies: 8
    Last Post: 05-21-2002, 03:42 PM
  5. After SSL install apache won't restart automatically
    By JeremyL in forum Hosting Security and Technology
    Replies: 4
    Last Post: 10-29-2001, 09:30 PM

Posting Permissions

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