Author Topic: yet another database connexion error :/  (Read 2467 times)

Offline traaf

  • Newbie
  • *
  • Posts: 2
yet another database connexion error :/
« on: October 22, 2010, 09:02:50 AM »
Hi all
i am also trying to install roundcube and everything is fine till it wants to connect to my database

running debian lenny and a postgre database
Quote

Check DB config
DSN (write):  NOT OK(MDB2 Error: not supported)

Make sure that the configured database exists and that the user has write privileges
DSN: pgsql://mydatabase:mypasswd@localhost/myuser


i followed this guide :
https://svn.roundcube.net/trunk/roundcubemail/INSTALL

and i think everything's OK

Code: [Select]

pear list
Installed packages, channel pear.php.net:
=========================================
Package           Version State
Archive_Tar       1.3.7   stable
Console_Getopt    1.2.3   stable
Fileinfo          1.0.4   stable
MDB2              2.5.0b1 beta
MDB2_Driver_pgsql 1.4.1   stable
Mail_Mime         1.8.0   stable
Mail_mimeDecode   1.5.4   stable
Net_SMTP          1.4.3   stable
Net_Socket        1.0.10  stable
PEAR              1.9.1   stable
Structures_Graph  1.0.3   stable
XML_Util          1.2.1   stable


i had to select MDB2 beta1 cause latest beta3 gives :
pear install MDB2-2.5.0b3
pear/MDB2 requires PHP (version >= 5.3.0), installed version is 5.2.6-1+lenny9

i enabled /usr/share/php in my php.ini, where pear installs its stuff :
Code: [Select]
pear config-get php_dir
/usr/share/php


my phpinfo() gives, accordingly to requirements in the FAQ

Quote
PHP Version 5.2.6-1+lenny9


Configuration File (php.ini) Path     /etc/php5/apache2
Loaded Configuration File     /etc/php5/apache2/php.ini
Scan this dir for additional .ini files     /etc/php5/apache2/conf.d
additional .ini files parsed     /etc/php5/apache2/conf.d/fileinfo.ini, /etc/php5/apache2/conf.d/gd.ini, /etc/php5/apache2/conf.d/mcrypt.ini, /etc/php5/apache2/conf.d/mysql.ini, /etc/php5/apache2/conf.d/mysqli.ini, /etc/php5/apache2/conf.d/pdo.ini, /etc/php5/apache2/conf.d/pdo_mysql.ini, /etc/php5/apache2/conf.d/pdo_pgsql.ini, /etc/php5/apache2/conf.d/pgsql.ini


pcre
PCRE (Perl Compatible Regular Expressions) Support    enabled
PCRE Library Version    7.6 2008-01-28

dom
DOM/XML    enabled
DOM/XML API Version    20031129
libxml Version    2.6.32
HTML Support    enabled
XPath Support    enabled
XPointer Support    enabled
Schema Support    enabled
RelaxNG Support    enabled


json
json support    enabled
json version    1.2.1


xml
XML Support    active
XML Namespace Support    active
libxml2 Version    2.6.32


session
Session Support    enabled
Registered save handlers    files user
Registered serializer handlers    php php_binary wddx



sockets
Sockets Support    enabled

also postgres support needed and enabled
Quote
pgsql
PostgreSQL Support    enabled
PostgreSQL(libpq) Version     8.3.11
Multibyte character support     enabled
SSL support     enabled



reading this page  : Manual :: Checking if PEAR works
a page with content
require_once 'System.php';
var_dump(class_exists('System'));
?>
returns bool(true)
so my pear install seems to be nice

i don't know which other elements to check...

Offline traaf

  • Newbie
  • *
  • Posts: 2
yet another database connexion error :/
« Reply #1 on: October 24, 2010, 12:11:36 PM »
i upgraded to svn version , it's OK now