Ispmanager 6 lite, pro, host documentation

How to set and change a PHP version

A native PHP version is a version from the official repository of an operating system. It is installed with "Apache module" or "PHP-FPM". For more information please refer to the article How to set up a web-server. You can set up alternative PHP versions from the ISPmanager repository: 

  1. Go to Settings → Software Configuration → Alternative version of PHP (choose the version you need) → ... Edit. 
  2. Select  "PHP CGI" in the Ispmanager PHP field. 
  3. Enable the  Ispmanager PHP for PHP-FPM option to make this PHP version available for "FastCGI (Nginx + PHP-FPM)".
  4. Enable the PHP module for Apache option to make this PHP version available for "Apache module".
  5. Enable the Ispmanager module PHP for OpenLiteSpeed option to make this PHP version available for LSAPI.
Note
PHP versions are installed into /opt/.

In Web-server settings→ PHP, you can see the versions for every PHP mode.

Note
 PHP versions for subdomains will be automatically inherited from the main domain if you have enabled the option Auto subdomains when creating the domain.

Log in to the control panel as Admin, select the PHP version and click  Apache module to apply it to all the  WWW-domains of the ISPmanager users with the mode "PHP as Apache".

Note
For PHP 8.0 to work correctly in the "PHP as Apache" mode, enable the PHP-FPM FastCGI option in the web server features: SettingsFeaturesWeb-server (WWW)Edit button.

For FastCGI (Nginx + PHP-FPM) the version can be changed in PHP list at the user level or in the user editing from at the admin level. Changes apply to all user's WWW domains using PHP in FastCGI (Nginx + PHP-FPM) mode. This way, the setting is applied to the user.

Learn more under PHP modes.