Question

Site can't be reached anymore

Posted August 12, 2021 102 views
ApachePHPUbuntu 20.04

I’ve started getting “This site can’t be reached” errors when trying to reach my site with a web browser. I can still ping it, log into it with SSH, and run a PHP script with the command line. Nothing new appears in the Apache error log after an attempt to reach it with a web browser. It uses a PostgreSQL database, which I can still access with the psql command, but not with PGAdmin anymore. What else should I look at to figure out why this is happening? I took a screenshot of output from the top command in case that could be helpful.

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

×
Submit an Answer
1 answer

Hello, @swadams

You can check if the Apache workers have been exhausted by any chance. This information will be stored in the error_log file.

  • grep -i workers /var/log/apache2/error.log

If this is the issue you should see a similar output of the command:

server reached MaxRequestWorkers setting, consider raising the MaxRequestWorkers setting

You can also take a look at our How To Troubleshoot Common Apache Errors tutorial

https://www.digitalocean.com/community/tutorials/how-to-troubleshoot-common-apache-errors

Regards,
Alex

by Jamon Camisso
There are three main commands, and a set of common log locations that you can use to get started troubleshooting Apache errors. Generally when you are troubleshooting Apache, you will use these commands in the order indicated here, and then examine log files for specific…