3.3.1 How to change PHP version in the hosting control panel

PHP logo

Supported PHP Versions

Our shared hosting supports various PHP versions, allowing you to run almost any PHP-based website. Additionally, you have the flexibility to use 2 PHP versions within a single account.

Currently, our hosting supports the following PHP versions:

  • PHP 5.2.17 (with integrated ZendOptimizer and IonCube)
  • PHP 5.3.10 (with integrated ZendGuardLoader and IonCube)
  • PHP 5.4.45 (with integrated ZendGuardLoader and IonCube)
  • PHP 5.5.38 (with integrated ZendGuardLoader and IonCube)
  • PHP 5.6.40 (with integrated ZendGuardLoader and IonCube)
  • PHP 7.0.33 (with integrated IonCube)
  • PHP 7.1.33 (with integrated IonCube)
  • PHP 7.2.34 (with integrated IonCube)
  • PHP 7.3.33 (with integrated IonCube)
  • PHP 7.4.33 (with integrated IonCube)
  • PHP 8.0.30 (installed by default)
  • PHP 8.1.27 (with integrated IonCube)
  • PHP 8.2.14 (with integrated IonCube)
  • PHP 8.3.1

The current active version of IonCube Loader is: 13.0.2

Changing Operating Mode and Selecting PHP Version

Each WWW domain can operate in one of three PHP modes:

  • PHP is not supported. Such domain wont operate with PHP.
  • PHP as Apache module. All domains in this mode will run on version 5.3.10 regardless of the version set in the PHP configuration tab.
  • PHP as CGI. All domains in this mode will run on the version set in the PHP configuration tab.

Changing the PHP version is available only for the PHP as CGI mode. To change the PHP version, you need to set PHP to CGI mode for at least one WWW domain.

Сменить режим PHP

After this, refresh the browser page. In the panel’s left menu, you will find the PHP configuration option. Opening it, you can see the following PHP management form, where you can select the interpreter version.

Выбор версии PHP на хостинге TheHost

Thus, all domains set with PHP as CGI mode will work with the selected PHP version.

Info: how to use different PHP versions within a single service?

On Hosting: you can use only two versions - the one set in PHP configuration for all domains in PHP as CGI mode and version 5.3.10 for all domains in PHP as an Apache module mode.

On a Virtual/Dedicated Server: with ISPManager panel, you have root superuser access. Using it, you can create an unlimited number of regular users, each of whom can select their PHP version in the PHP configuration tab.

Using PHP in Command Line

If you want to use PHP in the command line (CLI) or in a CRON job, you need to use the following commands:

  • php-5.2 - PHP version 5.2
  • php-5.3 - PHP version 5.3
  • php-5.4 - PHP version 5.4
  • php-5.5 - PHP version 5.5
  • php-5.6 - PHP version 5.6
  • php-7.0 - PHP version 7.0
  • php-7.1 - PHP version 7.1
  • php-7.2 - PHP version 7.2
  • php-7.3 - PHP version 7.3
  • php-7.4 - PHP version 7.4
  • php-8.0 - PHP version 8.0
  • php-8.1 - PHP version 8.1
  • php-8.2 - PHP version 8.2
  • php-8.3 - PHP version 8.3

Usage example:

  1. php-8.0 /var/www/exampleuser/data/www/examplesite.com.ua/script.php