Apache2 keeps shutting down
Hi there,
I am working with Apache2 and it keeps shutting down and bringing down my entire website.
[mpm_prefork:notice] [pid xxxx] Apache/2.4.27 (Ubuntu) OpenSSL/1.0.2g configured -- resuming normal operations
[core:notice] [pid xxxx] Command line: '/usr/sbin/apache2'
[php7:error] [pid xxxx] [client 123.xxx.xxx.xxx:xxxxx] script '/var/www/html/index.php' not found or unable to stat
[mpm_prefork:notice] [pid xxxx] caught SIGTERM, shutting down
[mpm_prefork:notice] [pid xxxx] Apache/2.4.27 (Ubuntu) OpenSSL/1.0.2g configured -- resuming normal operations
[core:notice] [pid xxxx] Command line: '/usr/sbin/apache2'
[mpm_prefork:notice] [pid xxxx] caught SIGTERM, shutting down
What could the problem be? Thanks in advance.
1 Reply
Hi there,
Thank you for sending in logs along with this question!
In the output you sent us there, the timestamp below looks interesting to me, and may be a potential source of issue in your application:
[php7:error] [pid xxxx] [client 123.xxx.xxx.xxx:xxxxx] script '/var/www/html/index.php' not found or unable to stat
It could be that the application cannot access that file, or that it is looking for the incorrect file in your configuration. So when PHP is unable to find that file, it causes Apache2 to restart.
Researching around, I found some posts below that may be helpful for you to look into:
I hope that this helps!
As you continue to troubleshoot this issue, please feel free to respond back to this post with any additional clues or logs that you encounter. We are happy to help!
Kind regards,
Eden S
Linode Support Team