Running an outdated PHP version is both a security risk and a performance bottleneck. Here is how to safely update PHP on your WordPress hosting.
Before You Update
- Create a full backup — Database and files. Use UpdraftPlus, BackWPup, or your host's backup tool.
- Check compatibility — Use the "PHP Compatibility Checker" plugin to scan your plugins and themes for compatibility issues.
- Use a staging environment — If available, test the PHP upgrade on a staging copy first.
How to Change PHP Version
cPanel Hosting
- Log in to cPanel.
- Find "Select PHP Version" or "MultiPHP Manager".
- Select your domain and choose the new PHP version.
- Click "Apply".
Plesk Hosting
- Go to Websites & Domains → PHP Settings.
- Select the new PHP version from the dropdown.
- Click "Apply" or "OK".
Managed WordPress Hosting
Providers like Kinsta, WP Engine, and SiteGround offer PHP version switching in their custom dashboards. Look for "PHP Engine" or "PHP Version" in your site's settings.
After Updating
- Visit your site and check for errors
- Test critical functionality (forms, checkout, login)
- Check the WordPress admin dashboard for plugin warnings
- Monitor error logs for 24 hours
Verify with InspectWP
Run a new InspectWP scan — the hosting section should show the updated PHP version.