Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

Horde SessionHandler Issue

Discussion in 'E-mail Discussion' started by russellhosting, Oct 19, 2007.

  1. russellhosting

    russellhosting Active Member

    Jun 19, 2003
    Likes Received:
    Trophy Points:
    I've seen quite a few posts in here about people encountering an error when trying to login to Horde via webmail and getting a SessionHandler error. If you are getting this and the other suggested fixes here are not working do the following:

    First check to see what socket file mysql is using. If you have a my.cnf file under /etc then you can check there. You can also connect to mysql and issue the following command:
    mysql> show variables like 'socket';

    If it is using anything other than /tmp/mysql.sock then you can override the socket that Horde tries to use by doing the following:

    cd /usr/local/cpanel/base/horde/config
    vi conf.php

    Change the following two lines from:
    $conf['sql']['hostspec'] = 'localhost';
    $conf['sessionhandler']['params']['hostspec'] = 'localhost';

    $conf['sql']['hostspec'] = 'localhost:/var/lib/mysql/mysql.sock';
    $conf['sessionhandler']['params']['hostspec'] = 'localhost:/var/lib/mysql/mysql.sock';

    Obviously substitute the "/var/lib/mysql/mysql.sock" part to the correct path to your socket file.

    This solved our issues. If anyone else knows of another fix for this please post here and let us know.
  2. smoge

    smoge Well-Known Member

    Jul 2, 2004
    Likes Received:
    Trophy Points:
    The previous post fixed it for me.... looks like the same kind of problem that popped up with phpmyadmin a while back - fixed with a similar change to the db connection settings.


Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice