Mon, 4 Jul 2011 12:39:16 +0200 Jérôme a écrit:
Hi all.
I'm trying to install Roundcube 0.5.2 on a debian server using postgresql and I'm desperately looking for a tutorial, a how-to...
A pointer to any lead would be appreciated.
Hi.
Still trying...
I figured out a lot of stuff since my first email (like dbconfig and all,...).
I'm now stuck a few steps further with "db.inc.php was not found" error.
I don't understand why db.inc.php is needed. I thought debian-db.php should do the trick, shouldn't it ?
Here's what I did :
I did a little bit of cleanup, since I had messed up in roundcube directories, and started again from zero using the backported 0.5 packages.
I issued a "dpkg-reconfigure -plow roundcube-core" and asked for the creation of a new DB, so as to ensure nothing from the former install interferes.
dpkg-reconfigure -plow roundcube-core dbconfig-common: writing config to /etc/dbconfig-common/roundcube.conf Replacing config file /etc/roundcube/debian-db.php with new version creating postgres user roundcube: already exists. resetting password: success. creating database roundcube_0_5: success. verifying database roundcube_0_5 exists: success. populating database via sql... warning: ident method specified but local account doesn't exist. warning: ident method specified but local account doesn't exist. done. dbconfig-common: flushing administrative password Reloading web server config: apache2
Here's what I have now :
/usr/share/roundcube $ ll total 64 -rw-r----- 1 root root 1494 Jul 5 20:58 apache.conf -rw-r--r-- 1 root root 1145 Feb 18 2010 .htaccess -rw-r--r-- 1 root root 10571 Apr 20 11:03 index.php -rw-r--r-- 1 root root 25890 Jun 2 12:43 main.inc.php.dist drwxr-xr-x 3 root root 4096 Jul 5 20:53 plugins drwxr-xr-x 7 root root 4096 Jul 5 20:53 program -rw-r--r-- 1 root root 26 Mar 22 2008 robots.txt drwxr-xr-x 3 root root 4096 Jul 5 20:53 skins
/etc/roundcube $ ll total 32 -rw-r----- 1 root www-data 546 Jul 5 23:01 debian-db.php -rw-r----- 1 root www-data 25828 Jul 5 21:01 main.inc.php
The new DB is created with the tables that are new to roundcube 0.5 (such as contactgroupmembers).
/etc/roundcube/debian-db.php seems to be correct : $dbuser='roundcube'; $dbpass='password'; $basepath=''; $dbname='roundcube_0_5'; $dbserver=''; $dbport=''; $dbtype='pgsql';
(As I said I don't think losing the content of the database should be an issue, and if it happenned to be, I suppose I might be able to sort this out using the old database and the commands in /usr/share/dbconfig-common/data/roundcube/upgrade/pgsql/0.5-1)
The complete error message is
CONFIGURATION ERROR db.inc.php was not found. Please read the INSTALL instructions!
Well I didn't find any INSTALL instructions.
dpkg -L roundcube-pgsql roundcube-core roundcube | grep INSTALL
yields nothing.
And http://trac.roundcube.net/wiki/Howto_Install does not seem appropriate, though I couldn't tell whether it is just outdated or whether it is due to debian specificities.
For instance, I don't have any installation or config directory. Should I create a config directory manually ? What should I put in there ?
Thanks for any help.