By Jack Harding
Hi there. I have an Apache server running on Ubuntu 16.04 and I have multiple websites running on it. I’ve noticed that occasionally, all of my sites are down with ‘This site cannot be reached’ errors. Restarting apache fixes this, but I’m just tring to find the cause. I’ve looked in the error logs and I noticed this:
[Mon Apr 02 12:31:31.411760 2018] [mpm_prefork:notice] [pid 20212] AH00163: Apache/2.4.18 (Ubuntu) OpenSSL/1.0.2g configured -- resuming normal operations
[Mon Apr 02 12:31:31.411836 2018] [core:notice] [pid 20212] AH00094: Command line: '/usr/sbin/apache2'
[Mon Apr 02 12:31:31.543994 2018] [mpm_prefork:notice] [pid 20212] AH00169: caught SIGTERM, shutting down
Am I right in thinking that this is the cause of my problem? I followed the tutorial here for enabling SSL, but ran in to some issues where I had to do things differently. I basically just ran commands I found on Google until it worked (stupid I know, but I’m very inexperienced with this stuff).
If anyone could tell me how I could resolve this, I would be very grateful!
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
The log snippet you shared does not in itself indicate an issue. The caught SIGTERM, shutting down is what Apache logs normally when it receives a stop or restart command.
Can you share your Apache configuration found in /etc/apache2/sites-enabled (feel free to change identifying names to something like example.org if you’d like. Seeing this will help in identifying the problem.
As this happens randomly it’s also possible that it’s related to resource usage, especially if this is a smaller droplet. Are you using the monitoring agent on your droplet?
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.