[horde] php/horde doesn't find pear

Julián Muñoz jmunoz at softhome.net
Tue Aug 17 14:19:44 PDT 2004



About my problem:

> > I've just installed php 4.3.8 and Horde 2.2.5.
> >
> > It is not able to find pear, even if I configure well
> > /usr/local/php4/lib/php.ini with include_path=/usr/local/php4/lib/php.


Jason M. Felice said:

> php.ini is read by the webserver before it changes to the web user
> (nobody or www-data or whatever it is in your environment).  The other
> files should be readable by everyone so the webserver user can read it,
> like so:
>
> # find /usr/local/php4/lib/php -type d -exec chmod 755 {} \;
> # find /usr/local/php4/lib/php -type f -exec chmod +r {} \;

Ok !! Doing 644 instead of +r is better (+r in my case doesn't set the
group and others). And this works now !!

Many thanks !!

Thanks also to Andrew Coleman, Daniel Vandal, and Mike Bydalek.





> ----- Original Message -----
> From: "Julián Muñoz" <jmunoz at softhome.net>
> To: <horde at lists.horde.org>
> Sent: Tuesday, August 17, 2004 11:16 AM
> Subject: [horde] php/horde doesn't find pear
>
>
> >
> > Hello:
> >
> > I've just installed php 4.3.8 and Horde 2.2.5.
> >
> > It is not able to find pear, even if I configure well
> > /usr/local/php4/lib/php.ini with include_path=/usr/local/php4/lib/php.
> >
> > /usr/local/php4/ is where I have installed php, and lib/php (relative to
> > the last one) is where php installs pear by default.
> >
> > If installed the packages following the documentation (calling "pear
> > install <package>", with for example "./pear install Mail_Mime", from the
> > /usr/local/php4/bin/ directory), and everything seems to be ok (the binary
> > downloaded things and installed them).
> >
> >
> > But opening /horde/test.php still says:
> >
> > (...)
> > PEAR
> >
> >     * PEAR - No
> >     * Check your PHP include_path setting to make sure it has the PEAR
> > library directory.
> >     * Recent PEAR - No
> >     * Mail - No
> >     * Log - No
> >     * DB - No
> >     * Net_Socket - No
> >     * Date - No
> >     * HTML_Common/HTML_Select - No
> >
> >
> > And opening /horde/imp/ :
> >
> >
> > Warning: main(PEAR.php): failed to open stream: No such file or directory
> > in /usr/local/share/horde-2.2.5/lib/Registry.php on line 13
> >
> > Fatal error: main(): Failed opening required 'PEAR.php'
> > (include_path='/usr/local/php4/lib/php') in
> > /usr/local/share/horde-2.2.5/lib/Registry.php on line 13
> >
> >
> > Where is the problem ??
> >
> > Could it be related with permissions, as I see that all the directories
> > from /usr/local/php4 have the "drwx--S---" permission, with owners
> > "root.staff", and for example I have
> > -rw-------    1 root     staff       30154 Aug 16 13:30 PEAR.php
> > /usr/local/php4/lib/php
> >
> > But it should not, because the file /usr/local/php4/lib/php.ini is found
> > and interpreted (when I change include_path it is reflected on the error
> > message), so PEAR.php should be found also. ???
> >
> >
> >
> > Many thanks,
> >
> > Julian
> >
> >
> >
> >
> > --
> > Horde mailing list - Join the hunt: http://horde.org/bounties/#horde
> > Frequently Asked Questions: http://horde.org/faq/
> > To unsubscribe, mail: horde-unsubscribe at lists.horde.org
> >
>
>

-- 
-.-

¡ Tu email nombre at apellido.name en www.namelia.net !




More information about the horde mailing list