DaemonForums  

Go Back   DaemonForums > OpenBSD > OpenBSD Packages and Ports

OpenBSD Packages and Ports Installation and upgrading of packages and ports on OpenBSD.

Reply
 
Thread Tools Display Modes
  #1   (View Single Post)  
Old 17th November 2008
jrs665 jrs665 is offline
New User
 
Join Date: Oct 2008
Posts: 8
Default Roundcube Mail Can't Connect to MYSQL Database

Have installed the Roundcube package for OpenBSD 4.3 and get the following when I go to its url.

DATABASE ERROR: CONNECTION FAILED!
Unable to connect to the database!
Please contact your server-administrator

The database and its tables are setup and can log in locally from console with username and password specified in db.inc.php

$rcmail_config['db_dsnw'] = 'mysql://roundcube:MYPASS@localhost/roundcubemail';

Any Ideas?

Note: Imp is running fine using tcp port to connect to mysql server.

Last edited by jrs665; 17th November 2008 at 03:48 PM.
Reply With Quote
  #2   (View Single Post)  
Old 17th November 2008
jggimi's Avatar
jggimi jggimi is offline
More noise than signal
 
Join Date: May 2008
Location: USA
Posts: 7,975
Default

I don't use roundcube, so this is only a guess ....

You are attempting to connect to the database via a filesystem socket, rather than a TCP connection, and you are using the built-in apache in default chrooted mode.

It's only a guess, of course.

---

To confirm if chrooted apache with your DB configuration is the problem, stop apache and restart it with -u, per FAQ 10.16. If things suddenly work, you'll know you need to either use TCP or move your filesystem socket inside /var/www.

Last edited by jggimi; 17th November 2008 at 03:57 PM. Reason: confirmation test
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Read Excel Data and store into Mysql Database using PHP cksraj Programming 2 3rd June 2009 12:09 PM
PHP database interfaces TerryP Programming 6 11th September 2008 01:03 PM
Slocate database coverage ivanatora FreeBSD General 2 4th August 2008 08:51 AM
Changing encoding of text in MySQL database stukov Programming 5 15th July 2008 09:48 PM
WARNING: Vulnerability database out of date, checking anyway mfaridi FreeBSD Security 9 8th May 2008 06:13 AM


All times are GMT. The time now is 03:45 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Content copyright © 2007-2010, the authors
Daemon image copyright ©1988, Marshall Kirk McKusick