- Plesk for Linux
How to enable/disable graceful restart for Apache in Plesk?
Warning: Due to Apache architecture the graceful restart feature is unstable and can crash Apache or cause issues.
In such cases, it is recommended to increase Apache Restart Interval in Tools & Settings > Apache Web Server.
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 to 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';