How to enable/disable Apache graceful restart in Plesk




  • Avatar
    David Schroff

    The manual does not notice how to enable this change:

    /usr/local/psa/admin/bin/httpdmng --reconfigure-all
  • Avatar
    Pavel Rozental

    Hello David, article is correct. It's not needed to run httpdmng command to apply changes. 

  • Avatar

    No David is correct. I run a webapp from within Plesk, and simply completing this database edit did not do the job. My logs showed:

    503 POST {my uri} HTTP/1.0

    (104)Connection reset by peer: AH01075: Error dispatching request to :, referer: {my uri}

    Thank you David for posting the final step.

  • Avatar
    Bulat Tsydenov

    s intende@Justin, Hi!

    Let me try to explain to you how it works and why it is actually not required to run httpdmng utility.

    The solution from this article is to add a particular parameter to Pleks database. Every time when Plesk runs reconfiguration of some configuration files, it checks the value of 'restart_apache_gracefully' parameter. If it is true, then Plesk will restart apache gracefully. If you run httpdmng after these steps, it will not make anything to achieve what this article is intended for. 

    As for the errors, I believe they could have been resolved by running httpdmng to fix them, however, the cause of them different and the solution from this article makes nothing to fix them. 

  • Avatar
    Stéphan Schamp

    To enable:

    INSERT INTO psa.misc VALUES ('restart_apache_gracefully', 'true') ON DUPLICATE KEY UPDATE val='true';


    To disable:


    INSERT INTO psa.misc VALUES ('restart_apache_gracefully', 'false') ON DUPLICATE KEY UPDATE val='false';

  • Avatar
    Rhein Web


  • Avatar
    Luis Zubeldia

    quick way to check if grafecull restart is active?

  • Avatar
    Alisa Kasyanova

    @Luis Zubeldia
    This command will do the trick: plesk db "select * from misc where param = 'restart_apache_gracefully';" . It will either show the "true" or "false" value or it won't show anything - it means that graceful restart is disabled.

Please sign in to leave a comment.

Have more questions? Submit a request