How to Update PHP for WordPress
WordPress and PHP
WordPress is built on the PHP coding language. While it is essential to keep your themes and plugins up to date, keeping your PHP version up-to-date is equally important. Running the latest PHP version will ensure that your website runs faster and will stay more secure.
Additional benefits
- Faster WordPress websites may rank higher in search results.
- Faster websites will help you retain site visitors.
- A secure website will cost less in the long run.
- A secure website will keep its reputation when protected from hackers.
WordPress is backward compatible, meaning that it will still run on older versions of PHP. But to take advantage of new features, it is advisable to update to the latest version offered in your hosting dashboard.
Before you update
Updating your PHP will not usually be a problem, but there is no guarantee that an issue might arise.
- Back up your website. Use one of the free backup plugins available through your WordPress dashboard.
- Update WordPress, themes, and plugins to the latest versions.
- Run the PHP compatibility checker plugin.
- Fix any compatibility issues found by the checker.
How to update your PHP version
- Log in to your Account Manager.
- Click the Hosting tab at the left-hand side.
- Click on the Manage button for your WordPress site.
- Click Scripting Config.
- Click Manage PHP Scripting.
-
Under ACTIONS, click Change PHP Version.
- Select your preferred PHP version from the dropdown.
- Click on the Set Version button again.
Related Articles
WordPress: How to Install
WordPress: How to Keep WordPress Up-to-Date
WordPress: How to Update Database Connection Strings
How to Access Your WordPress Dashboard
WordPress: SSL Certificates