Running PECL or PEAR on server with PHP Selector
PEAR and PECL are tools to easily install a PHP Extension or Application package from the command line.
How do I run these tools from the command line
In in order to run these tools, you must use the absolute path to the PEAR or PECL version that corresponds to your PHP version.
To determine the version of PHP you are running, log into your cPanel account. Select the cPanel -> Software -> Select PHP Version item. The version will be listed in the upper left drop down box.
The path to the binary packages would be: /opt/alt/php##/usr/bin
As an example, if you are using PHP 5.3, the path would be /opt/alt/php53/usr/bin
To run a PEAR command from the command line in this case, you would run:
<syntaxhighlight lang="bash"> /opt/alt/php53/usr/bin/pear </syntaxhighlight>
To run a PECL command from the command line in this case, you would run:
<syntaxhighlight lang="bash"> /opt/alt/php53/usr/bin/pecl </syntaxhighlight>
If you have any questions, please open a support ticket from your Client Area.