Without realizing it, the PHP version on your WordPress website could be outdated. The latest version of PHP is important for improving speed, security, and compatibility with plugins and themes.
So how do you update your WordPress PHP via cPanel without crashing? Check out the steps below!
Why Update PHP?
Before getting into the technicalities, it is important to know the benefits of PHP updates:
- Better security: Older versions are vulnerable to hackers.
- Improved performance: The new PHP processes pages faster.
- Plugin & theme compatibility: Modern plugins need the latest version of PHP.
But be careful, sudden PHP updates can cause website errors if your plugins or themes are not compatible.
Preparation Before Update
Before updating PHP, make sure:
- Backup the website: Use a plugin like UpdraftPlus or manual backups in cPanel.
- Check compatibility:
- Go to Tools > Site Health in WordPress.
- Or use a plugin like PHP Compatibility Checker.
- Update all plugins & themes first.
How to Update WordPress PHP via cPanel
Here’s a step-by-step guide:
1. Login to cPanel
Go to Cpanel account and login with your hosting username and password.
2. Search for “Select PHP Version”
Use the search field and type “Select PHP Version” or “MultiPHP Manager”, depending on the hosting provider.
3. Choose Your WordPress Domain
If you have multiple domains/addon domains, make sure to choose the domain where your WordPress is installed.
4. Choose the Latest PHP Version
Example: from PHP 7.4 to 8.3 or 8.4 (depending on what is available).
Current recommendation: PHP 8.3 and above.
After this, click “Apply“ or ”Set as Current“
Check Website After Update
After changing the PHP version:
- Open your website, make sure it appears normally.
- Check your WordPress admin to see if everything is running smoothly.
- If there’s an error, go back to the previous version via the same steps.
What to Do in Case of Error?
If the website is blank or error:
- Downgrade the PHP version to the previous one.
- Deactivate the problematic plugin via File Manager or phpMyAdmin.
- Contact your hosting support if you’re not sure what to do next.
Conclusion
Updating your PHP version via cPanel is quite easy, as long as you are careful and prepared. Make sure backups are always available, and check all plugins and themes before upgrading. With the latest PHP, your website will be faster, more secure, and ready to face the challenges of modern web technology.
