Most websites, including WordPress, are built with PHP. You can choose which PHP version your site uses, and newer versions are faster and more secure.
Before you change
- Take a backup of your website and database.
- Update your software first. If you use WordPress or another application, update it and all plugins and themes before switching to a newer PHP version. Older plugins are the most common cause of problems.
- Check what PHP versions your software supports. This is usually listed on the developer's website.
Changing the version
Depending on your server, cPanel shows one of two tools. Use whichever one you see.
MultiPHP Manager
- Log into cPanel.
- Under Software, click MultiPHP Manager.
- Tick the domain you want to change.
- Choose the new version from the PHP Version list and click Apply.
Select PHP Version
- Log into cPanel.
- Under Software, click Select PHP Version.
- Choose the version from the Current PHP version list and click Set as current.
- On the Extensions tab, make sure the extensions your site needs are ticked.
On servers with this tool, the setting applies to all domains in your account.
Check your site
After switching, visit your site and click through a few pages. If you use WordPress, also log into the dashboard. If you see an error or a blank page, switch back to the previous version and contact the developer of the plugin, theme or application that's causing the problem.
Changing PHP settings
To change settings like upload_max_filesize, memory_limit or max_execution_time:
- In MultiPHP INI Editor (under Software), choose your domain and adjust the values in Basic Mode.
- Or, in Select PHP Version, use the Options tab.
Some values have maximums set by your hosting plan.
Please note: Updating your website's code, plugins or themes to work with newer PHP versions is outside the scope of our support. If your site needs code changes, please contact your web developer.
