NetBSD-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: Horde Webmailer



On Fri, 04 Jan 2019 11:34:34 +0100
Niels Dettenbach <nd%syndicat.com@localhost> wrote:

> > So I will try an installation into a separate directory with pear and all
> > the horde/horde packages, and report back.
> good luck ß)

Ok. This is really a nightmare to set up. But installing into a separate
directory works a little bit better. The test.php page is functional now.
Unfortunately, I still cannot run webmail-install:

# /var/www/vhosts/www.my.domain/webmail/pear/webmail-install

Installing Horde Groupware Webmail Edition
PHP Fatal error:  Class 'Horde_Bundle' not found in /var/www/vhosts/www.my.domain/webmail/pear/webmail-install on line 29
[...]

There is no Horde_Bundle package, of course.

/var/www/vhosts/www.my.domain/webmail/pear/php was added to the include_path
in php.ini. And I also did

# export PHP_PEAR_SYSCONF_DIR=/var/www/vhosts/www.my.domain/webmail

in my shell, before running webmail-install. But the environment variable
seems to be ignored. I had to install and run the horde/horde_role script
globally, before webmail-install found its lib/Application.php.


The full installation process:

# pear config-create /var/www/vhosts/www.xyz.de/webmail /var/www/vhosts/www.xyz.de/webmail/pear.conf
# pear -c /var/www/vhosts/www.my.domain/webmail/pear.conf install pear

Add to include_path in php.ini:
  "/var/www/vhosts/www.my.domain/webmail/pear/php"

# /var/www/vhosts/www.my.domain/webmail/pear/pear -c /var/www/vhosts/www.my.domain/webmail/pear.conf channel-discover pear.horde.org
# /var/www/vhosts/www.my.domain/webmail/pear/pear -c /var/www/vhosts/www.my.domain/webmail/pear.conf channel-update pear.horde.org
# /var/www/vhosts/www.my.domain/webmail/pear/pear -c /var/www/vhosts/www.my.domain/webmail/pear.conf install horde/horde_role
# /var/www/vhosts/www.my.domain/webmail/pear/pear -c /var/www/vhosts/www.my.domain/webmail/pear.conf run-scripts horde/horde_role
Filesystem location for the base Horde application : /var/www/vhosts/www.my.domain/webmail

Full horde/horde installation:

# /var/www/vhosts/www.my.domain/webmail/pear/pear -c /var/www/vhosts/www.my.domain/webmail/pear.conf install -a -B horde/horde
WARNING: "pear/Console_Getopt" is deprecated in favor of "pear/Console_GetoptPlus"
Failed to download pecl/sasl within preferred state "stable", latest release is version 0.1.0, stability "alpha", use "channel://pecl.php.net/sasl-0.1.0" to install
Failed to download horde/Horde_Backup within preferred state "stable", latest release is version 1.0.0RC1, stability "beta", use "channel://pear.horde.org/Horde_Backup-1.0.0RC1" to install
Failed to download pecl/idn within preferred state "stable", latest release is version 0.2.0, stability "beta", use "channel://pecl.php.net/idn-0.2.0" to install
WARNING: "pear/HTTP_Request" is deprecated in favor of "pear/HTTP_Request2"
WARNING: "pear/DB" is deprecated in favor of "pear/MDB2"
Failed to download pear/SOAP within preferred state "stable", latest release is version 0.14.0, stability "beta", use "channel://pear.php.net/SOAP-0.14.0" to install
Failed to download pear/XML_Serializer within preferred state "stable", latest release is version 0.21.0, stability "beta", use "channel://pear.php.net/XML_Serializer-0.21.0" to install
Failed to download pear/Console_Color2 within preferred state "stable", latest release is version 0.1.2, stability "alpha", use "channel://pear.php.net/Console_Color2-0.1.2" to install
Unknown remote channel: pear.nrk.io
WARNING: "pear/HTTP_Request" is deprecated in favor of "pear/HTTP_Request2"
WARNING: "pecl/mongo" is deprecated in favor of "channel:///mongodb"
Failed to download pear/Numbers_Words within preferred state "stable", latest release is version 0.18.2, stability "beta", use "channel://pear.php.net/Numbers_Words-0.18.2" to install
Failed to download pear/Image_Text within preferred state "stable", latest release is version 0.7.0, stability "beta", use "channel://pear.php.net/Image_Text-0.7.0" to install
WARNING: "pear/Auth_SASL" is deprecated in favor of "pear/Auth_SASL2"
WARNING: "pear/Net_URL" is deprecated in favor of "pear/Net_URL2"
WARNING: "pear/HTTP_Request" is deprecated in favor of "pear/HTTP_Request2"
WARNING: "pear/Auth_SASL" is deprecated in favor of "pear/Auth_SASL2"
horde/Horde_Auth can optionally use package "pecl/sasl"
horde/Horde_Auth can optionally use PHP extension "ftp"
horde/Horde_Core can optionally use package "horde/Horde_Backup" (version >= 1.0.0, version <= 2.0.0alpha1, excluded versions: 2.0.0alpha1)
horde/Horde_Core can optionally use PHP extension "sockets"
horde/Horde_Date can optionally use PHP extension "calendar"
horde/Horde_Mime can optionally use package "pecl/idn"
horde/Horde_Rpc can optionally use PHP extension "soap"
horde/Horde_Rpc can optionally use PHP extension "xmlrpc"
horde/Horde_Serialize can optionally use PHP extension "bz2"
horde/Horde_Serialize can optionally use PHP extension "wddx"
horde/Horde_Text_Filter can optionally use PHP extension "tidy"
horde/Horde_Util can optionally use PHP extension "intl"
horde/Horde_Vfs can optionally use PHP extension "ftp"
pear/Services_Weather can optionally use package "pear/SOAP" (version >= 0.7.5)
pear/Services_Weather can optionally use package "pear/XML_Serializer" (version >= 0.8)
horde/Horde_Db can optionally use PHP extension "oci8"
horde/Horde_Db can optionally use PHP extension "PDO"
pear/Console_Table can optionally use package "pear/Console_Color2" (version >= 0.1.2)
horde/Horde_Imap_Client can optionally use PHP extension "intl"
horde/Horde_Cache can optionally use PHP extension "eaccelerator" (version >= 0.9.5, version <= 0.9.6, excluded versions: 0.9.6)
horde/Horde_Cache can optionally use PHP extension "xcache"
horde/Horde_HashTable can optionally use package "channel://pear.nrk.io/Predis" (version >= 0.8.3)
horde/Horde_Kolab_Storage can optionally use PHP extension "imap"
pear/Text_CAPTCHA can optionally use package "pear/Numbers_Words"
pear/Text_CAPTCHA can optionally use package "pear/Image_Text" (version >= 0.7.0)
pecl/pecl_http requires PHP (version >= 7.0.0), installed version is 5.6.36
horde/Horde_Idna can optionally use PHP extension "intl"
pecl/xdiff requires PHP (version >= 7.0.0), installed version is 5.6.36
pear/Net_FTP requires PHP extension "ftp"
[...]

Installing skipped beta- and alpha-versions:

# /var/www/vhosts/www.my.domain/webmail/pear/pecl -c /var/www/vhosts/www.my.domain/webmail/pear.conf install -a -B channel://pecl.php.net/sasl-0.1.0
# /var/www/vhosts/www.my.domain/webmail/pear/pear -c /var/www/vhosts/www.my.domain/webmail/pear.conf install -a -B channel://pear.horde.org/Horde_Backup-1.0.0RC1
horde/horde_core requires package "horde/Horde_Backup" (version >= 1.0.0, version <= 2.0.0alpha1, excluded versions: 2.0.0alpha1), downloaded version is 1.0.0RC1
horde/Horde_Backup cannot be installed, conflicts with installed packages
# /var/www/vhosts/www.my.domain/webmail/pear/pear -c /var/www/vhosts/www.my.domain/webmail/pear.conf install -a -B -n channel://pear.horde.org/Horde_Backup-1.0.0RC1
# /var/www/vhosts/www.my.domain/webmail/pear/pear -c /var/www/vhosts/www.my.domain/webmail/pear.conf install -a -B channel://pecl.php.net/idn-0.2.0
# /var/www/vhosts/www.my.domain/webmail/pear/pear -c /var/www/vhosts/www.my.domain/webmail/pear.conf install -a -B channel://pear.php.net/SOAP-0.14.0
# /var/www/vhosts/www.my.domain/webmail/pear/pear -c /var/www/vhosts/www.my.domain/webmail/pear.conf install -a -B channel://pear.php.net/XML_Serializer-0.21.0
# /var/www/vhosts/www.my.domain/webmail/pear/pear -c /var/www/vhosts/www.my.domain/webmail/pear.conf install -a -B channel://pear.php.net/Console_Color2-0.1.2
# /var/www/vhosts/www.my.domain/webmail/pear/pear -c /var/www/vhosts/www.my.domain/webmail/pear.conf install -a -B channel://pear.php.net/Numbers_Words-0.18.2
# /var/www/vhosts/www.my.domain/webmail/pear/pear -c /var/www/vhosts/www.my.domain/webmail/pear.conf install -a -B channel://pear.php.net/Image_Text-0.7.0

At this point webmail/test.php works. Now installing the webmail package:

# /var/www/vhosts/www.my.domain/webmail/pear/pear -c /var/www/vhosts/www.my.domain/webmail/pear.conf install -a -B horde/webmail
Unknown remote channel: phpseclib.sourceforge.net
WARNING: "pear/Net_Sieve" is deprecated in favor of "horde/Horde_ManageSieve"
Failed to download pear/Date_Holidays within preferred state "stable", latest release is version 0.21.8, stability "alpha", use "channel://pear.php.net/Date_Holidays-0.21.8" to install
WARNING: "pear/Auth_SASL" is deprecated in favor of "pear/Auth_SASL2"
horde/imp can optionally use package "channel://phpseclib.sourceforge.net/File_ASN1"
horde/kronolith can optionally use package "pear/Date_Holidays" (version >= 0.21.0, version <= 1.0.0alpha1, excluded versions: 1.0.0alpha1)
[...]

Finally fixing ownership for Apache and trying to run webmail-install:

# export PHP_PEAR_SYSCONF_DIR=/var/www/vhosts/www.my.domain/webmail
# chown -R apache:_httpd /var/www/vhosts/www.my.domain/webmail
# /var/www/vhosts/www.my.domain/webmail/pear/webmail-install

Which fails because of missing Horde_Bundle class... :|

-- 
Frank Wille


Home | Main Index | Thread Index | Old Index