Re: Installing PEAR
| From: | Christian Weiske | Date: | Sun, 11 May 2008 16:32:31 +0000 |
| Subject: | Re: Installing PEAR | ||
| References: | 1 2 3 4 5 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-28909@lists.php.net to get a copy of this message | ||
Hello Osei,
> Are you implying that if I add the directory that I installed PEAR
> into to my php.ini's include_path, then I can have all of my virtual
> hosts access the one instance of PEAR?
Exactly.
> If so, I see where you are
> coming from. I tried that, but I am still having trouble verifying
> that PEAR is working.
>
> Is there are PEAR executable whose path I should include in the
> "include_path" directive? I currently have the directory that
> contains "Config.php", "pearfrontendweb.php", and "PEAR.php"
> added to
> my "include_path". Also, if it helps any, I get an error that
> "PEAR/Frontend.php" cannot find the PEAR class when I run
> "PEAR/pearfrontendweb.php" from a Web browser.
You should add the directory you installed PEAR into to your include
path. You get it via "pear config-get php_dir" on the command line.
Once this is done, pear should work. You can try this out by installing
any package and try to use it. Further, a simple test is to create a
file in one of your hosts that just does:
<?php
require_once 'PEAR.php';
?>
If that brings no error, your pear installation seems to be ok.
Please keep the discussion on-list.
--
Regards/Mit freundlichen Grüßen
Christian Weiske
Attachment: [application/pgp-signature] signature.asc
Attachment: [application/pgp-signature] signature.asc