Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

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

1 Answer 1

up vote 1 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
1  
Thanks, brother. –  arunas_t May 9 '11 at 14:58

Your Answer

 
discard

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.