[horde] Install Horde 5 fails with new server

Louis-Philippe Allard lp.allard.1 at gmail.com
Tue Jul 16 00:57:02 UTC 2013


On Fri, Jul 12, 2013 at 4:26 PM, Vilius Sumskas/LNK <vilius at lnk.lt> wrote:

> >On Fri, Jul 12, 2013 at 12:13 AM, Vilius Sumskas/LNK <vilius at lnk.lt>
> >wrote:
> >
> >>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/Ho
> >r
> >>de_Role-1.0.1>
> >>>>>
> >>>>> pear uninstall horde/webmail
> >>>>> uninstall ok:
> >>channel://pear.horde.org/**webmail-5.1.0<http://pear.horde.org/webma
> >i
> >>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/Ho
> >r
> >>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/webma
> >i
> >>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.xm
> >l
> >
> >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
> >--
> >Horde mailing list
> >Frequently Asked Questions: http://horde.org/faq/
> >To unsubscribe, mail: horde-unsubscribe at lists.horde.org
> >
> >
> >
> >Ok I understand what you;'re saying.  However, since I want to use
> >the horde webmail framework which in the end I want to use at least
> >(but not limited to) the calendar, contacts, email, tickets, imp,
> >etc....  Are the commands indicated in the install readme on horde's
> >website not good??
> >
> >
> >pear channel-discover pear.horde.org
> >pear install horde/horde_role
> >pear run-scripts horde/horde_role
> >pear install -a -B horde/webmail
>
> The commands are OK. However they would only work if your PEAR is in good
> condition.
>
> >Then webmail-install which fails...
>
> It WILL always fail if "horde" package is not installed.
>
> >"automatically then either your PEAR is broken or misconfigured or
> >installation doesn't satisfy one of the dependencies"
> >
> >
> >If PEAR is broken, like I said, all of Slackware's users are in
> >trouble.  Misconfigured perhaps, but thats what I have been trying to
> >find for weeks now, on Horde's IRC channel, on Linuxquestions.org, on
> >this maillist..
>
> We cannot help if we cannot reproduce the problem. "webmail" package
> installs just fine for me under Fedora 19 and under RHEL 6.4. All I can say
> is that from what you've posted in your last messages about empty horde
> webroot folders almost none of the dependency packages got installed.
>
> Why is that you need to debug yourself. Have you tried increasing PHP log
> levels? Have you tried increasing PEAR's log verbose level? You've never
> showed us "pear list -a" results by the way.
>
> >Finally, if my setup doesn't satisfy one of the dependencies, some
> >more transparent error messages or perhaps a dependency checkup
> >script prior to installing horde would be in order?  Like a php
> >script or whatever...
>
> This is done automatically by PEAR (at least in most cases). package.xml
> file in my last link does exactly that!
>
> --
>    Vilius
> --
> Horde mailing list
> Frequently Asked Questions: http://horde.org/faq/
> To unsubscribe, mail: horde-unsubscribe at lists.horde.org
>

I take that slackware's pear or php setup is cooked out of the box.   Im
still at the same stage.  I ran "pear list -a" and got:

root at lhost2:~# pear list -a
Installed packages, channel __uri:
==================================
(no packages installed)

Installed packages, channel doc.php.net:
========================================
(no packages installed)

Installed packages, channel pear.horde.org:
===========================================
Package                   Version State
Horde_ActiveSync          2.5.5   stable
Horde_Alarm               2.0.4   stable
Horde_Argv                2.0.7   stable
Horde_Auth                2.0.4   stable
Horde_Autoloader          2.0.1   stable
Horde_Browser             2.0.3   stable
Horde_Cache               2.2.0   stable
Horde_Cli                 2.0.3   stable
Horde_Compress            2.0.3   stable
Horde_Compress_Fast       1.0.1   stable
Horde_Constraint          2.0.1   stable
Horde_Controller          2.0.1   stable
Horde_Core                2.6.1   stable
Horde_Crypt               2.2.1   stable
Horde_Crypt_Blowfish      1.0.2   stable
Horde_Css_Parser          1.0.0   stable
Horde_Data                2.0.4   stable
Horde_Date                2.0.6   stable
Horde_Date_Parser         2.0.2   stable
Horde_Dav                 1.0.0   stable
Horde_Db                  2.0.3   stable
Horde_Editor              2.0.3   stable
Horde_ElasticSearch       1.0.2   stable
Horde_Exception           2.0.3   stable
Horde_Feed                2.0.1   stable
Horde_Form                2.0.5   stable
Horde_Group               2.0.2   stable
Horde_HashTable           1.0.0   stable
Horde_History             2.1.0   stable
Horde_Http                2.0.3   stable
Horde_Icalendar           2.0.6   stable
Horde_Image               2.0.5   stable
Horde_Imap_Client         2.11.6  stable
Horde_Imsp                2.0.5   stable
Horde_Injector            2.0.2   stable
Horde_Itip                2.0.5   stable
Horde_Kolab_Format        2.0.3   stable
Horde_Kolab_Server        2.0.2   stable
Horde_Kolab_Session       2.0.1   stable
Horde_Kolab_Storage       2.0.4   stable
Horde_Ldap                2.0.2   stable
Horde_ListHeaders         1.0.1   stable
Horde_Lock                2.1.0   stable
Horde_Log                 2.0.1   stable
Horde_LoginTasks          2.0.2   stable
Horde_Mail                2.0.5   stable
Horde_Memcache            2.0.3   stable
Horde_Mime                2.2.2   stable
Horde_Mime_Viewer         2.0.5   stable
Horde_Mongo               1.0.1   stable
Horde_Nls                 2.0.3   stable
Horde_Notification        2.0.1   stable
Horde_Oauth               2.0.1   stable
Horde_Pdf                 2.0.3   stable
Horde_Perms               2.1.0   stable
Horde_Prefs               2.4.1   stable
Horde_Queue               1.0.0   stable
Horde_Rdo                 2.0.2   stable
Horde_Role                1.0.1   stable
Horde_Routes              2.0.2   stable
Horde_Rpc                 2.1.0   stable
Horde_Scribe              2.0.1   stable
Horde_Secret              2.0.2   stable
Horde_Serialize           2.0.2   stable
Horde_Service_Facebook    2.0.4   stable
Horde_Service_Twitter     2.1.1   stable
Horde_Service_Weather     2.0.5   stable
Horde_SessionHandler      2.2.0   stable
Horde_Share               2.0.4   stable
Horde_SpellChecker        2.1.0   stable
Horde_Stream              1.2.0   stable
Horde_Stream_Filter       2.0.1   stable
Horde_Stream_Wrapper      2.0.1   stable
Horde_Support             2.1.0   stable
Horde_SyncMl              2.0.3   stable
Horde_Template            2.0.1   stable
Horde_Text_Diff           2.0.2   stable
Horde_Text_Filter         2.1.3   stable
Horde_Text_Filter_Csstidy 2.0.1   stable
Horde_Text_Flowed         2.0.1   stable
Horde_Thrift              2.0.1   stable
Horde_Timezone            1.0.3   stable
Horde_Token               2.0.4   stable
Horde_Translation         2.0.1   stable
Horde_Tree                2.0.2   stable
Horde_Url                 2.2.0   stable
Horde_Util                2.3.0   stable
Horde_Vfs                 2.1.0   stable
Horde_View                2.0.2   stable
Horde_Xml_Element         2.0.1   stable
Horde_Xml_Wbxml           2.0.1   stable
content                   2.0.2   stable
gollem                    3.0.1   stable
horde                     5.1.1   stable
horde_lz4                 1.0.1   stable
imp                       6.1.2   stable
ingo                      3.1.1   stable
kronolith                 4.1.1   stable
mnemo                     4.1.0   stable
nag                       4.1.0   stable
timeobjects               2.0.4   stable
trean                     1.0.2   stable
turba                     4.1.0   stable
webmail                   5.1.0   stable

Installed packages, channel pear.php.net:
=========================================
Package          Version State
Archive_Tar      1.3.11  stable
Auth_SASL        1.0.6   stable
Cache            1.5.6   stable
Console_Color    1.0.3   stable
Console_Getopt   1.3.1   stable
Console_Table    1.1.5   stable
DB               1.7.14  stable
Date             1.4.7   stable
File_Find        1.3.2   stable
File_Fstab       2.0.3   stable
HTTP_Request     1.4.4   stable
MDB2             2.4.1   stable
Net_DNS2         1.3.1   stable
Net_FTP          1.3.7   stable
Net_IMAP         1.1.2   stable
Net_SMTP         1.6.2   stable
Net_Sieve        1.3.2   stable
Net_Socket       1.0.14  stable
Net_URL          1.0.15  stable
PEAR             1.9.4   stable
Services_Weather 1.4.7   stable
Structures_Graph 1.0.4   stable
Text_Figlet      1.0.2   stable
XML_SVG          1.1.0   stable
XML_Util         1.2.1   stable

Installed packages, channel pecl.php.net:
=========================================
Package  Version State
APC      3.1.13  beta
LZF      1.6.2   stable
geoip    1.0.8   stable
intl     3.0.0   stable
memcache 2.2.7   stable
mongo    1.4.1   stable
pam      1.0.3   stable
xdiff    1.4.1   stable

I tried increasing php's log verbosity to the max, I got exactly the same
output as the command "webmail-install"

[16-Jul-2013 00:44:07 UTC] PHP Warning:
require_once(/var/www/htdocs/horde/lib/Application.php): failed to open
stream: No such file or directory in /usr/bin/webmail-install on line 17
[16-Jul-2013 00:44:07 UTC] PHP Fatal error:  require_once(): Failed opening
required '/var/www/htdocs/horde/lib/Application.php'
(include_path='.:/usr/lib64/php:/usr/include/php:/usr/lib64/php/PEAR') in
/usr/bin/webmail-install on line 17

Finally I tried uninstalling everything from horde and your pear channel:

pear/Horde_ActiveSync not installed
pear/Horde_Alarm not installed
pear/Horde_Argv not installed
pear/Horde_Auth not installed
pear/Horde_Autoloader not installed
pear/Horde_Browser not installed
pear/Horde_Cache not installed
pear/Horde_Cli not installed
pear/Horde_Compress not installed
pear/Horde_Compress_Fast not installed
pear/Horde_Constraint not installed
pear/Horde_Controller not installed
pear/Horde_Core not installed
pear/Horde_Crypt not installed
pear/Horde_Crypt_Blowfish not installed
pear/Horde_Css_Parser not installed
pear/Horde_Data not installed
pear/Horde_Date not installed
pear/Horde_Date_Parser not installed

Then I ran "pear list -a" and STILL it said that

Installed packages, channel pear.horde.org:
===========================================
Package                   Version State
Horde_ActiveSync          2.5.5   stable
Horde_Alarm               2.0.4   stable
Horde_Argv                2.0.7   stable
Horde_Auth                2.0.4   stable
Horde_Autoloader          2.0.1   stable
Horde_Browser             2.0.3   stable
Horde_Cache               2.2.0   stable

Is my PEAR setup completely wasted because trying to uninstall the packages
it said that they were not installed, but when I list the packages they are
listed..  I also tried deleting horde's channel to come back more or less
to a stock slackware setup, it said"

Channel "pear.horde.org" has installed packages, cannot delete

Something' really weird.


More information about the horde mailing list