How to enable graceful restart for Apache

Created:

2016-11-16 12:43:24 UTC

Modified:

2017-08-16 17:11:10 UTC

2

Was this article helpful?


Have more questions?

Submit a request

How to enable graceful restart for Apache

Applicable to:

  • Plesk for Linux

Question

How to enable graceful restart for Apache in Plesk?

Answer

By default, Plesk does not use graceful restart for Apache for applying new settings. As a result, Apache will be restarted every time if change hosting settings through Plesk web interface. Thus, it can lead to unwanted downtime of websites on a server.

In order to enable graceful restart, add restart_apache_gracefully parameter with a true value to the psa.misc table:

  1. Log in to the Plesk database:

    # MYSQL_PWD=`cat /etc/psa/.psa.shadow` mysql -u admin psa
  2. Apply the following MySQL query:

    mysql> INSERT INTO misc VALUES ('restart_apache_gracefully', 'true');

    In case of restart_apache_gracefully already persist in psa.misc table, execute the following query:

    mysql> UPDATE misc SET val='true' WHERE param = 'restart_apache_gracefully';
Have more questions? Submit a request

2 Comments

  • -1
    Avatar
    David Schroff

    The manual does not notice how to enable this change:

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

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

Please sign in to leave a comment.