Fixing common website errors
This page collects the errors that most often appear on websites, their causes, and how to fix them yourself from cPanel. Always start by asking: what changed before the error appeared? A plugin update, a file edit, or a PHP version change? That is usually the cause.
Where can I find error details?
- The error log in cPanel: in the Metrics section, click Errors to view the latest web server errors for your account, with the file name and the reason the request was refused.
- The
error_logfile: PHP writes its errors to a file namederror_loginside the site's own folder. Open it from File Manager and read the last lines. - WordPress debug mode: temporarily add the following two lines to
wp-config.php, and errors will be written to thewp-content/debug.logfile:
define( 'WP_DEBUG', true );
define( 'WP_DEBUG_LOG', true );Set the value back to false once you have finished the fix.
Common errors
A general error meaning the server couldn't carry out the request. Its most common causes:
- A faulty rule in the
.htaccessfile: rename the file to.htaccess.bakand try the site. If it works, the error is in one of its rules. In WordPress, regenerate it by saving Permalinks in the dashboard. - Incorrect permissions: folders
755and files644. A777permission can cause this error. - An incompatible PHP version: if the error appeared after changing the version, switch back to the previous one in MultiPHP Manager.
- PHP running out of memory or time: raise
memory_limitormax_execution_timein the MultiPHP INI Editor.
The server refuses to show the page. Check:
- That an index file exists: the site folder must contain
index.phporindex.html. - Permissions: the
public_htmlfolder itself must stay at750or755, and files at644. - Blocking rules in
.htaccess: such asDeny from allor blocks on specific IP addresses. - The firewall: if the error appears only for you after repeated failed login attempts, your device's IP address may be temporarily blocked. Try from another network (such as mobile data); if the site works, send a support ticket with your device's IP address.
The requested page doesn't exist at that path:
- Make sure the site's files are directly inside
public_html, not in a subfolder. - Watch the letter case: the server treats
About.htmlandabout.htmlas different files. - In WordPress, if every page except the home page shows 404, save Permalinks again to regenerate the
.htaccessfile.
This usually happens after updating a WordPress plugin or theme:
- Turn on debug mode as described above to find the plugin causing it.
- Disable all plugins by renaming the
wp-content/pluginsfolder toplugins-offin File Manager. If the site works, restore the original name, then disable the plugins one by one from the dashboard until you find the culprit. - To disable the theme, rename its folder inside
wp-content/themes, and WordPress will fall back to a default theme. - If you can't find the cause, restore the site's files and database from an earlier backup using JetBackup 5 in cPanel.
The site can't connect to the database. In the configuration file, check the database name and username with their full prefix, the password, and the host localhost, and make sure the user is assigned to the database with all privileges in Manage My Databases.
Your site is using all the resources allocated to your account at that moment (CPU, memory or the number of concurrent processes). Shared hosting servers run CloudLinux, which limits each account's resources so that one site doesn't affect others.
- Check usage in the Statistics section of cPanel: CPU Usage and Entry Processes.
- Turn on AccelerateWP or any page caching; it reduces the load considerably.
- Look for abnormal traffic, such as bots crawling your site heavily, or cron jobs running every minute.
- If the load comes from real growth in traffic, upgrade your plan with the Change tariff button.
The site keeps redirecting to itself endlessly, usually because of a conflict between more than one redirect to HTTPS or to www:
- Keep only one way of forcing HTTPS: either the Force HTTPS Redirect toggle in cPanel, a rule in
.htaccess, or a WordPress plugin. - In WordPress, make sure the WordPress Address and Site Address match in protocol (
https://) and in whether they includewww. - Clear the site's cookies in your browser and try again.
- If you recently changed the name servers or DNS records, wait for DNS propagation to complete.
- If a default page or a file listing appears, delete the old
index.htmlfile frompublic_html, or make sure it contains an index file. - Clear your browser cache or try a private browsing window.
Raise upload_max_filesize and post_max_size in the MultiPHP INI Editor within the available limits, or upload the file over FTP instead of through the browser.
When should I contact technical support?
If you can't solve the problem yourself, send a ticket linked to your hosting service using the Question button, and include:
- The URL of the page where the error appears, and the error text as shown or a screenshot of it.
- Roughly when it appeared, and what changed before it.
- Which of the fixes above you have tried.
How is this guide?
Calendars and contacts in Webmail
Create and manage calendars and address books, sync them with your phone and computer over CalDAV and CardDAV, and share them with colleagues on the same domain.
Managing VPS hosting services
An overview of the VPS hosting management page in the Client Portal, its toolbar buttons, and where to start if your server is new.