Introduction
You can configure different alt-php versions for a user's directories as outlined here:
PHP Selector: Set different PHP versions per directory
The information below will allow you to configure the PHP extensions when using this method.
Procedure
- Log in as the root user via SSH or the WHM "Terminal."
- Create this file: /etc/cl.selector/symlinks.rules
touch /etc/cl.selector/symlinks.rules
- Add this code to the file:
php.d.location = selector
- Update the selector with this command:
/usr/bin/selectorctl --apply-symlinks-rules