A site that goes down once is an incident. When your website keeps going down, at odd times, for ten minutes here and an hour there, that’s a pattern, and patterns have causes you can find. The trouble is that the outage is usually over by the time anyone looks, and “it’s working now” isn’t a diagnosis.
Below are seven common causes. For each one, we describe what it looks like and where to find the evidence. The most useful thing you can do before reading on is write down the exact times of recent outages and what visitors saw (a blank page, a “503”, a database error, a browser security warning). Those details point to different causes.
Resource limits and PHP workers
Most PHP sites (WordPress, WooCommerce, Joomla, Magento) handle each uncached request with a PHP worker. A server or hosting plan only has so many. When they’re all busy, new visitors wait in a queue, and if the queue backs up long enough they get a timeout or an error.
The clues: the site slows to a crawl before it fails, errors are often 502, 503 or 504, and it recovers by itself once the rush passes. On a server you manage with PHP-FPM, the log says so directly:
sudo grep -i "max_children" /var/log/php-fpm/*.log # Red Hat / Rocky
sudo grep -i "max_children" /var/log/php*-fpm.log # Debian / Ubuntu
A line like server reached pm.max_children setting means you ran out of workers. On shared hosting, the control panel often shows when you hit your process or entry-process limit. Raising the limit helps only if the server has memory to spare; often the better fix is making each request faster or caching more pages.
Running out of memory
When a Linux server runs out of memory, the kernel’s out-of-memory (OOM) killer picks a process and ends it to save the rest. It often picks the biggest one, which on a web server is usually the database. The site then shows a database connection error until someone restarts it, or until systemd does.
The clues: the outage starts suddenly, the database or PHP-FPM restarted at that time, and the kernel log mentions it:
sudo journalctl -k | grep -i -E "out of memory|oom"
When the whole server runs out, the line starts with Out of memory: Killed process and names what was killed. If the site runs in a container or a memory-limited service, it reads Memory cgroup out of memory instead, which means that one group hit its own limit rather than the whole server.
Check free -h to see total memory and swap. Small virtual servers with no swap and a busy database are especially prone to this.

Database connection limits
MySQL and MariaDB accept a limited number of connections at once, set by max_connections. If something holds connections open (slow queries, a stuck backup, a plugin that leaks connections), new requests can’t get one. WordPress shows “Error establishing a database connection”; other platforms have their own versions of that message.
The clues: database errors without any memory problem, often during busy periods. Compare the limit with the peak actually used, from the MySQL or MariaDB prompt:
SHOW VARIABLES LIKE 'max_connections';
SHOW GLOBAL STATUS LIKE 'Max_used_connections';
SHOW FULL PROCESSLIST;
If the peak has touched the limit, the process list during the next slowdown usually shows which queries are piling up.
Bad bots and traffic spikes
Not all traffic is people. Aggressive crawlers, scrapers, vulnerability scanners and login-guessing bots can send more requests than your real visitors ever do, often to the slowest pages: search, filters, the login page and the cart.
The clues: outages that don’t match your marketing or busy hours, and an access log dominated by a few addresses or user agents. This counts requests per IP address in the current Apache log on Red Hat and Rocky (on Debian and Ubuntu the file is /var/log/apache2/access.log; for nginx, /var/log/nginx/access.log):
sudo awk '{print $1}' /var/log/httpd/access_log | sort | uniq -c | sort -rn | head
A few addresses with tens of thousands of requests are worth a closer look. Rate limiting or blocking them helps, but be careful not to block search engines you actually want.
Cron jobs and scheduled tasks
Backups, imports, report generation, cache rebuilds and email newsletters often run on a schedule. A heavy job can tie up the CPU, disk or database long enough to take the site down, and it happens at the same time every day or week.
The clues: outages at regular times, especially at night or on the hour. Compare your outage times with what is scheduled:
sudo crontab -l
crontab -l
ls /etc/cron.d/ /etc/cron.daily/
systemctl list-timers
On WordPress, the built-in scheduler (WP-Cron) runs tasks when visitors load pages, so a heavy task can land on a random visitor’s request. The WP-CLI command wp cron event list shows what’s queued. Backup plugins are frequent offenders.
Expiring domains, DNS and SSL certificates
Some outages aren’t the server at all. If your domain registration lapses, the domain stops resolving. If a DNS record is changed by mistake, visitors go to the wrong place. If your SSL certificate expires, browsers show a full-page security warning that most visitors won’t click past, which is an outage in everything but name.
The clues: the server is fine and responds to its IP address, but visitors can’t reach the site. Free Let’s Encrypt certificates last 90 days and are meant to renew automatically, so a failed renewal shows up as a sudden outage months after the site launched. Check the expiry date from any terminal:
echo | openssl s_client -connect www.example.com:443 -servername www.example.com 2>/dev/null | openssl x509 -noout -enddate
We go further into telling these apart in is it DNS, SSL or your web host.
Problems at the host
Sometimes it really is the host: hardware failures, network trouble, an overloaded shared server, maintenance you weren’t told about. These do happen, and they’re the hardest to prove from inside your own account.
The clues: outages that don’t line up with anything in your own logs, other sites on the same server or network going down at the same time, and a status page at your host that mentions an incident. An outside uptime monitor that records exact times is useful evidence here. If the pattern keeps pointing at the host after you’ve ruled out the six causes above, it may be time to read when you should leave your current hosting provider.
How to tell why your website keeps going down
Line up the evidence by time. Take your list of outage times and check, for each one, the PHP-FPM log, the kernel log, the database’s own log, the access log and your scheduled jobs. One of them almost always has something unusual within a minute or two of the outage starting.
Be aware that one cause can trigger another. A bot flood uses up PHP workers, which hold database connections open, which pushes memory up until the OOM killer stops the database. The first thing to go wrong is the one to fix.
How we can help
Our website diagnosis starts at $495 (Magento from $1,250). We review the code, plugins, database, hosting and your real traffic and error logs, and send a plain-English report ranked by what to fix first, with evidence a developer can check.
We don’t offer emergency or on-call service, so we can’t step in mid-outage. A diagnosis is booked work for finding why it keeps happening. For a quick start, ask for a free first look.

