Skip to content

How to Use Different PHP Versions on Different Domains

Hawk Host supports a variety of PHP versions. We also offer the ability to override the PHP version in cPanel or by .htaccess for each individual domain on your web hosting account.

  1. Log in to your cPanel account.
  2. Navigate to the “MultiPHP Manager” section under “Software”. MultiPHP Manager in cPanel
  3. Select the domain you want to change the PHP version for.
  4. Select the PHP version you want to use.
  5. Click “Save”. Change PHP Version in cPanel

To use a different PHP version for a specific domain using .htaccess, add the following line to your .htaccess file:

<IfModule mime_module>
AddHandler application/x-httpd-alt-php84 .php .php8 .phtml
</IfModule>

Replace php84 with the PHP version you want to use. You can find the available PHP versions and their paths in our Available PHP Versions guide.