How to use different PHP versions for your websites?

In case that some of your applications require PHP 4 and others need PHP 5, here is an easy solution for you:

  • Let’s say that your account is set to use PHP 4 and one of your sites runs only on PHP 5.
  • To set the PHP 5 environment for a specific domain, go to the File Manager, open the domain folder and create a file called .htaccess. Then choose to edit the newly created .htaccess file and type down the following line: SetEnv PHP_VERSION 5

This way, the entire hosting account will be using PHP 4 and only this particular domain – PHP 5.