Hastymail2

Hastymail2 is an Open Source IMAP webmail client written in PHP. Our focus is compliance, usability, security, and speed.

Hastymail 2

avatar
Trouble setting up db support

We've installed hastymail2 on Ubuntu and had it running already using file based settings and contacts. I'm now trying to enable database support and have edited the .conf file accordingly and done the usual stuff to compile and make the changes active.

Now, when I refresh my mailbox, I just get a completely blank page, which says, 'done' in the status bar. 

I've enabled db_debug, but it makes no difference. If I restore the previous .rc file all is ok again but with no database support.

I created the database using phpmyadmin and have successfully logged into it by SSH and listed the tables (contacts and user_setting created using the supplied scripts). I used the same login details to access it as I have specified in hastymail2.conf.

The only setting in the .conf file that I'm unsure of is the db_pear_type, which I've set to DB but have also tried MDB2.

Any help would be greatly appreciated. Thanks.

SERVER DETAILS:

OS: 5.0.75-0ubuntu10.2
Webserver: Apache/2.2.11 PHP/5.2.6-3ubuntu4.4 with Suhosin-Patch mod_ssl/2.2.11 OpenSSL/0.9.8g
MySQL: MySQL client version: 5.0.75

 pete

 

Reply /Quote
avatar
Trouble setting up db support

The blank page suggests that PHP has hit a fatal error. Enabling error reporting in your php.ini file (either to the screen or to a file) should help determine what is going on.

Since we use PEAR DB/MDB2 to connect to a database one of these packages must be installed for the db support to work properly.  MDB2 is the recommended package as it is actively developed but either the DB or MDB2 PEAR package will work.

The problem you are having could be because these packages are missing from your PHP install.

Hope that helps,
Jason

Reply /Quote
Get Hastymail at SourceForge.net. Fast, secure and Free Open Source software downloads