[horde] Install Horde 5 fails with new server
Vilius Sumskas/LNK
vilius at lnk.lt
Fri Jul 12 04:13:49 UTC 2013
>On Thu, Jul 11, 2013 at 10:41 AM, Jan Schneider <jan at horde.org>
>wrote:
>
>> Zitat von Louis-Philippe Allard <lp.allard.1 at gmail.com>:
>>
>> On Thu, Jul 11, 2013 at 8:25 AM, Jan Schneider <jan at horde.org>
>wrote:
>>>
>>>
>>>> Zitat von Louis-Philippe Allard <lp.allard.1 at gmail.com>:
>>>>
>>>> Ok I spoke with the folks on freenode's php channel and according
>to them
>>>>
>>>>> my setup is just fine..
>>>>>
>>>>> My pear setup is ok with the include_path directive. They had
>me notice
>>>>> that perhaps the reason why webmail-install failed was because
>like it
>>>>> complained there are no Application.php files in the application
>path as
>>>>> provided during the horde role install script.
>>>>>
>>>>> As a matter of fact the entire app directory is extremely light
>and
>>>>> doest
>>>>> compare with my previous setup at all in terms of number of
>files.
>>>>>
>>>>> I know this is poor diagnosis but could it be possible that for
>whatever
>>>>> reason the initial pear command which retrieve the files fails
>and only
>>>>> retrieve a part of the whole thing?
>>>>>
>>>>> I see no communication error when I run the thing so I'd expect
>it to
>>>>> just
>>>>> work (tm)..
>>>>>
>>>>> In any case I'm not a pear expert but since there's a horde
>folder in my
>>>>> pear path I'd think the inckude_path is ok.
>>>>>
>>>>>
>>>> Don't remove context/quotes if you reply to an older mail. I have
>no idea
>>>> what your original problem was, and I don't have time to look it
>up in
>>>> the
>>>> archives.
>>>>
>>>> What you describe sounds like http://wiki.horde.org/FAQ/**
>>>> Admin/Troubleshoot#toc7<http:/**/wiki.horde.org/FAQ/Admin/**
>>>> Troubleshoot#toc7
><http://wiki.horde.org/FAQ/Admin/Troubleshoot#toc7>
>>>> >though.
>>>> --
>>>>
>>>>
>>>
>>> Sorry Jan for doing this. I sent the email from my android phone
>and
>>> had lost the initial email so I couldnt reply to the mailllist.
>Anyways,
>>> here's the last email.
>>> Like I said, the issue seems to me more on the horde setup side
>than my
>>> machine's config (php, pear, etc). In the email below I am
>recapping the
>>> steps one by one of what I did. Look toward the middle where it
>downloads
>>> webmail-5.1.0.tgz that is only 116KB. Is it supposed to be that
>small?
>>> I
>>>
>>
>> Yes.
>>
>> guess if its a downloading problem something is blocking or
>interrupting
>>> the download (firewall, ISP, local servers) or Im doing something
>stupid
>>> again.. ;)
>>>
>>> Sorry for the lengthy email.... I added what I believe should 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<http://pear.horde.org/Hor
>de_Role-1.0.1>
>>>>
>>>> pear uninstall horde/webmail
>>>> uninstall ok:
>channel://pear.horde.org/**webmail-5.1.0<http://pear.horde.org/webmai
>l-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<http://pear.horde.org/Hor
>de_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<http://pear.horde.org/webmai
>l-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
>>>>
>>>
>> And do you have that file in one of those paths? If not, it doesn't
>matter
>> what other people tell you, your include_path is still wrong, or
>your PEAR
>> installation is still broken.
>>
>> 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
>>>>
>>>> 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
>>>>
>>>>
>>
>> --
>> Jan Schneider
>> The Horde Project
>> http://www.horde.org/
>>
>>
>Someone on Linuxquestions.org had a brilliant idea to check where
>pear
>think he lives:
>
>pear config-show | grep 'PEAR directory'
>PEAR directory php_dir /usr/lib64/php
>
>Which is correct.
>
>Then that person suggested to find out where PHP looks for stuff:
>
>php -r 'echo get_include_path() . PHP_EOL;'
>.:/usr/lib64/php:/usr/include/php:/usr/lib64/php/PEAR
>
>Which includes the path(s) I entered in php.ini and ALSO the path
>where the
>Horde directory inside PEAR is located (/usr/lib64/php/Horde)
>
>Regarding the files that webmail-setup complains cannot be found
>(such as
>Application.php), there are Application.php files under:
>
>/usr/lib64/php/Horde/Autoloader/ClassPathMapper/Application.php
>/usr/lib64/php/Horde/Core/Ajax/Application.php
>/usr/lib64/php/Horde/Core/Auth/Application.php
>/usr/lib64/php/Horde/Registry/Application.php
>/usr/lib64/php/Cache/Application.php
>
>But none in the webroot (/var/www/htdocs/horde) I entered during the
>"pear
>run-scripts horde/horde_role" command. Which command or script
>exactly
>copies the files from the pear directory to the final webroot
>directory so
>I can actually use Horde thru apache??
Files under your webroot are installed when "horde", "imp" and other application PEAR packages are installed. These latter packages should be installed when you install "webmail" packages. Their are webmail dependencies, see https://github.com/horde/horde/blob/master/bundles/webmail/package.xml
If you are not seeing them pulled after the webmail automatically then either your PEAR is broken or misconfigured or installation doesn't satisfy one of the dependencies. You can install dependencies manually one by one (which is a pain) or try in case of broken PEAR try fixing it first.
--
Vilius
More information about the horde
mailing list