RoundCube Webmail Forum  

Go Back   RoundCube Webmail Forum > Recycle Bin > Recycle Bin

For more information about the ads and why they're here, please see the FAQ
Closed Thread
  #1  
Old 08-19-2006, 09:17 AM
Registered User
 
Join Date: Aug 2006
Posts: 4
Downloads: 0
Uploads: 0
Default Problem writing to sqlite db

I have installed roundcube on a windows 2003 server machine running php on iis. I'm using sqlite as the db and i can't seem to log in. When i look at the logs i get this:

[19-Aug-2006 02:07:14 -0600] DB Error: DB Error: unknown error Query: 8 ** INSERT INTO users (created, last_login, username, mail_host, alias, language) VALUES (now(), now(), 'jstawski@whatcanidomiami.info', 'whatcanidomiami.info', '', 'en_US') [nativecode=attempt to write a readonly database] in c:\websites\webmail\program\include\rcube_db.inc on line 479
[19-Aug-2006 02:07:14 -0600] PHP Error: Failed to create new user in c:\websites\webmail\program\include\main.inc on line 584
[19-Aug-2006 02:07:14 -0600] DB Error: DB Error: unknown error Query: 8 ** INSERT INTO session (sess_id, vars, ip, created, changed) VALUES ('5lsgbd8uc5710k6ndr0clf8ei6', 'user_lang|s:5:"en_US";auth_time|i:1155974834;task |s:4:"mail";user_id|s:0:"";', '216.189.168.166', now(), now()) [nativecode=attempt to write a readonly database] in c:\websites\webmail\program\include\rcube_db.inc on line 479


Here's the content of my db.in.php:

<?php

/*
+-----------------------------------------------------------------------+
| Configuration file for database access |
| |
| This file is part of the RoundCube Webmail client |
| Copyright (C) 2005, RoundCube Dev. - Switzerland |
| Licensed under the GNU GPL |
| |
+-----------------------------------------------------------------------+

*/

$rcmail_config = array();

// PEAR database DSN for read/write operations
// format is db_provider://userassword@host/databse
// currentyl suported db_providers: mysql, sqlite

$rcmail_config['db_dsnw'] = 'sqlite://./sqlite.db?mode=0646';
// mysql example: $rcmail_config['db_dsnw'] = 'mysql://roundcubeass@localhost/roundcubemail';
// postgres example: 'pgsql://roundcubeass@localhost/roundcubemail';
// sqlite example: 'sqlite://./sqlite.db?mode=0646';

// PEAR database DSN for read only operations (if empty write database will be used)
// useful for database replication
$rcmail_config['db_dsnr'] = '';

// database backend to use (only db or mdb2 are supported)
$rcmail_config['db_backend'] = 'db';

// maximum length of a query in bytes
$rcmail_config['db_max_length'] = 512000; // 500K

// use persistent db-connections
$rcmail_config['db_persistent'] = TRUE;


// you can define specific table names used to store webmail data
$rcmail_config['db_table_users'] = 'users';

$rcmail_config['db_table_identities'] = 'identities';

$rcmail_config['db_table_contacts'] = 'contacts';

$rcmail_config['db_table_session'] = 'session';

$rcmail_config['db_table_cache'] = 'cache';

$rcmail_config['db_table_messages'] = 'messages';


// you can define specific sequence names used in PostgreSQL
$rcmail_config['db_sequence_users'] = 'user_ids';

$rcmail_config['db_sequence_identities'] = 'identity_ids';

$rcmail_config['db_sequence_contacts'] = 'contact_ids';

$rcmail_config['db_sequence_cache'] = 'cache_ids';

$rcmail_config['db_sequence_messages'] = 'message_ids';


// end db config file
?>

Thanks...
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #2  
Old 08-19-2006, 09:43 PM
Registered User
 
Join Date: Aug 2006
Posts: 4
Downloads: 0
Uploads: 0
Default Re: Problem writing to sqlite db

Never mind, I was giving full access to the db, but i forgot to give sqlite.exe full access as well.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #3  
Old 08-19-2006, 09:57 PM
Registered User
 
Join Date: Aug 2006
Posts: 4
Downloads: 0
Uploads: 0
Default Re: Problem writing to sqlite db

Sorry, I had to give access to the root directory
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Closed Thread


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
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
Trackbacks are On
Pingbacks are On
Refbacks are On

For more information about the ads and why they're here, please see the FAQ

All times are GMT. The time now is 05:51 PM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0
Copyright © 2006-2008 RoundCube Webmail Community