PHP Extensions

Navigation:  PHP Selector > Configuration >

PHP Extensions

Previous pageReturn to chapter overviewNext page

Configuring Alt-PHP modules loading

 

CloudLinux PHP Selector and Alt-PHP can be used in conjunction with Plesk PHP Selector and cPanel MultiPHP. To be compatible, CloudLinux PHP Selector works as follows: modules that are selected in CloudLinux PHP Selector are loaded for Alt-PHP version selected in CloudLinux PHP Selector only. For the rest Alt-PHP versions default module set is loaded (/opt/alt/phpXX/etc/php.d/default.ini). Described above is default behavior.

 

Note. If system default PHP version selected in cPanel MultiPHP Manager is not ea-php, then default module set is loaded for all Alt-PHP versions by default (/opt/alt/phpXX/etc/php.d/default.ini).

When "php.d.location = selector" option is in effect, modules selected via PHP Selector will be loaded for all alt-php versions.

 

This behavior is implemented in CageFS-6.1-10 and later.

 

In LVE Manager 1.0-9.40+ this behavior can be modified so that modules selected in CloudLinux PHP Selector would be loaded for all Alt-PHP versions (with CageFS enabled), which can be quite useful if you use  ‘per directory’ or ‘per domain’ Alt-PHP configuration and want to select modules using CloudLinux PHP Selector.

 

To modify it, create a file /etc/cl.selector/symlinks.rules (read-only for regular users) with the following content: php.d.location = selector

 

And run the command to apply changes:

 

/usr/bin/selectorctl --apply-symlinks-rules

 

To revert to the default behavior:

 

Delete /etc/cl.selector/symlinks.rules file.

Alternatively remove php.d.location option from the file.

Alternatively set default value for php.d.location option.

 

And run the command to apply changes:

 

/usr/bin/selectorctl --apply-symlinks-rules