[horde] Horde5 Whitescreen

Jan Schneider jan at horde.org
Tue Jul 10 20:02:56 UTC 2012


Zitat von Simon Brereton <simon.buongiorno at gmail.com>:

>>> If I revert to 143, false login/authentication appears to succeed
>>> because the url changes to
>>> https://horde-beta.example.net/services/portal/index.php but I get a
>>> whitescreen and I get these in the Apache log
>>>
>>> ==> /var/log/apache2/logs/horde-beta-error_log <==
>>> [Tue Jul 10 14:56:01 2012] [error] [client 209.249.196.10] PHP Fatal
>>> error:  Class 'DB' not found in
>>> /usr/share/horde-beta/pear/php/Horde/Core/Factory/DbPear.php on line
>>> 73, referer: https://horde-beta.example.net/login.php
>>
>>
>> You didn't install Horde properly. You have missing dependencies. No idea
>> how you got so far.
>
> Here's what I have in the Configuration page:
> Application												Database			Status
> Address Book Address Book (turba) 4.0.0alpha1 			DB schema is
> ready.		Application is ready.
> Horde Horde (horde) 5.0.0alpha1													Application is ready.
> Mail Mail (imp) 6.0.0alpha1								DB schema is ready.		Application is ready.
> Horde_Activesync										DB schema is ready.
> Horde_Alarm											DB schema is ready.
> Horde_Auth												DB schema is ready.
> Horde_Cache											DB schema is ready.
> Horde_Core												DB schema is ready.
> Horde_Group											DB schema is ready.
> Horde_History											DB schema is ready.
> Horde_Lock												DB schema is ready.
> Horde_Perms											DB schema is ready.
> Horde_Prefs												DB schema is ready.
> Horde_Sessionhandler									DB schema is ready.
> Horde_Syncml											DB schema is ready.
> Horde_Token											DB schema is ready.
> Horde_Vfs												DB schema is ready.

That's not your package list.

> Which dependencies am I missing?

The DB package from PEAR.

> For the record, I did the following...
> mkdir /usr/share/horde-beta
>
> PEAR
> pear config-create /usr/share/horde-beta /usr/share/horde-beta/pear.conf
> pear -c /usr/share/horde-beta/pear.conf install pear
>
> Install Horde5
> /usr/share/horde-beta/pear/pear -c /usr/share/horde-beta/pear.conf
> channel-discover pear.horde.org
> /usr/share/horde-beta/pear/pear -c /usr/share/horde-beta/pear.conf
> install horde/horde_role
> /usr/share/horde-beta/pear/pear -c /usr/share/horde-beta/pear.conf
> run-scripts horde/horde_role
> /usr/share/horde-beta/pear/pear -c /usr/share/horde-beta/pear.conf -d
> preferred_state=alpha install horde/horde
> /usr/share/horde-beta/pear/pear -c /usr/share/horde-beta/pear.conf -d
> preferred_state=alpha install horde/imp
> /usr/share/horde-beta/pear/pear -c /usr/share/horde-beta/pear.conf -d
> preferred_state=alpha install horde/turba
>
> cp config/conf.php.dist config/conf.php
>
> PHP
> vim /usr/share/horde-beta/.htaccess
> Add
> php_value include_path /usr/share/horde-beta/pear/php
> SetEnv PHP_PEAR_SYSCONF_DIR /usr/share/horde-beta
>
> PECL
> /usr/share/horde-beta/pear/pecl -c /usr/share/horde-beta/pear.conf
> install fileinfo xdiff geoip ssh2 sasl idn imagick lzf memcache
> Restart Apache
>
> MYSQL - create a separate DB for testing.
> mysql -u root -p -e "create database hordebeta DEFAULT CHARACTER SET
> utf8 COLLATE utf8_bin; grant all privileges on hordebeta.* to
> 'horde'@'localhost'; flush privileges;"
> mysqldump -u root -p horde > horde4.sql
> mysql -u root -p hordebeta < horde4.sql
>
>
> As far as I can tell with both Horde4 and it looks the same with
> Horde5 you have to use the --alldeps argument or run into this
> problem.  In Horde4 I solved it with a very long list of trial and
> error to get all the packages I wanted/needed.  It would be nice if
> real dependencies like horde/Horde_Db were downloaded automatically.
> However, --alldeps will also download Horde_Kolab_Session,
> horde/Horde_Ldap, horde/Horde_Imsp and a bunch of things I don't need.

So, because you happen to use a feature (probably either DataTree  
which is deprecated, or the METAR block) that still requires DB, you  
want that to be a mandatory dependency. But you don't want any other  
optional dependency that somebody else might use? Do you see the flaw?

[several lines of ranting deleted]
-- 
Jan Schneider
The Horde Project
http://www.horde.org/



More information about the horde mailing list