Running PECL or PEAR on server with PHP Selector

From Acenet Knowledgebase
Jump to: navigation, search
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

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:

/opt/alt/php53/usr/bin/pear

To run a PECL command from the command line in this case, you would run:

/opt/alt/php53/usr/bin/pecl


If you have any questions, please open a support ticket from your Client Area.