RE: [PEAR] Installation Woes
| From: | Erich Beyrent | Date: | Thu, 14 Oct 2004 02:46:23 +0000 |
| Subject: | RE: [PEAR] Installation Woes | ||
| References: | 1 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-14906@lists.php.net to get a copy of this message | ||
> I am attempting a manual installation of PEAR and several modules. I
am
> running a test version of a website on an XP box running Apache. The
> live site is on a hosted Apache environment, which I have shell and
FTP
> access to. PEAR is not currently installed, nor do I have access to
> php.ini.
>
> So, I created the following dir structure:
>
> /public_html
> /php
> /includes
> /PEAR
> /DB
> /Info
> /HTTP
> /Header
> /PEAR
>
> I then made a test script which lives in the php directory:
>
> <?php
>
> ini_set('include_path', '../php/includes/PEAR/');
>
> require_once 'Info/Info.php';
> ?>
>
> This script dies with the following error:
>
> Warning: main(PEAR.php): failed to open stream: No such file or
> directory in
> d:\devel\html\resortscopev2\php\includes\PEAR\PEAR\Remote.php on line
21
>
> Fatal error: main(): Failed opening required 'PEAR.php'
> (include_path='../php/includes/PEAR/') in
> d:\devel\html\resortscopev2\php\includes\PEAR\PEAR\Remote.php on line
21
>
>
> So I am guessing that the problem is that my ini_set is not global to
> all the PEAR modules. Like I said, I cannot modify the php.ini file,
so
> whatever I do, it has to be manual.
>
> How can I set my PEAR directories?
Use the absolute path.
Cheers,
Rob.
Hi Rob,
I tried that:
$there = realpath("./includes/PEAR/");
//ini_set('include_path', './includes/PEAR/');
ini_set('include_path', $there);
require_once 'Info/Info.php';
This results in the following error:
Warning: main(PEAR.php): failed to open stream: No such file or
directory in d:\devel\html\site \php\includes\PEAR\PEAR\Remote.php on
line 21
Fatal error: main(): Failed opening required 'PEAR.php'
(include_path='d:\devel\html\site\php\includes\PEAR') in
d:\devel\html\site\php\includes\PEAR\PEAR\Remote.php on line 21
What have I done wrong?
-Erich-