Follow these steps to change the version of PHP used by the Addon Domains or Sub-domains on your server:
- Navigate to the sub-domain or Addon Domain where you want to change the PHP version.
- Edit your
.htaccessfile, or create one if it doesn’t exist. - At the top of the file, add the following line to set the PHP version:
– For PHP 7.4:AddHandler x-httpd-php74 .php
– For PHP 5.6:AddHandler x-httpd-php56 .php
– For PHP 8.3:AddHandler x-httpd-php83 .php