Apache restarts frequently: Caught SIGTERM, shutting down

Created:

2016-11-16 13:04:22 UTC

Modified:

2017-04-24 11:01:57 UTC

0

Was this article helpful?


Have more questions?

Submit a request

Apache restarts frequently: Caught SIGTERM, shutting down

Applicable to:

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

Symptoms

Apache error log has lots of [notice] caught SIGTERM, shutting down - messages.

Cause

This is an expected behavior that Apache is being restarted to apply configuration changes. Every time when any PHP setting for the domain is changed or anything else, apache will be restarted to apply it. When Apache graceful restart is enabled Apache will NOT be restarted every time you change hosting settings through the Plesk UI. By default, Plesk does not use Apache graceful restart for applying new settings.

The interval defines a minimal gap between two consequent restarts (in seconds) is called 'Apache Restart Interval'. You can find the apache_restart_interval parameter in table psa.misc :

mysql> select * from misc where param like '%_apache%';
+---------------------------+------+
| param | val |
+---------------------------+------+
| restart_apache_gracefully | true |
| restart_apache_interval | 600 |
+---------------------------+------+
2 rows in set (0.00 sec)

A graceful restart is done any time Plesk makes an update to the Apache configuration.Please note that a graceful restart is not the same as a full Apache restart, it just reloads the configuration, which should not affect the functioning of your sites.

To enable:

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

To disable:

mysql> REPLACE INTO misc VALUES ('restart_apache_gracefully', 'false');

Additional information are available in Apache manual:
http://httpd.apache.org/docs/2.2/stopping.html#graceful

Note: This case is valid only when information messages are shown and apache keeps running without downtime.

Have more questions? Submit a request
Please sign in to leave a comment.