🚫 Fix “500 Internal Server Error” or “503 Service Unavailable” in WordPress
If your WordPress website shows a white screen with a 500 Internal Server Error or 503 Service Unavailable, it usually means there is a server-side issue — and one of the most common causes is an outdated PHP version.🔧 Step 1: Log in to cPanel
- Go to your hosting provider’s cPanel login page
- Enter your username and password
⚙️ Step 2: Open “Select PHP Version”
- In the cPanel dashboard, scroll down to the Software section
- Click on Select PHP Version or it may be named “MultiPHP Manager”
⬆️ Step 3: Update the PHP Version
- Select a newer PHP version (e.g.
8.0
or8.1
) - Click Set as current or Apply
- Wait for the change to apply — it usually takes a few seconds
📌 Why Updating PHP Fixes the Error
Older PHP versions may no longer be supported by WordPress or your theme/plugins. Updating PHP:- Restores compatibility with WordPress core
- Eliminates deprecated function errors
- Improves speed and security
✅ Final Step
After the PHP version is updated, refresh your website. In most cases, the error will disappear and your WordPress site will load normally.🛡️ Pro Tip
Always back up your site before changing server settings. Also check your.htaccess
file and deactivate plugins if the issue persists.