How to switch PHP version on shared servers

Our shared servers are set up to allow each customer to choose the PHP version to use for the account. Moreover, you can even use different PHP versions for different directories in one and the same hosting account. We have PHP 5.3 version installed on our servers by default.

To switch PHP version to 5.2 (as an example) please follow the steps below:

- log into your cPanel;

- click on 'File Manager' icon, make sure you checked "Show Hidden Files (dot-files)";

- find your ‘.htaccess ‘file, if there is no file, you can create it by clicking on “New File”


- add the following line into your ‘.htaccess’ file:

AddHandler application/x-httpd-php52 .php .php5 .php4 .php3


- click “Save changes”.



  • 1 Utilizadores acharam útil
Esta resposta foi útil?

Artigos Relacionados

How to check PHP version and configuration

Phpinfo() function is commonly used to check the current state of PHP configuration. It can also...

How to use PHP Selector

In some cases correct functioning of your website depends on PHP version installed on the...

SuPHP directive for php.ini on shared servers

SuPHP (Single user PHP) is a php handler, which executes PHP scripts with the permissions of...

How to switch PHP version on business servers

Our business servers are running with FSGI module and have PHP 5.2, 5.3, 5.4, 5.5 versions...

How to edit php.ini on shared servers

The php.ini file is the default configuration file for running applications that require PHP. It...

Powered by WHMCompleteSolution