apache shutting down and cannot start

February 16, 2019 2.5k views
Apache Ubuntu

when I reboot the droplet apache seems to run fine for a couple of minutes. but then it shutdown and I cannot restart it. I disable all other site excep the default but still the same. here is the log /var/log/apache2/error.log
"root@mail:/home/radmin# tail -f /var/log/apache2/error.log
[Sat Feb 16 12:45:47.541494 2019] [core:notice] [pid 5406] AH00094: Command line: '/usr/sbin/apache2'
[Sat Feb 16 12:51:01.950632 2019] [mpm_prefork:notice] [pid 5406] AH00169: caught SIGTERM, shutting down
[Sat Feb 16 12:51:03.092528 2019] [mpm_prefork:notice] [pid 5866] AH00163: Apache/2.4.7 (Ubuntu) OpenSSL/1.0.1f configured -- resuming normal operations
[Sat Feb 16 12:51:03.092616 2019] [core:notice] [pid 5866] AH00094: Command line: '/usr/sbin/apache2'
[Sat Feb 16 12:53:52.293543 2019] [mpm_prefork:notice] [pid 5866] AH00169: caught SIGTERM, shutting down
[Sat Feb 16 12:54:13.895889 2019] [mpm_prefork:notice] [pid 3046] AH00163: Apache/2.4.7 (Ubuntu) OpenSSL/1.0.1f configured -- resuming normal operations
[Sat Feb 16 12:54:13.896565 2019] [core:notice] [pid 3046] AH00094: Command line: '/usr/sbin/apache2'
[Sat Feb 16 12:58:29.638638 2019] [mpm_prefork:notice] [pid 3046] AH00169: caught SIGTERM, shutting down
[Sat Feb 16 12:58:36.873615 2019] [mpm_prefork:notice] [pid 3505] AH00163: Apache/2.4.7 (Ubuntu) OpenSSL/1.0.1f configured -- resuming normal operations
[Sat Feb 16 12:58:36.873718 2019] [core:notice] [pid 3505] AH00094: Command line: '/usr/sbin/apache2'
|

3 Answers

Hi @vincentroycruz ,

Problems with Apache or any other webserver can occure when dependencies fail as well. My guess, seeing the log above, is that something Apache needs is not working properly.
The logs above, only shows that Apache is shutting down...not more.

Do you have something like PHP-FPM working or is the port (80/443) already in use? Check some more logs and post them here to find the problem.

Thanks for your reply as off yesterday afternoon apache became normal. As I have said i disabled the other site only the simple default page was enabled but still apache was shutting down. as of yesterday it was normal again and reenabled the other site. so far so good it did not shutdown. I did not change anything except disabling and enabling the site. no sure what causes that one . if i reboot the vps it works fine for a few minutes then it shutdown. no other error on the logs just a SIGTERM . But for now it is ok since it yesterday. thanks for your reply.

Just wait for it and your computer/laptop will be automatically restart and try to open your XAMPP control panel again, and then start your Apache vidmate.

Have another answer? Share your knowledge.