How to set and change a PHP version

How to 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 ISPsystem repository: 

  1. Go to Settings → Feature → Alternative PHP versions → Edit. 
  2. Select  “PHP CGI” in the ISPsystem PHP field. 
  3. Enable the  ISPsystem PHP for PHP-FPM option to make this PHP version available for “FastCGI (Nginx + PHP-FPM)”.
  4. Enable the ISPsystem module PHP for Apache option to make this PHP version available for “Apache module”.

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”.

Log in to the control panel as User, select the PHP version and click  PHP-FPM to apply it to all the  WWW-domains of the ISPmanager users with the mode PHP “FastCGI (Nginx + PHP-FPM)”.

Learn more under PHP modes.

info@mustanhost.com
8.00-20.00