[imp] Problem with mysql sessions

Eric Rostetter eric.rostetter at physics.utexas.edu
Thu Jan 23 09:19:24 PST 2003


Quoting Data Vortex <datavortex+sender+6bae77 at datavortex.net>:

> I am trying to install Horde 2.2 / IMP 3.1 on a fairly out-of-box Red Hat
> 8.0 installation.  PHP is 4.2.2 and PEAR is 1.0.1.  Apache 2.0.40 and mysql
> 3.23.54a.

Should work fine.

> However, every time I try to login, I immediately get this error from
> redirect.php:
> ----------------------------------------------------------------------
> Notice: Undefined index: socket in /usr/share/pear/DB/mysql.php on line 108
> 
> Warning: Cannot add header information - headers already sent by (output
> started at /usr/share/pear/DB/mysql.php:108) in /www/
> mail/horde/imp/redirect.php on line 84
> ----------------------------------------------------------------------

When you set up your sql settings (anywhere, but in particular in 
horde/config/horde.conf or horde/config/conf.php, which ever is in 
horde 2.2) be sure to specify the socket and/or protocol info. 

The means you have a missing or misconfigured socket and/or protocol parameter
value in the params block(s) in you configuration files.

Unless you are trying to use unix sockets rather than tcp/ip connections, set
the socket value to '' (meaning no value), and/or set the protocol value to 'tcp'.

> In horde/config/horde.php I have set:
> $conf['sessionhandler']['type'] = 'mysql';
> $conf['sessionhandler']['params'] = array();
> $conf['sessionhandler']['params']['phptype'] = 'mysql';
> $conf['sessionhandler']['params']['hostspec'] = 'localhost';
> $conf['sessionhandler']['params']['username'] = 'horde';
> $conf['sessionhandler']['params']['password'] = 'myhordepassword';
> $conf['sessionhandler']['params']['database'] = 'horde';
> $conf['sessionhandler']['params']['table'] = 'horde_sessionhandler';

Add sockets to the above, and maybe protocol if needed.

-- 
Eric Rostetter
The Department of Physics
The University of Texas at Austin

Why get even? Get odd!


More information about the imp mailing list