Posts Tagged ‘PEAR’

Install PHP PEAR Packages/Components

Posted: May 2, 2011 in PHP
Tags: ,

Default installation of PEAR does not install all packages related to it’s reusable componenets. We need to explicitly install each component based on our need. For ex: To install Benchmarking package, go to command prompt and run following command …

pear install Benchmark-1.2.8

Similarly if you want to find about any package that you want to install you can use following command …

pear search Cache

Following are the more commands …

pear list – To see List of all installed packages

pear remote-list – To see all available packages on the channel server

pear list-files Benchmark – To see any Package’s installed files

pear info PEAR – To see any Package information

References – http://pear.php.net/manual/en/guide.users.commandline.packageinfo.php

Note – To run pear samples or components, set the pear installation path to include_path in PHP ini config file under the server that you use to run PHP (ex: Apache).

Advertisements

Install PHP PEAR on WAMP Server

Posted: March 20, 2011 in PHP, WAMP Server
Tags: ,

PEAR is a framework and distribution system for reusable PHP components.

 We won’t find PEAR files in WAMP 2.1a by default. So download go-pear.phar from http://pear.php.net/manual/en/installation.getting.php

Copy it to the “wamp\bin\php\php5.3.4” folder and go to cmd prompt (to wamp\bin\php\php5.3.4 folder) and install pear files by giving “php go-pear.phar”.

Now follow the steps from below link to configure PEAR files with PHP.

http://www.charlotteregionalstc.com/How_to_Install_PHP_PEAR_on_WampServer

Below is another link to refer for the configuration …

http://trac.symfony-project.org/wiki/HowToInstallPearOnWindowsWithWamp