PHP: manual install of pear

Sometimes, certain php apps require certain packages to be installed via pear.

Use yum if given a choice, ie “yum install php-pear”.

If yum is not available or due to whatever reason, We need to manually install a new version from pear website.

elinks -source | php

// follow thru the prompts. then configure the installation parameters

Below is a suggested file layout for your new PEAR installation.  To
change individual locations, type the number in front of the
directory.  Type 'all' to change all of them or simply press Enter to
accept these locations.

 1. Installation prefix ($prefix) : /usr/share
 2. Temporary files directory     : /tmp
 3. Binaries directory            : /usr/bin
 4. PHP code directory ($php_dir) : $prefix/pear
 5. Documentation base directory  : $php_dir/docs
 6. Data base directory           : $php_dir/data
 7. Tests base directory          : $php_dir/tests

Author: bpeh

Bernard Peh is a great passioner of web technologies and one of the co-founder of Website Design and Reviews. He works with experienced web designers and developers everyday, developing and designing commercial websites. He specialises mainly in SEO and PHP programming.