Pecl Install

PHP PECL is a repository for PHP extensions. PECL can be used to install php extensions directly. As an example, PECL is used to install APC on this link:APC Install using PECL.

First, you need to make sure PEAR is installed. If not, use apt-get on Ubuntu and yum on CentOS/Fedora/RedHat

From linux shell prompt enter following for Ubuntu:

bash# sudo apt-get install php-pear

For CentOS, Fedora or RedHat:

bash# yum install php-pear

Just confirm “y” and enter when prompted.

Secondly to use PECL, install the php5-dev package as follows depending on what OS you are:

On Ubuntu, you would install PECL as:


bash# sudo apt-get install php5-dev

On CentOS or Fedora, you would use following to install PECL:


bash# yum install php5-dev

PECL extensions are compiled into PHP and therefore requires php-dev install. When upgrading PHP we need to reinstall the PECL extension.

Note: It is possible, you may have to exclude “php*” in yum.conf usually present in /etc/yum.conf for php extensions to install successfully.

Comments on this entry are closed.

css.php