Multi PHP version

We had implemented 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 are PHP 5.3, PHP 5.4, PHP 5.6, PHP 7.0, PHP 7.1, PHP 7.2 and PHP 7.3. To change the PHP version in your Linux hosting account simply follow the steps below:

- Go to cPanel account and log in.
- In the Files section, look for the "File Manager" icon. Click on it.

- Click Settings in the upper right corner and check the box for Show Hidden Files and click Save

- Navigate the desired folder (For example public_html folder) and select the .htaccess file. If there isn’t one, you can go ahead and create a new one. Once it is selected, right click on it and select Edit.

- You need to placed one of the following code at the end of .htaccess:

For PHP 5.3:
AddHandler application/x-httpd-php53  .php53 .php

For PHP 5.4:
AddHandler application/x-httpd-php54  .php54 .php

For PHP 5.6:
AddHandler application/x-httpd-php56  .php56 .php

For PHP 7.0:
AddHandler application/x-httpd-php70  .php70 .php

For PHP 7.1:
AddHandler application/x-httpd-php71  .php71 .php

For PHP 7.2:
AddHandler application/x-httpd-php72  .php72 .php

For PHP 7.3:
AddHandler application/x-httpd-php73  .php73 .php

- Click Save Changes

  • 2 Users Found This Useful
Was this answer helpful?

Related Articles

What is Softaculous?

Softaculous is a commercial script library that automates the installation of commercial and open...

How to upload (Linux Hosting) ?

In this tutor you're about to learn how to upload your website content via FTP client software...

What is www or public_html folder?

Please note that " www"  is just the symbolic link or just a mirror to the public_html directory....

What is .htaccess?

The .htaccess file can be placed in one or more of your /home/user/public_html subdirectories....

How to enable 'register_globals' ?

Since we upgrade all our Linux server to suphp enable, The php_value or php_flag configured will...