Website shows 500 Internal Server Error (HTTP 500)
On this page
A 500 error means the website's own code stopped with an error before it could send a page. The web server itself is working. In almost every case the exact reason is written in your PHP error log, which you can read in the control panel.
Symptoms
- The browser shows 500 Internal Server Error, HTTP ERROR 500, "This page isn't working", or a page titled 500 — Server error ("The website could not answer this request").
- Or the page is completely white (blank).
- Static files (pictures, styles) may still load; only PHP pages fail.
Causes
Most likely first:
- A PHP error in the website's code — a broken plugin, theme or update, or a file that did not upload completely.
- The database cannot be reached — wrong database name, user or password in the site's configuration file.
- The PHP version does not suit the code — old code on a new PHP version, or the other way round.
- A PHP limit was reached — memory or execution time.
- The code calls a function or extension that is not available — for example
exec(), which is turned off for websites. - The disk space or file limit of your account is full — PHP cannot write its cache or session files.
Fix
Read the error first
- Log in to the control panel (
https://<server>:2083). - Open Errors (section Advanced). It lists the latest PHP errors and warnings of your websites, newest first. The full log is
~/logs/php-errors.login your home folder. - Reload the broken page once, then click Refresh on the Errors page. The newest line is usually the cause.
You can also open Site Check (section Advanced), choose the website and click Check. Under Latest PHP errors of this site you see only the errors of that website, together with its PHP version and the account's disk state.
1. A PHP error in the code
The error line names the file and line, for example PHP Fatal error: Uncaught Error: Call to undefined function … in /home/user/public_html/wp-content/plugins/….
- If it points to a plugin or theme folder, rename that folder in File Manager (section Files) to switch it off, then reload the site.
- If you just uploaded files, upload them again: a half-uploaded file causes "syntax error, unexpected end of file".
- If the site broke right after a change, restore the earlier files from Backups (section Advanced).
2. The database cannot be reached
Errors such as Access denied for user, Unknown database or Connection refused mean the site's configuration file does not match a database of your account. See Error establishing a database connection.
3. The PHP version does not suit the code
- Open PHP (section Advanced).
- Under PHP version, choose another version for that website (or the Account default).
- Click Save versions and reload the site.
Old code often fails on PHP 8 with errors like Call to undefined function each() or Unparenthesized a ? b : c. New code fails on old versions with syntax error, unexpected ….
4. A PHP limit was reached
Allowed memory size of … bytes exhausted or Maximum execution time of … seconds exceeded: see PHP memory exhausted and Maximum execution time exceeded.
5. A function or extension is missing
exec(),shell_exec(),system(),passthru(),proc_open(),popen()andpcntl_exec()are turned off for websites on this server. Use a plugin setting that does not need them, or run the task as a cron job (cron jobs are not affected).Class "…" not foundorCall to undefined function imap_open()(or similar) means a PHP extension is missing. Ask your hosting provider to add it; administrators add optional extensions per PHP version.open_basedir restriction in effectmeans the code tries to read a file outside your home folder. Websites may only use files in your home folder and the temporary folder.
6. Disk space or file limit full
Open Resource Usage (section Advanced). If Disk space or Files and folders is at its limit, see Disk quota exceeded.
Still not working?
- No line appears on the Errors page: the error may come from a rule in
.htaccess. Rename.htaccessin File Manager to test (changes apply within a minute), then put it back. - Run Site Check and send the result to your hosting provider through Support, naming the website and the time you saw the error.
Thank you — this helps us improve the article.
Still stuck?
Ask the AI about your exact situation — it answers from this knowledge base — or contact us.
Related articles
- WordPress "There has been a critical error" or white screen
Fix the WordPress critical error message or a blank white screen: read the PHP error in the control panel, switch off the broken plugin or theme, or roll back.
- Error establishing a database connection (access denied)
Fix "Error establishing a database connection" and "Access denied for user" on this server: database name prefix, user privileges, password, host and repairs.
- PHP "Allowed memory size exhausted" error
Fix "Fatal error: Allowed memory size of 134217728 bytes exhausted" by raising the PHP memory limit in the control panel, and know the account limit above it.
- Website shows 503 Service Unavailable (or 502, 504)
Why a site answers "503 Service Unavailable" (or 502/504) here: account limits reached, an application stopped, PHP not starting. How to check and fix it.