How can I find the path where a PEAR library is installed to correct it in php.ini?
Asked
Active
Viewed 8,200 times
4
-
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 09 '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 09 '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 09 '11 at 13:57
-
That package is the overall framework for php / pear, but not a specific pear library. – Caleb May 09 '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 09 '11 at 14:36
-
For those Googlers who land here because they need to know the path to Pear's PHP files: The best approach is to simply execute (on the command line): `pear config-get php_dir` – rinogo Nov 19 '14 at 21:21
1 Answers
2
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.
Caleb
- 11,583
- 4
- 35
- 49