Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'Link the PHP library location to help installer scripts' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Link the PHP library location to help installer scripts
Authored by: Greedo on Oct 08, '03 12:45:11PM

DB.php is part of PEAR, and is "usually" installed into /usr/local/lib/php.

Apple seems to have put this stuff into /System/Library/PHP.

You can change the location where PHP looks for this by making a change to your php.ini file. Simply uncomment the line that sets the include_path directive and set it to something like:

    include_path = ".:/System/Library/PHP"

Although, if you are using the PHP that comes with OS X (i.e. not compiling your own, it looks like OS X doesn't ship with a default php.ini file. You can create one that only includes that one line above, and save it as /usr/lib/php.ini.

If you are compiling your own version of PHP, then use the tags --with-config-file-path=/usr/lib/php --with-pear-dir=/System/Library/PHP, or change those paths to whatever you want.



[ Reply to This | # ]
Link the PHP library location to help installer scripts
Authored by: Alrescha on Oct 10, '03 10:48:23AM

Having used commercial unix systems for more than a decade, I'd be surprised and displeased if I bought a system that had *anything* in /usr/local - that directory is mine, not the vendor/suppliers.

A.



[ Reply to This | # ]