PHP CloudLinux

From ISPWiki
Jump to: navigation, search

This module can be used for managing PHP versions, settings and extensions on CloudLinux.

T-bullet.png View a list of PHP versions
T-server-disks.png Select PHP This feature is available only to users.
T-attr.png PHP configuration
T-addon.png Manage PHP extensions

View a list of PHP versions

ISPmanager administrator can view a list of installed PHP versions including a system version. ISPmanager users can see the system PHP version and the selected alternative version in CGI mode. If the system version is used as CGI, the alternative PHP version is not displayed.

  • PHP version - available PHP version: (alt) - alternative (native) - system
  • Mode - available PHP modes

Select PHP version

CloudLinux enables to run multiple PHP versions. As ISPmanager Business runs only Apache as the web-server, the only variant is to use an alternative version of PHP as CGI. Note: alternative PHP version requires the user account to have CageFS enabled to work (log in to control panel as Admin -- the "User" module -- the "Edit" button).

Select PHP version

"Default" - the system PHP version with CGI support.

Note: PHP version defines how the PHP interpreter will start (see the php-bin/php file in the user home directory)

If you are using the alternative PHP version, the interpreter will be started with the /usr/local/bin/php-cgi-etc script, which doesn't allow to upload php.ini from the php-bin directory, where settings for the system PHP version are specified.

PHP configuration

Here you can configure PHP directives for the selected PHP version. See "PHP settings" for details.

When modifying PHP configuration for alternative versions, users can edit values only for those directives for which administrator selected the "Recomended for user" check box. See CloudLinux documentation for details.

Manage PHP extensions

Click the "Extensions" button to manage extensions of the selected PHP version. See the "PHP extensions" article for details.

The control panel installs all available extesions for alternative PHP versions, thus you may only enable or disable them. Users cannot disable extensions that were activated by admin.