How to switch to a different PHP version?

Bluebird Hosting has implemented a server setup that allows each customer to choose which version of PHP to use for their account. Our customers can also use different PHP versions for different directories in the same hosting account.

The PHP versions currently supported for Wordpress Hosting are: PHP 7.0, PHP 7.1 and PHP 7.2.

To change the PHP version in your Bluebird hosting account simply follow the steps below:

  • Login to your Direcadmin Control Panel account
  • Goto Advanced Features section > Select PHP version
  • At the top you will see current php verion, next to PHP version choose your version from drop down and click "Set as current"  and your done!

To roll a different PHP version in a sub directory or sub-domain:

Create .htaccess file in desired directory where you want to have a different from default PHP version with right handler:
To switch to PHP 7.2

<FilesMatch "\.(php4|php5|php3|php2|php|phtml)$">
SetHandler application/x-lsphp72

As the result, subdirectories will use the same PHP version as parent unless you overwrite it with another .htaccess entry in that subdirectory.

Was this answer helpful?

 Print this Article

Powered by WHMCompleteSolution