[horde] Install Horde 5 fails with new server

Louis-Philippe Allard lp.allard.1 at gmail.com
Tue Jul 9 01:01:28 UTC 2013


On Thu, Jul 4, 2013 at 5:23 PM, Louis-Philippe Allard <lp.allard.1 at gmail.com
> wrote:

> On Thu, Jul 4, 2013 at 7:47 AM, Jan Schneider <jan at horde.org> wrote:
>
>>
>> Zitat von Louis-Philippe Allard <lp.allard.1 at gmail.com>:
>>
>>  All steps and pre-requisites were successfully installed thanks to the
>>> PHP
>>> IRC folks and their knowledge!  Now I am trying to install Horde Webmail
>>> and it fails.
>>>
>>> I have followed the steps provided at
>>> http://www.horde.org/apps/**webmail/docs/INSTALL<http://www.horde.org/apps/webmail/docs/INSTALL>to the letter with
>>>
>>> pear channel-discover pear.horde.org
>>> pear install horde/horde_role
>>> pear run-scripts horde/horde_role
>>> pear install -a -B horde/webmail
>>>
>>> but when I went to run the command webmail-install I got:
>>>
>>> PHP Warning:  require_once(PEAR/Config.php): failed to open stream: No
>>> such
>>> file or directory in /usr/bin/webmail-install on line 15
>>>
>>> Warning: require_once(PEAR/Config.php): failed to open stream: No such
>>> file
>>> or directory in /usr/bin/webmail-install on line 15
>>> PHP Fatal error:  require_once(): Failed opening required
>>> 'PEAR/Config.php'
>>> (include_path='.:/php/**includes:/usr/lib/php') in
>>> /usr/bin/webmail-install
>>> on line 15
>>>
>>
>> You don't have PEAR in your include_path.
>>
>>  Fatal error: require_once(): Failed opening required 'PEAR/Config.php'
>>> (include_path='.:/php/**includes:/usr/lib/php') in
>>> /usr/bin/webmail-install
>>> on line 15
>>>
>>> So whats the deal with it?  I've searched the maillist and found a
>>> similar
>>> situation, the person was adviced to restart fresh which I did but got to
>>> the same point...
>>>
>>> Can someone provide guidance to get this running???
>>>
>>> Thanks!!
>>>
>>
>>
>>
> Sorry for the lengthy email....  I added what I believe shopuld be in the
> include_path of php.ini as suggested, but its not working.  I ran:
>
> restarted apache/php with the modified php.ini (include_path=
> ".:/php/includes:/usr/lib/php:/usr/lib64/php/PEAR"
>
> pear uninstall horde/horde_role
> uninstall ok: channel://pear.horde.org/Horde_Role-1.0.1
>
> pear uninstall horde/webmail
> uninstall ok: channel://pear.horde.org/webmail-5.1.0
>
> pear clear-cache
> reading directory /tmp/pear/cache
> 130 cache entries cleared
>
> pear channel-discover pear.horde.org
> Channel "pear.horde.org" is already initialized
>
> pear install horde/horde_role
> downloading Horde_Role-1.0.1.tgz ...
> Starting to download Horde_Role-1.0.1.tgz (10,977 bytes)
> .....done: 10,977 bytes
> install ok: channel://pear.horde.org/Horde_Role-1.0.1
> horde/Horde_Role has post-install scripts:
> /usr/lib64/php/PEAR/Installer/Role/Horde/Role.php
> Horde_Role: Use "pear run-scripts horde/Horde_Role" to finish setup.
> DO NOT RUN SCRIPTS FROM UNTRUSTED SOURCES
>
> pear run-scripts horde/horde_role
> Including external post-installation script
> "/usr/lib64/php/PEAR/Installer/Role/Horde/Role.php" - any errors are in
> this script
> Inclusion succeeded
> running post-install script "Horde_Role_postinstall->init()"
> init succeeded
> Filesystem location for the base Horde application : /var/www/htdocs/horde
> Configuration successfully saved to PEAR config.
> Install scripts complete
>
> pear install -a -B horde/webmail
> downloading webmail-5.1.0.tgz ...
> Starting to download webmail-5.1.0.tgz (116,522 bytes)
> .........................done: 116,522 bytes
> install ok: channel://pear.horde.org/webmail-5.1.0
>
> webmail-install
> PHP Warning:  require_once(PEAR/Config.php): failed to open stream: No
> such file or directory in /usr/bin/webmail-install on line 15
>
> Warning: require_once(PEAR/Config.php): failed to open stream: No such
> file or directory in /usr/bin/webmail-install on line 15
> PHP Fatal error:  require_once(): Failed opening required
> 'PEAR/Config.php'
> (include_path='.:/php/includes:/usr/lib/php:/usr/lib64/php/PEAR') in
> /usr/bin/webmail-install on line 15
>
> Fatal error: require_once(): Failed opening required 'PEAR/Config.php'
> (include_path='.:/php/includes:/usr/lib/php:/usr/lib64/php/PEAR') in
> /usr/bin/webmail-install on line 15
>
> Ralph, some answers for you (and the list):
>
> Which OS?
> Slackware64-14.0 (upgraded to latest packages)
>
> Which PHP version?
> root at lhost2:~# php -v
> PHP 5.4.16 (cli) (built: Jun  8 2013 18:06:14)
> Copyright (c) 1997-2013 The PHP Group
> Zend Engine v2.4.0, Copyright (c) 1998-2013 Zend Technologies
>
> Can you show the include path from /etc/php/cli/php.ini ?
> root at lhost2:~# cat /etc/httpd/php.ini | grep include_path
> include_path = ".:/php/includes:/usr/lib/php:/usr/lib64/php/PEAR"
>
> Which PEAR version?
> root at lhost2:~# pear info pear
> About pear.php.net/PEAR-1.9.4
> Release Date           2011-07-06 22:11:24
> Release Version        1.9.4 (stable)
> API Version            1.9.4 (stable)
>
> What happens when you run "pear upgrade pear" first?
> root at lhost2:~# pear upgrade pear
> Nothing to upgrade
>

Im sorry to be back to this topic but I really cant figure it out... Im not
a pear expert (although I love them ;) and I have tried everything I could
think of..

My include_path directive in php.ini contains as of now:

include_path = ".:/usr/lib64/php:/usr/include/php:/usr/lib64/php/PEAR"

I have searched the entire filesystem for clues as to why my PEAR is NOT in
include_path.. SHouldn't be the last one with "/usr/lib64/php/PEAR" ??
php.ini's comments says:

PHP's default setting for include_path is ".;/path/to/php/pear"

Thats what I have now and its not working. If the above is not right,
where's the damn thing on Slackware?

Any experts cares to help a noob??
Thanks


More information about the horde mailing list