PDA

View Full Version : troubleshooting HORDE installation


Ovidiu
23rd March 2006, 21:29
I am trying to install horde from tar.gz, but I stumbled upons these probs (results from the test.php)

# Mcrypt Support: No
Mcrypt is a general-purpose cryptography library which is broader and significantly more efficient (FASTER!) than PHP's own cryptographic code and will provider faster logins.
# MIME Magic Support (fileinfo): No
The fileinfo PECL module or the mime_magic PHP extension (see below) will most likely provide faster MIME Magic lookups than the built-in Horde PHP magic code. See horde/docs/INSTALL for information on how to install PECL/PHP extensions.
# memcached Support (memcache): No
The memcache PECL module is needed only if you are using the memcached SessionHandler. See horde/docs/INSTALL for information on how to install PECL/PHP extensions.

how can I fix this?

till
23rd March 2006, 21:31
Where do you install horde? In a website or in the ISPConfig webserver on port 81?

Ovidiu
23rd March 2006, 21:54
I do install in a normal website, using the usual apache2 (from the debian install guide provided on howtoforge) not in ispcfg webserver..

and btw I just locked myself out: after installing the user is horde and the password is horde, I went to configuration (webbased) and selected authentication method: horde.... if I go to horde and try to login wiht horde/horde I get this:


Ein schwerer Fehler ist aufgetreten:
horde does not provide an authenticate() method.
Details wurden für den Administrator mitgeloggt.

till
23rd March 2006, 22:03
First. The modules that you listed are not nescessary, they where only enhancements for your horde installation.

The php mcrypt module is available in most linux distributions. If you use debian, you can search for it with:

apt-cache search mcrypt

The mime magic module might be also available as php module from your linux distribution.

The memcache module might be installable with the pear installer that comes with PHP, but i never tested it.

Ovidiu
23rd March 2006, 22:11
apt-get install php4-mcrypt

gave me already installed, so why is it still listed as missing?

pecl install memcache

went strait through but still in the list I posted and finally

apt-cache search mime magic

gives me:

libfile-type-perl - determine file type using magic structure
libapache-mod-php4 - server-side, HTML-embedded scripting language (apache 1.3 module)
libapache-mod-php5 - server-side, HTML-embedded scripting language (apache 1.3 module)
libapache2-mod-php4 - server-side, HTML-embedded scripting language (apache 2.0 module)
libapache2-mod-php5 - server-side, HTML-embedded scripting language (apache 2.0 module)
libfile-mmagic-perl - Perl module to guess file type
php4-cgi - server-side, HTML-embedded scripting language (CGI binary)
php4-cli - command-line interpreter for the php4 scripting language
php5-cgi - server-side, HTML-embedded scripting language (CGI binary)
php5-cli - command-line interpreter for the php5 scripting language

and the relevant ones (in my opinion) give me this

apt-get install libfile-type-perl libapache2-mod-php4 libfile-mmagic-perl
Paketlisten werden gelesen... Fertig
Abhängigkeitsbaum wird aufgebaut... Fertig
libfile-type-perl ist schon die neueste Version.
libapache2-mod-php4 ist schon die neueste Version.
libfile-mmagic-perl ist schon die neueste Version.
0 aktualisiert, 0 neu installiert, 0 zu entfernen und 0 nicht aktualisiert.

till
23rd March 2006, 22:40
You can try to install mime magic with pear.
Dont forget to restart your webserver afterwards.

Ovidiu
23rd March 2006, 23:49
ok, I got some steps closer, no I am stuck here while configuring:

whatever change I make that involves some DB I get this error:

Ein schwerer Fehler ist aufgetreten:
DB Error: extension not found

[Zeile 1615 von /var/www/webmail/web/horde/lib/Horde/DataTree/sql.php]

to be more precise, now I cannot even get to the login screen of horde:

Ein schwerer Fehler ist aufgetreten:
DB Error: extension not found

[Zeile 388 von /var/www/webmail/web/horde/lib/Horde/Prefs/sql.php]
Details (auch in Hordes Logdatei):

object(db_error)(8) {
["error_message_prefix"]=>
string(0) ""
["mode"]=>
int(1)
["level"]=>
int(1024)
["code"]=>
int(-25)
["message"]=>
string(29) "DB Error: extension not found"
["userinfo"]=>
string(41) " [DB Error: extension not found] ** Array"
["backtrace"]=>
array(12) {
[0]=>
array(6) {
["file"]=>
string(21) "/usr/share/php/DB.php"
["line"]=>
int(888)
["function"]=>
string(10) "pear_error"
["class"]=>
string(8) "db_error"
["type"]=>
string(2) "->"
["args"]=>
array(5) {
[0]=>
string(29) "DB Error: extension not found"
[1]=>
int(-25)
[2]=>
int(1)
[3]=>
int(1024)
[4]=>
string(32) " [DB Error: extension not found]"
}
}
[1]=>
array(6) {
["file"]=>
string(23) "/usr/share/php/PEAR.php"
["line"]=>
int(563)
["function"]=>
string(8) "db_error"
["class"]=>
string(8) "db_error"
["type"]=>
string(2) "->"
["args"]=>
array(4) {
[0]=>
int(-25)
[1]=>
int(1)
[2]=>
int(1024)
[3]=>
string(32) " [DB Error: extension not found]"
}
}
[2]=>
array(6) {
["file"]=>
string(28) "/usr/share/php/DB/common.php"
["line"]=>
int(1849)
["function"]=>
string(10) "raiseerror"
["class"]=>
string(4) "pear"
["type"]=>
string(2) "::"
["args"]=>
array(7) {
[0]=>
NULL
[1]=>
int(-25)
[2]=>
NULL
[3]=>
NULL
[4]=>
string(32) " [DB Error: extension not found]"
[5]=>
string(8) "DB_Error"
[6]=>
bool(true)
}
}
[3]=>
array(6) {
["file"]=>
string(28) "/usr/share/php/DB/mysqli.php"
["line"]=>
int(281)
["function"]=>
string(10) "raiseerror"
["class"]=>
string(9) "db_mysqli"
["type"]=>
string(2) "->"
["args"]=>
array(1) {
[0]=>
int(-25)
}
}
[4]=>
array(6) {
["file"]=>
string(21) "/usr/share/php/DB.php"
["line"]=>
int(556)
["function"]=>
string(7) "connect"
["class"]=>
string(9) "db_mysqli"
["type"]=>
string(2) "->"
["args"]=>
array(2) {
[0]=>



thats only an excerpt but I think its enough. I use Debian 3.1 with the install guide provided by howtoforge, using php4

till
24th March 2006, 08:32
Check with phpinfo() if the PHP mysqli extension is installed.

Ovidiu
24th March 2006, 08:39
thx, you can view the result here: http://mail.web-designerz.de/horde/testt.php

unfortunately I cannot handle that question you had - there is nothing about mysqli... I googled around last night and all similar posts on the net were dealing with php5 - if I do apt-cache search mysqli I only get 2-3 packages, if I try and install one of them apt-get will also install php5 which I don't want...

any suggestions?

till
24th March 2006, 08:43
As far as i know there is a php 4.1 mysqli extension in available in ext/pear.

By the way. You are getting now these errors why I never used the horde framework for programming. ... Sorry, i know this dont help you with your problem, it's just a personal comment :)

Ovidiu
24th March 2006, 09:06
thx, I do not usually take personal offense when searching for help :-)

I tried this but need help understanding:

pear search mysqli
Retrieving data...0%....50%....Matched packages, channel pear.php.net:
=======================================
Package Stable/(Latest) Local
MDB2_Driver_mysqli 1.0.0/(1.0.0 stable) mysqli MDB2 driver
h5810:/var/www/webmail/web/horde/config# pear install MDB2_Driver_mysqli
Did not download dependencies: pear/MDB2, use --alldeps or --onlyreqdeps to download automatically
pear/MDB2_Driver_mysqli requires PHP (version >= 5.0.0, version <= 6.0.0), installed version is 4.3.10-16
pear/MDB2_Driver_mysqli requires package "pear/MDB2" (version >= 2.0.0RC5)
pear/MDB2_Driver_mysqli requires PHP extension "mysqli"
No valid packages found
install failed


I understood I need MDB2_Driver_mysqli, tried installing but it says I need php 5 ? I have 4 and want to keep it...

I am going to try this now:

pear install MDB2 - that was ok

if I try again with pear install MDB2_Driver_mysqli it gives me the same error as above except for the MDB2 part

###edit###

please help!
I am stuck. I treid uninstalling DB, then I get an DB.php not found error, if I reinstall it (always restarting apache) I get the error from above: DB Error: extension not found

[Zeile 388 von /var/www/webmail/web/horde/lib/Horde/Prefs/sql.php]

falko
24th March 2006, 20:26
mysqli is available for PHP5 only.

Ovidiu
24th March 2006, 21:04
wel, yes, so what to do? horde does not need php5, why do I keep getting these errors? any clue?

Ovidiu
25th March 2006, 03:33
well, never mind. I figured that all out. I went seevrall steps further now I am configuring IMP...

still there is only one step missing from the perfect install of horde :-) fileinfo...

I tried: pecl install fileinfo and it gives me this:

checking for fileinfo support... yes, shared
checking for magic files in default path... not found
configure: error: Please reinstall the libmagic distribution
ERROR: `/tmp/tmpV6O8oa/Fileinfo-1.0.3/configure' failed


I have checked - I have libmagick6 installed, a reinstall does not help. any clue how I can pass to pecl the right path to the magic files, as it seems it cannot find them?

till
25th March 2006, 11:24
I'am sure libmagick != libmagick.

libmagick is the library from the imagemagick package. I'guess the fileinfo package needs a library for filetype detection which is named libmagic.

I dont know which package includes libmagic, but maybe the post helps you anyway :)

Ovidiu
25th March 2006, 12:16
you guys are great :-)

I did a apt-cache search libmagic and found the culprit: libmagic-dev

apt-get install libmagic-dev
pecl install fileinfo

and its done :-)

btw. if someone wants to try and install horde/imp combination, I can give help. I just succeeded in installing horde perfectly :-) solved every needed/optional component install...

now I am busy configuring IMP and then I will continue with the rest of the apps...

Ovidiu
25th March 2006, 17:21
ok, here is the next challenge: if I click on webmail settings I get this error:

Notice: Undefined index: base_protocol in /var/www/webmail/web/horde/imp/lib/IMP.php on line 1234

Notice: Undefined index: base_protocol in /var/www/webmail/web/horde/imp/lib/IMP.php on line 1198

Notice: Undefined index: base_protocol in /var/www/webmail/web/horde/imp/lib/IMP.php on line 1198

Notice: Undefined index: base_protocol in /var/www/webmail/web/horde/imp/lib/IMP.php on line 927

Notice: Undefined index: base_protocol in /var/www/webmail/web/horde/imp/lib/IMP.php on line 948

It just appears above the menue, I can still work... I googled around and all I foudn is that I might have not defined a protocol in the servers.php

I looked at the indicated lines and they all are concerned with pop3 which indeed I did not define inside my servers.php because I use IMAP, here is my servers.php:

$servers['_prompt'] = array(
'name' => _("Choose a mail server:")
);

$servers['imap'] = array(
'name' => 'lokaler Mailserver',
'server' => 'localhost',
'protocol' => 'imap/notls',
'port' => '143',
'quota' => array(
'driver' => 'command',
'params' => array(
'quota_path' => '/usr/bin/quota',
'grep_path' => '/bin/grep'
),
),
);
if ($GLOBALS['conf']['kolab']['enabled']) {
$servers['kolab'] = array(
'name' => 'Kolab Cyrus IMAP Server',
'server' => $GLOBALS['conf']['kolab']['imap']['server'],
'hordeauth' => 'full',
'protocol' => 'imap/notls/novalidate-cert',
'port' => $GLOBALS['conf']['kolab']['imap']['port'],
'maildomain' => $GLOBALS['conf']['kolab']['imap']['maildomain'],
'realm' => '',
'preferred' => '',
'quota' => array(
'driver' => 'cyrus',
'params' => array(
'login' => $GLOBALS['conf']['kolab']['imap']['adminuser'],
'password' => $GLOBALS['conf']['kolab']['imap']['adminpw'],
'userhierarchy' => 'user.'
)
'userhierarchy' => 'user.'
)
),
'acl' => array(
'driver' => 'rfc2086',
),
);
}



btw. quota does not work too :-(

falko
26th March 2006, 11:18
I can't find base_protocol in servers.php...

Ovidiu
26th March 2006, 15:41
I googled again for: Notice: Undefined index: base_protocol in horde

and one of the results contained this:

head 2.637; access; symbols IMP_4_1:2.560.4.34 IMP_4_1_RC3:2.560 ... - [ Diese Seite übersetzen ]
$selfURL = Util::removeParameter(Horde::selfUrl(true), array('index', 'actionID')); ... Use $imp['base_protocol'] instead of $imp['protocol']. ...
downloads.planetmirror.com/pub/horde-cvs/imp/message.php,v - 657k -
but the original page is gone, thats all I found.
So I will try and find another hint.

I thought I am done, yet I have still some errors:

Notice: unserialize(): Argument is not a string in /var/www/webmail/web/horde/kronolith/lib/base.php on line 69

Notice: unserialize(): Argument is not a string in /var/www/webmail/web/horde/kronolith/lib/base.php on line 70

Warning: array_values(): The argument should be an array in /var/www/webmail/web/horde/kronolith/lib/base.php on line 92

Notice: unserialize(): Argument is not a string in /var/www/webmail/web/horde/kronolith/lib/base.php on line 102

###edit###
anyone using gollem as a filemanager? if so what backend do you use? I would liek to provide file access for my users, I mean access to their files on the server and need some help doing so. If that is not possible with the existing structure of ispconfig then I will give them access to a vfs in a mysql database.

falko
26th March 2006, 20:57
Use $imp['base_protocol'] instead of $imp['protocol'].

I'd then replace 'protocol' => 'imap/notls', in servers.php with
'base_protocol' => 'imap/notls',
Maybe it works.

Ovidiu
26th March 2006, 23:47
thats why I mentioned that particular google find. I did not try it yet, as I am at a point where almost all horde modules work smoothly as an admin. The problems described were only occuring as a user. I will try and finish the nstall and config as an admin and then I'll try and figure out the remaining problems when logging in as a user.

btw. does one of you guys know which components of horde can be "easily" integrated with ispconfig? by easy I mean without changing anything important in ispconfig.

I would be interested in the filtering, forwarding and filemanager components but I'd like to hear your opinion first, if you think it would work with ispcfg or not. maybe one of you is even using horde and can tell me what is worth trying and implementing.

till
27th March 2006, 00:01
I wont implement anything from horde in ISPConfig. If horde is part of ISPConfig, almost no one will be able to install ISPCOnfig anymore.

Ovidiu
27th March 2006, 00:29
sorry, I did not express myself clear. what I meant was what components of horde can I use without having to alter important parts of ispconfig. I do not want to screw up ma ispcfg installation just for the sake of having horde installed. squirrelmail is not that inferior...