1. Please take a little time for this simple survey! Thank you for participating!
    Dismiss Notice
  2. Dear Pleskians, please read this carefully! New attachments and other rules Thank you!
    Dismiss Notice
  3. Dear Pleskians, I really hope that you will share your opinion in this Special topic for chatter about Plesk in the Clouds. Thank you!
    Dismiss Notice

Can i stop apache from restarting after new domain

Discussion in 'Plesk 10.x for Linux Issues, Fixes, How-To' started by bizzehdee, May 30, 2012.

  1. bizzehdee

    bizzehdee New Pleskian

    13
    60%
    Joined:
    Nov 6, 2011
    Messages:
    12
    Likes Received:
    0
    is it possible to set an option in the psa database anywhere that will prevent apache from rebooting every time a new domain/subdomain is added/removed/suspended/activated. we are having problems that we are adding and suspending new domains throughout the day and every time we do, apache restarts, dropping all the websites until it comes back online, which can take 15 -20 seconds, which may not sound like a lot, but as a web design company, the server should never be down.

    what we would rather happen is that all the configs are changed/added as normal, but apache is not restarted and we will create a cron job that restarts apache to reflect the new configs at midnight every night to avoid any notable downtime.
     
  2. AntonLS

    AntonLS Basic Pleskian Staff Member

    14
     
    Joined:
    Dec 26, 2011
    Messages:
    33
    Likes Received:
    0
    There is an option "Apache restart interval" in "Tools & settings -> Server Settings".
    With this option you can delay apache restarting on specified number of seconds.

    Also, you can modify apache restart script to do not restart until special condition (environment variable exist or something else) but it is a dirty hack.
     
Loading...