A 500 page deliberately tells visitors nothing, so it doesn’t leak internal details about the site. The server does write the real reason to the error log, which is why every fix starts there. In most cases the problem is in the site’s files or settings rather than the server itself, and it typically appears after an edit, an update, or a PHP version change.
What causes a 500 error
- A bad line in .htaccess: an unsupported directive or a typo after a manual edit or a plugin change.
- A PHP fatal error: a plugin or theme that isn’t compatible with the current PHP version. See PHP fatal errors.
- Running out of memory: the script went over
memory_limit. See Allowed memory size exhausted. - Wrong file permissions: folders or files set to
777, or locked down completely. - An interrupted update: a WordPress or plugin update stopped halfway and left missing files.
- App configuration: in Laravel, for example,
storageisn’t writable orAPP_KEYis missing.
Fixing it step by step
1. Read the error log
Open cPanel, then Metrics → Errors for the latest server errors. Then in Files → File Manager, enable “Show Hidden Files” under Settings and look for an error_log file in the site’s folder. A line like PHP Fatal error: Uncaught Error: Call to undefined function names the file and line.
2. Test .htaccess
Rename .htaccess to .htaccess.bak. If the site returns, the cause is in that file. In WordPress go to Settings → Permalinks and click Save Changes to write a clean one, then add your other rules back one at a time.
3. Turn on WordPress debugging
Add these lines to wp-config.php above That's all, stop editing:
define( 'WP_DEBUG', true );
define( 'WP_DEBUG_LOG', true );
define( 'WP_DEBUG_DISPLAY', false );
Errors go to wp-content/debug.log without being shown to visitors. Set it back to false once fixed.
4. Disable plugins and the theme
Rename wp-content/plugins to plugins-off. If the site comes back, restore the name and disable plugins one by one until you find the culprit. For the theme, rename its folder and WordPress falls back to a default theme.
5. Check the PHP version and limits
In Software → Select PHP Version, try a version your site supports (see choosing a PHP version), and in the Options tab raise memory_limit if the log mentions memory. If your account uses MultiPHP INI Editor, change it there instead.
6. Fix permissions
Folders 755, files 644, and never 777.
7. Restore a backup
If the error began after an update and you can’t find the cause, restore the site from the last good backup.
If you’re a visitor
There’s nothing to fix on your side. Try again in a few minutes, and if it persists, tell the site owner the URL and the time you saw the error.
Prevention
- Back up before any major update, and try updates on a staging copy first.
- Check plugin compatibility before switching PHP versions.
- Keep copies of
.htaccessandwp-config.phpbefore editing them.
On ArabyHost
Ask the Araby AI assistant in the panel to read your error log: it explains the cause and the suggested fix, and changes nothing without your approval. You can switch PHP between 8.1 and 8.3 yourself, and sites run on LiteSpeed, which reads .htaccess like Apache. Daily JetBackup backups let you roll the site back to before the update that broke it.
FAQ
Where do I find the exact cause of a 500 error?
In the error log. Open cPanel, then Metrics → Errors, and look for an error_log file in your site's folder in File Manager. The latest line at the time of the error usually names the file and line number.
I got a 500 right after updating a WordPress plugin. What now?
Rename that plugin's folder inside wp-content/plugins in File Manager, and WordPress deactivates it automatically. If the site comes back, the plugin is the cause: roll back to an earlier version or contact its developer.
Does a 500 error mean my site was hacked?
Not necessarily. Most cases are code or configuration errors. But if you find unfamiliar files or an .htaccess you didn't change, scan the site for malware.