PHP is the programming language that powers most website software, including WordPress, and different applications need different PHP versions to run properly. If a plugin, theme, or script on your website suddenly stops working or shows an error, checking and possibly changing your account's PHP version is often the fix.
Why Your PHP Version Matters
Software developers regularly update their plugins and themes to work with newer PHP versions and drop support for older ones. Running a PHP version that's too old can leave your site unable to use current plugins and less secure. Running one that's too new can sometimes break older, unmaintained code. Matching the version your website's software recommends usually solves both problems.
How to Check Your Current PHP Version
In cPanel
- Log in to your cPanel account.
- Under the Software section, click MultiPHP Manager.
- Find your domain in the list. The PHP Version column shows what it's currently running.
In DirectAdmin
- Log in to your DirectAdmin account.
- Under the Extra Features or Account Manager section (the label depends on your theme), click Select PHP Version.
- The page will display the version currently active for your domain.
You can also confirm the active version by creating a file containing <?php phpinfo(); ?> and opening it in your browser, then deleting the file afterward.
How to Change Your PHP Version
In cPanel
- Go to MultiPHP Manager under the Software section.
- Select the checkbox next to your domain.
- Choose the version you want from the PHP Version dropdown.
- Click Apply.
In DirectAdmin
- Go to Select PHP Version.
- Choose the version you need from the dropdown or version selector.
- Click Save (sometimes labeled Update) to apply the change.
Changing your PHP version can affect how your website looks or functions if a plugin or theme isn't compatible with it. Test your site right after switching, and if something breaks, switch back to the previous version until you've resolved the compatibility issue.
If you're not sure which version your website needs, check your CMS or plugin documentation. And if switching versions triggers an unexpected error, our guide on common website errors can help you work out what's going on.