Even if using daemon mode, the application will by default run as the Apache user.
The Apache user must have read access to directories down to where database is and if doing updates must be able to write to both the directory and the database file itself, not just the latter. Further, the current working directory of the application could be anything and will not be where the Django project is, you thus need to ensure you are using absolute paths. These are the usual cause of these sorts of problems. BTW, bsddb isn't used by sqlite so that is a distinct problem if you are having issues with sqlite as well. Graham On 30 August 2011 08:38, George <[email protected]> wrote: > Hello from California, > > I'm deploying a new web application that uses the django-filetransfers > framework to upload /download files. Running interactively, behind > the django server, I can download files as expected -- my download > view callse django-filetransfers. When I move the application behind > Apache and try downloading files, I get a DBAccessError with an > exception value 0f 13, 'Permission denied'. At the moment, I am using > a "development database", which is sqlite3. > > The error would appear to me to be a privilege issue -- the deployment > is on a Linux (RHE) server, but I see the same error on my development > platform, an IMac with OSX 10.6. I configured mod_wsgi to run in > daemon mode -- I start it with a sudo ./apachectl, then it reverts to > my login username/password. > > I would much appreciate any guidance from group members who have had > this problem -- what I would like is a way to configure httpd so that > whatever directory it is using for the offending operation is one that > my login username can write to. The exception location says: > > /opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/ > python2.6/bsddb/__init__.py in hashopen, line 361 -- an anydbm > database is being opened -- this is presumably a temporary database... > > Thanks for any insight, > George > > -- > You received this message because you are subscribed to the Google Groups > "modwsgi" group. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected]. > For more options, visit this group at > http://groups.google.com/group/modwsgi?hl=en. > > -- You received this message because you are subscribed to the Google Groups "modwsgi" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/modwsgi?hl=en.
