Introduction
PECL Modules can be installed using the command line if they are not available via the "Module Installer" interface of WHM.
Procedure
- Connect to the server using SSH as the root user.
- Each installed version of PHP uses its own PECL installer. You find them in the following path where "##" is the numbered version of PHP:
/opt/cpanel/ea-php##/root/usr/bin/pecl
- Run the installer with the "install" flag and the name of the module you wish to install:
/opt/cpanel/ea-php##/root/usr/bin/pecl install $module
- If you are using CloudLinux, rebuild CageFS so users can see the updated extensions:
cagefsctl --update
- You can confirm the installation by listing the PHP modules for the installed version:
/opt/cpanel/ea-php##/root/usr/bin/php -m | grep $module
Comments
0 comments
Article is closed for comments.