Community Forums
Connect with us on LinkedIn
Community Notice
+ Reply to Thread
Results 1 to 8 of 8
  1. #1
    dxm
    dxm is offline
    Member
    Join Date
    Aug 2007
    Posts
    21

    Default horde and roundcube can't connect to database error

    Hi,
    I recently noticed that horde and roundcube don't work, i.e. once one has logged in and selects one of those programs one gets a database connection error.

    whm version: WHM 11.23.2 cPanel 11.23.4-R26138

    Horde error is DB Error: connect failed and the roundcube error is Unable to connect to the database!

    Squirrelmail is working ok.

    I updated to the latest version of cpanel but no change.
    mysqld is running ok.

    I've searched the forums but I haven't found anything that helps yet.

    Any suggestions?

    Thanks.
    Last edited by dxm; 08-01-2008 at 06:23 AM. Reason: typo

  2. #2
    Member verdon's Avatar
    Join Date
    Nov 2003
    Location
    Northern Ontario, Canada
    Posts
    792

    Default

    I read somewhere that if you have set your mysql root pass to something containing special characters, you'll have these connection problems. Have you recently changed that pass?

  3. #3
    dxm
    dxm is offline
    Member
    Join Date
    Aug 2007
    Posts
    21

    Default

    Actually I think that the mysql root password on that box is blank (bad, I know).
    If I change the root password, do I have to update the horde and roundcube configs anywhere?

    thanks.

  4. #4
    dxm
    dxm is offline
    Member
    Join Date
    Aug 2007
    Posts
    21

    Default

    To answer my own question, my google fu appears to have returned this evening.
    Basically horde (and roundcube) were looking for /tmp/mysql.sock , so by creating a symlink as per this post horde and roundcube started working just fine.

    http://forums.spry.com/showthread.php?t=1423

  5. #5
    Registered User
    Join Date
    Mar 2008
    Posts
    1

    Default

    Because the symlink is in /tmp, would this get delete in the future if the server reboots or by accident?

    It works, but is this the permanent solution?


    Quote Originally Posted by dxm View Post
    To answer my own question, my google fu appears to have returned this evening.
    Basically horde (and roundcube) were looking for /tmp/mysql.sock , so by creating a symlink as per this post horde and roundcube started working just fine.

    http://forums.spry.com/showthread.php?t=1423

  6. #6
    Member MaestriaNick's Avatar
    Join Date
    Aug 2008
    Posts
    137

    Default

    yea, there is a solution.

    go to the folder /usr/local/cpanel/3rdparty/etc

    there is a folder for application like horde, roundcube etc.

    for horde , go to the folder /usr/local/cpanel/3rdparty/etc/horde

    edit , php.ini and set

    mysql.default_socket =

    to

    mysql.default_socket = /var/lib/mysql/mysql.sock

    make the same changes to roundcube etc. if you want
    Last edited by MaestriaNick; 08-20-2008 at 06:22 AM.

    Maestriatech.com
    If Someone can do it, We can do it better.
    24/7 Linux /Windows Server Support
    5+ years in the industry
    reachus@maestriatech.com

  7. #7
    Member
    Join Date
    Jan 2004
    Posts
    5

    Default

    Thanks MaestriaNick for the solution. I was having the same problem and this fixed it. However, does anyone know why this happened in the first place? I want to be sure it don't happen again.

    Thanks,

    Steve

  8. #8
    Member
    Join Date
    May 2003
    Posts
    22

    Default

    Hi
    it didn't work out for me, but I am having the same problem with horde and roundcube after harddisk crash and new install..oh such a mess..

    Any other ideas?

Similar Threads & Tags
Similar threads

  1. Replies: 6
    Last Post: 12-21-2010, 01:19 PM
  2. Replies: 12
    Last Post: 01-06-2010, 09:54 PM
  3. Restoring RoundCube and Horder MySQL databases
    By openmind in forum Data Protection
    Replies: 1
    Last Post: 07-23-2009, 05:37 PM
  4. Roundcube cannot connect to database. Help please?
    By kamnet in forum cPanel and WHM Discussions
    Replies: 7
    Last Post: 07-03-2009, 09:56 AM
  5. 11.24 Upgrade: Roundcube Database Connect Error
    By RickG in forum cPanel and WHM Discussions
    Replies: 6
    Last Post: 12-31-2008, 08:22 AM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube