[horde] php/horde doesn't find pear

Jason M. Felice jfelice at cronosys.com
Tue Aug 17 08:40:14 PDT 2004


On Tue, Aug 17, 2004 at 03:16:44PM +0000, Juli?n Mu?oz wrote:
> 
> 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. ???

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 {} \;

> 
> 
> 
> 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

-- 
 Jason M. Felice
 Cronosys, LLC <http://www.cronosys.com/>
 216.221.4600 x302



More information about the horde mailing list