How to enable Apache graceful restart in Plesk

Refers to:

  • Plesk 12.5 for Linux
  • Plesk 10.4 for Linux
  • Plesk Onyx for Linux
  • Plesk 11.0 for Linux
  • Plesk 11.5 for Linux
  • Plesk 12.0 for Linux

Created:

2016-11-16 12:43:24 UTC

Modified:

2017-02-15 23:01:33 UTC

0

Was this article helpful?


Have more questions?

Submit a request

How to enable Apache graceful restart in Plesk

Question

How to enable Apache graceful restart in Plesk?

Answer

By default, Plesk does not use Apache graceful restart for applying new settings. As a result Apache will be restarted every time you change hosting settings through the Plesk GUI.

Note : that enabling graceful restart can lead to an unwanted websites downtime.

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 parameter 'restart_apache_gracefully' already persist in 'misc' table, execute the following query:

mysql> update misc set val='true' where param = 'restart_apache_gracefully';
Have more questions? Submit a request
Please sign in to leave a comment.