You can easily check or change your PHP version through cPanel. We support PHP 5.6, 7.0, 7.1, 7.2, 7.3, 7.4, 8.0, 8.1, 8.2, 8.3, 8.4 and 8.5, allowing you to choose the version that best suits your website's requirements.
Follow the instructions below to check your current PHP version, change it for your entire hosting account, or configure a different version for an individual domain.
How to check your current PHP version
- Log in to cPanel using your normal username and password.
- Find and click Select PHP Version (screenshot).
- Your currently selected PHP version will be displayed, as shown in this screenshot.
How to change PHP version for all domains
To change the default PHP version for your hosting account, follow these steps:
- Open Select PHP Version in cPanel.
- Click the blue drop-down icon next to PHP version and choose your preferred version (screenshot).
- Click Set as current to apply the change.
Your selected PHP version will now be active for domains using your account's default PHP configuration.
How to change PHP version for a specific domain
If you host multiple domains and need a different PHP version for one of them, you can configure it using an .htaccess file.
- Open File Manager in cPanel and navigate to the domain's document root.
- Locate the
.htaccessfile, or create one if it doesn't already exist. - Add the following code:
<FilesMatch "\.(php4|php5|php3|php2|php|phtml)$">
SetHandler application/x-httpd-alt-php71___lsphp
</FilesMatch>
Replace php71 with your desired PHP version. For example, use php85 for PHP 8.5 or php56 for PHP 5.6.
Save the file to apply your changes. We recommend using a currently supported PHP version whenever possible to maintain website security, performance and compatibility.