Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

How can I find the path where a PEAR library is installed to correct it in php.ini?

share|improve this question
How did you install the library? From an Ubuntu package or the PEAR installer or manually? Did you try doing a locate -i filename.php where filename is the name of the package? – Caleb May 9 '11 at 11:46
I installed it by typing apt-get install php-pear. I installed docs also through synaptic, but library doesn't seem to in the same directory. – arunas_t May 9 '11 at 13:50
I found it using locate, thanks, So write it as an answer, notcomment and I will accept it. – arunas_t May 9 '11 at 13:57
That package is the overall framework for php / pear, but not a specific pear library. – Caleb May 9 '11 at 13:57
Yes, I wasn't clear enough - I looked for a place where PEAR packages are installed. I found that. Thanks. – arunas_t May 9 '11 at 14:36
up vote 2 down vote accepted

You can always find where files are on your system using the locate database like this: locate -i filename. However in the case of packages, sometimes browsing is more useful. Since you installed the package using apt-get, you can get a listing of all the files owned by the package and where they went on the system like this:

dpkg -L php-pear

However that is just the overall pear package system and the wires that connect it to php, I don't think that includes the entire archive of PEAR projects. It is likely that you need to install specific PEAR packages fro each things you need to do. These will either be in the package repository, or you will need to use the pear installer to fetch them.

share|improve this answer
Thanks, brother. – arunas_t May 9 '11 at 14:58

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.