[horde] Groupware: "You must configure a DataTree backend to use Shares" error

David Powell (Moondrake) moondrake at aanet.com.au
Sat Feb 3 04:23:37 PST 2007


Hi,

Im getting the same "You must configure a DataTree backend to use
Shares" fatal error when trying to use the latest groupware webmail
edition (1.0)

The test.php page reported no problems other than:
- the memory limit (which is set to 64M)
- a futuristic PHP version (I'm using the dotdeb packages for debian
stable - currently version 5.2)
- no postgresql or ldap modules.

Unlike Ken I WAS able to use the setup.php script in the scripts folder.
 It reported no errors with the settings I provided to it.  The database
and tables all appear to be where they should be and accessible using
the username/password I provided to the setup script.

The only thing unusual about my setup so far is that I've installed
horde under a directory called 'workspace', rather than 'horde' (I have
a relatively old but still working edition of kronolith in my horde
directory).  The 'workspace' directory is still just one down from my
webroot - /var/www/workspace.  I've altered the cookie-path setting in
conf.php to reflect this difference.

All the other relevant settings in conf.php seem fine.  I can log in
manually to the db using the username/password in this file.

If it's any help, here is my conf.php file...

$conf['debug_level'] = E_ALL;
$conf['max_exec_time'] = 0;
$conf['use_ssl'] = 2;
$conf['server']['name'] = $_SERVER['SERVER_NAME'];
$conf['server']['port'] = $_SERVER['SERVER_PORT'];
$conf['compress_pages'] = true;
$conf['umask'] = 077;
$conf['session']['name'] = 'Horde';
$conf['session']['use_only_cookies'] = true;
$conf['session']['cache_limiter'] = 'nocache';
$conf['session']['timeout'] = 0;
$conf['cookie']['domain'] = $_SERVER['SERVER_NAME'];
$conf['cookie']['path'] = '/workspace';
$conf['sql']['persistent'] = true;
$conf['sql']['hostspec'] = 'localhost';
$conf['sql']['username'] = 'horde';
$conf['sql']['password'] = '#####';
$conf['sql']['protocol'] = 'unix';
$conf['sql']['database'] = 'workspace';
$conf['sql']['charset'] = 'iso-8859-1';
$conf['sql']['phptype'] = 'mysql';
$conf['auth']['admins'] = array('moondrake');
$conf['auth']['checkip'] = true;
$conf['auth']['checkbrowser'] = true;
$conf['auth']['alternate_login'] = false;
$conf['auth']['redirect_on_logout'] = false;
$conf['auth']['params']['app'] = 'imp';
$conf['auth']['driver'] = 'application';
$conf['signup']['allow'] = false;
$conf['log']['priority'] = PEAR_LOG_NOTICE;
$conf['log']['ident'] = 'HORDE';
$conf['log']['params'] = array();
$conf['log']['name'] = '/tmp/horde.log';
$conf['log']['params']['append'] = true;
$conf['log']['type'] = 'file';
$conf['log']['enabled'] = true;
$conf['log_accesskeys'] = false;
$conf['prefs']['params']['driverconfig'] = 'horde';
$conf['prefs']['driver'] = 'sql';
$conf['datatree']['params']['driverconfig'] = 'horde';
$conf['datatree']['driver'] = 'sql';
$conf['group']['driver'] = 'datatree';
$conf['cache']['default_lifetime'] = 1800;
$conf['cache']['params']['dir'] = Horde::getTempDir();
$conf['cache']['params']['gc'] = 86400;
$conf['cache']['driver'] = 'file';
$conf['token']['params']['driverconfig'] = 'horde';
$conf['token']['driver'] = 'sql';
$conf['mailer']['params']['sendmail_path'] = '/usr/lib/sendmail';
$conf['mailer']['params']['sendmail_args'] = '-oi';
$conf['mailer']['type'] = 'sendmail';
$conf['vfs']['params']['vfsroot'] = '/tmp';
$conf['vfs']['type'] = 'file';
$conf['sessionhandler']['type'] = 'none';
$conf['problems']['email'] = 'webmaster at example.com';
$conf['problems']['maildomain'] = 'example.com';
$conf['problems']['tickets'] = false;
$conf['menu']['apps'] = array();
$conf['menu']['always'] = false;
$conf['menu']['links']['help'] = 'all';
$conf['menu']['links']['help_about'] = true;
$conf['menu']['links']['options'] = 'authenticated';
$conf['menu']['links']['problem'] = 'all';
$conf['menu']['links']['login'] = 'all';
$conf['menu']['links']['logout'] = 'authenticated';
$conf['hooks']['permsdenied'] = false;
$conf['hooks']['username'] = false;
$conf['hooks']['preauthenticate'] = false;
$conf['hooks']['postauthenticate'] = false;
$conf['hooks']['authldap'] = false;
$conf['portal']['fixed_blocks'] = array();
$conf['accounts']['driver'] = 'null';
$conf['imsp']['enabled'] = false;
$conf['kolab']['enabled'] = false;

Ken wrote:
> Hi,
> 
> The two relevant lines I have in the conf.php file are:
> 
> $conf['datatree']['params']['driverconfig'] = 'horde';
> $conf['datatree']['driver'] = 'sql';
> 
> I did edit the conf.php file by hand instead of the setup script editing
> it.  The reason being just can't run the script without any sort of
> shell/console access on my webhost account.  So I had to resort to
> manually editing the conf.php file.
> 
> The strange thing is I just tried the same conf.php file (with MySQL
> server/DB info changed) on another webhost account and it does work.  So
> the only thing different between the two files are values on the
> "hostspec", "username", "password", and "database" lines.
> 
> 
> Ken
> 
> 
> 
> Jan Schneider jan-at-horde.org |Horde email list| wrote:
>> Obviously not, otherwise you won't get that error message. Did you
>> edit the file by hand? Why don't you use the setup script?


More information about the horde mailing list