Re: optimal PEAR installation directory
| From: | Brett Bieber | Date: | Sun, 15 Jun 2008 16:20:09 +0000 |
| Subject: | Re: optimal PEAR installation directory | ||
| References: | 1 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-29013@lists.php.net to get a copy of this message | ||
Hey Stephen,
On Sat, Jun 14, 2008 at 4:03 PM, Stephen Dewey
<stepheneliotdewey@gmail.com> wrote:
> So I'm just wondering what the generally-recommended location for PEAR
> installation is. Clearly it's contemplated that it might be in a web
> directory since go-pear can be run from the web, but I'm wondering
> about non-web locations
I normally configure pear to place the package files within
/usr/local/lib/php or /usr/share/pear
By adding this path to the php.ini include_path, you can make this
pear installation available without any additional configuration for
each website.
Individual websites can maintain their own PEAR installations if they
need additional packages not in the system-wide pear installation, or
a different version of a package in the system-wide pear installation.
The individual websites would just need to alter their include path by
using <?php set_include_path(...);
The manual has more details on configuring a PEAR installation for
individual sites in a shared-hosting environment -
http://pear.php.net/manual/en/installation.shared.php
Hope that helps!
--
Brett Bieber
http://saltybeagle.com/