We offer 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, which can be adjusted in cPanel.

Checking a PHP version

  1. Log in to cPanel using your normal username and password.
  2. Click on Select PHP Version (screenshot).

You will then see the current PHP version, like this.

Changing a PHP version (all domains)

  1. In the same interface as above, click the blue drop-down icon next to PHP version, and select your desired PHP version (screenshot).
  2. Click Set as current.

The PHP version will then have changed.

Changing a PHP version (per domain)

  1. Go to the document root for the domain in question.
  2. Create a file called .htaccess, or edit it if it already exists.
  3. Insert the following:
<FilesMatch "\.(php4|php5|php3|php2|php|phtml)$">
  SetHandler application/x-httpd-alt-php71___lsphp
</FilesMatch>

Replace php71 accordingly. For example, PHP 8.5 would be php85, and PHP 5.6 would be php56.

Was this answer helpful? 117 Users Found This Useful (405 Votes)