[mod_python] mod_python and sqlite

Graham Dumpleton grahamd at dscpl.com.au
Wed Jan 10 23:20:09 EST 2007


Edit 'src/Makefile' and look for LDFLAGS definition similar to:

LDFLAGS= -Wl,-framework,Python  -u __dummy -u _PyMac_Error -framework System $(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK) -framework CoreServices -framework Foundation   -Wl,-F. -Wl,-F.

Edit this like to remove:

  $(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)

Then try a make again.

Graham

Daniel Nogradi wrote ..
> >
> > > Not much:-)
> > > This path - /abs/path/to/sessions.db - does this point somewhere
> > > below /var/www? If it does there could be some restrictions applied
> in
> > > /etc/apache2/apache2.conf to the specific directory. Does is change
> > > anything if you use /tmp as directory?
> >
> > Directory restrictions in the Apache configuration have got nothing to
> do
> > with
> > file system access done using standard operating system functions. The
> > only
> > restrictions which might derive from how Apache is configured are the
> user
> > it
> > runs as and any chroot jail in use as has already been mentioned.
> 
> 
> 
> Sqlite needs write access also to the directory containing the database
> file.


More information about the Mod_python mailing list