- Plesk for Linux
How to enable graceful restart for Apache in Plesk?
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
parameter with a
value to the
Log in to the Plesk database:
# MYSQL_PWD=`cat /etc/psa/.psa.shadow` mysql -u admin psa
Apply the following MySQL query:
mysql> INSERT INTO misc VALUES ('restart_apache_gracefully', 'true');
In case of
restart_apache_gracefullyalready persist in
psa.misctable, execute the following query:
mysql> UPDATE misc SET val='true' WHERE param = 'restart_apache_gracefully';