When a WordPress website stops working, the cause is usually one of a handful of things. Work through this checklist in order, from the quickest checks to the most involved.
1. Check that it is really your site
Confirm that the domain has not expired, that your hosting account is active and that DNS points to the right server. Try the site from another network or device to rule out local caching.
2. Read the error
The symptom narrows the search. A 500 Internal Server Error, a blank white screen and the message Error establishing a database connection each point to a different cause, so note exactly what you see.
3. Turn on debug logging
Add these lines to wp-config.php, above the line that says to stop editing:
define( 'WP_DEBUG', true );
define( 'WP_DEBUG_LOG', true );
define( 'WP_DEBUG_DISPLAY', false );
Errors are then written to wp-content/debug.log. The server error log, available in cPanel under Metrics, is also worth reading. Turn debugging off again when you are finished.
4. Disable all plugins
If you cannot reach the dashboard, rename the wp-content/plugins folder to something like plugins-off using File Manager or FTP. If the site loads, rename it back and reactivate plugins one at a time until the faulty one appears.
5. Switch to a default theme
Rename the folder of your active theme. WordPress falls back to a default theme if one is installed, which tells you whether the theme is the problem.
6. Check .htaccess
A broken .htaccess file is a common cause of 500 errors. Rename it to .htaccess-old, then go to Settings, then Permalinks, and save to generate a fresh one.
7. Check PHP version and memory
A plugin or theme may need a newer PHP version, or the site may be running out of memory. In cPanel, review the PHP version and the memory_limit value in your PHP settings.
8. Database connection errors
Check that DB_NAME, DB_USER, DB_PASSWORD and DB_HOST in wp-config.php are correct, and that the database server is running. A full disk or an exceeded hosting quota can also stop the database from working.
Still stuck? Our hosting package includes monitoring and technical troubleshooting, so problems are caught early and fixed for you.
Leave a Reply