Steps to install PEAR modules with command line


Staff member
You can install cpanel interface to install PEAR packages, but if interface does not provide all the options then you have to use command-line.

You can install PEAR modules with command line, you have to login as user.

After you logged in as user, you have to use the full path of cpanel PEAR package. But if you have CloudLinux then you can use CloudLinux ALT-PHP path.

/opt/cpanel/ea-php70/root/usr/bin/pear install $MODULE_NAME
/opt/cloudlinux/alt-php70/root/usr/bin/pear install $MODULE_NAME
Here we are using PHP 70 for PEAR modules.