S
S
stpnov2016-03-25 16:50:46
PHP
stpnov, 2016-03-25 16:50:46

Daemons fall on PHP (Apache + Nginx), what is the reason?

The other day I moved to a VPS server and seemed to have set everything up, but the PHP processes that I run as daemons began to fall by themselves. They fall at the same time at intervals of 1-2 minutes, the last time the process worked from 00:44 to 11:27 and the time is constantly different. Installed IspManager 5, cron checked everything, I suspect that Apache is rebooting.
Here is an excerpt or error.log:


[Thu Mar 24 11:15:42 2016] [notice] Apache/2.2.22 (Debian) configured -- resuming normal operations
[Thu Mar 24 11:30:58 2016] [notice] caught SIGTERM, shutting down
[Thu Mar 24 11:31:03 2016] [notice] Apache/2.2.22 (Debian) configured -- resuming normal operations
[Thu Mar 24 11:31:50 2016] [notice] caught SIGTERM, shutting down
[Thu Mar 24 11: 31:51 2016] [notice] Apache/2.2.22 (Debian) configured -- resuming normal operations
[Thu Mar 24 11:31:52 2016] [notice] caught SIGTERM, shutting down
[Thu Mar 24 11:31:58 2016] [notice] Apache/2.2.22 (Debian) DAV/2 PHP/5.4.45-0+deb7u2 mod_ssl/2.2.22 OpenSSL/1.0.1e configured -- resuming normal operations
[Thu Mar 24 11:31:59 2016] [notice] SIGHUP received. Attempting to restart
[Thu Mar 24 11:31:59 2016] [notice] Apache/2.2.22 (Debian) DAV/2 PHP/5.4.45-0+deb7u2 mod_ssl/2.2.22 OpenSSL/1.0.1e configured -- resuming normal operations
[Thu Mar 24 11:32:18 2016] [notice] caught SIGTERM, shutting down
[Thu Mar 24 11:32:19 2016] [notice] Apache/2.2.22 (Debian) DAV/2 PHP/5.4.45- 0+deb7u2 mod_ssl/2.2.22 OpenSSL/1.0.1e configured -- resuming normal operations
[Thu Mar 24 11:32:38 2016] [notice] Graceful restart requested, doing restart
[Thu Mar 24 11:32:38 2016] [error] (9)Bad file descriptor: apr_socket_accept: (client socket)
[Thu Mar 24 11:32:38 2016] [error] (9)Bad file descriptor: apr_socket_accept: (client socket)
[Thu Mar 24 11:32 :38 2016] [error] (9)Bad file descriptor: apr_socket_accept: (client socket)
[Thu Mar 24 11:32:38 2016] [error] (9)Bad file descriptor: apr_socket_accept: (client socket)

It looks like something is signaling it, but the bottom line is that Apache doesn't always reboot when it receives "caught SIGTERM, shutting down".
Please help :c

Answer the question

In order to leave comments, you need to log in

1 answer(s)
W
Walt Disney, 2016-03-25
@ruFelix

Here, apparently, logrotate tells Apache it's time to restart and it executes.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question