- Plesk for Linux
How to enable graceful restart for Apache in Plesk?
Warning: Due to Apache architecture the graceful restart feature is unstable and can crash Apache or cause issues.
By default, Plesk does not use graceful restart for Apache for applying new settings. As a result, Apache restarts every time if hosting settings are changed through Plesk web interface. It leads to short downtime of websites hosted on the server.
In order to enable graceful restart, add the
restart_apache_gracefully parameter with the
true value to the
Connect to the server using SSH.
Back up Plesk database.
Log in to the Plesk database:
# plesk db
Execute the following MySQL queries:
MYSQL_LIN: INSERT INTO psa.misc VALUES ('restart_apache_gracefully', 'true');
In case of
restart_apache_gracefullyalready exists in
psa.misctable, execute the following query:
MYSQL_LIN: UPDATE psa.misc SET val='true' WHERE param = 'restart_apache_gracefully';
In case graceful restart should be disabled, use the following MySQL query:
MYSQL_LIN: UPDATE psa.misc SET val='false' WHERE param = 'restart_apache_gracefully';