Re: php/horde doesn't find pear
| From: | Julián Muñoz | Date: | Tue, 17 Aug 2004 21:27:37 +0000 |
| Subject: | Re: php/horde doesn't find pear | ||
| References: | 1 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-14154@lists.php.net to get a copy of this message | ||
Answering my own question (solved by someone else on another
mail-list):
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 -type d -exec chmod 755 {} \;
# find /usr/local/php4 -type f -exec chmod 644 {} \;
On Tue, 17 Aug 2004, 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. ???
>
>
>
> Many thanks,
>
> Julian
>
>
--
-.-
http://www.namelia.net/
¡ Tu email nombre@apellido.name en www.namelia.net !