[mod_python] mod_python and sqlite

Michael Rasmussen mir at miras.org
Wed Jan 10 12:45:02 EST 2007


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Wed, 10 Jan 2007 17:28:14 +0000
Richard Lewis <richardlewis at fastmail.co.uk> wrote:

> 
> The problem I have is that when I try to execute the SQL UPDATE
> query, the database raises the exception "Database error: unable to
> open database file". 
> I've checked to make sure that I can execute the code correctly from
> the Python interpreter, and I can. 
>  
> So I also made sure that Apache has write permission to the database
> file by setting the permissions to rwxrwxrwx! 
>  
You are sure your webserver does not run in a jail/chroot environment
in which case a running instance of the webserver might never have
access to the required directory?

What does the webservers errorlog show?

- -- 
Hilsen/Regards
Michael Rasmussen

Get my public GnuPG keys:
michael <at> rasmussen <dot> cc
http://keyserver.veridis.com:11371/pks/lookup?op=get&search=0xD3C9A00E
mir <at> datanom <dot> net
http://keyserver.veridis.com:11371/pks/lookup?op=get&search=0xE501F51C
mir <at> miras <dot> org
http://keyserver.veridis.com:11371/pks/lookup?op=get&search=0xE3E80917
- --------------------------------------------------------------
Q:	What lies on the bottom of the ocean and twitches?
A:	A nervous wreck.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)

iD8DBQFFpSYfVErYVePoCRcRAt+jAJ4zlfP3uITe1h0c6rQqC05j3WNhTwCeNRlv
Ee2Ih6w4dsgAxaddL4E2L3M=
=Kzjs
-----END PGP SIGNATURE-----



More information about the Mod_python mailing list