On 19 May 2010 05:24, jinzo <[email protected]> wrote: > Hello, > > I have an application that's now running with mod_wsgi 3.1 and apache > 2.2.15 in daemon mode. The application (Django) allows for file > uploads, and recently I started to get some errors. It turned out, > that the files I upload (and are written thru the application) all > have only read and write permissions for owner, and nothing else. I > tried several things (from removing to changing umask, ...) and I > still get this efect, but not always. > Any ideas what I'm doing wrong ?
Try setting 'umask' option for WSGIDaemonProcess. http://code.google.com/p/modwsgi/wiki/ConfigurationDirectives#WSGIDaemonProcess Also ensure you have actually delegated it properly to run in daemon mode by setting: WSGIRestrictEmbedded On outside of VirtualHost in Apache main configuration. Also post your Apache configuration snippets for mod_wsgi so can verify how you have set it up and whether for example you are actually setting user/group to WSGIDaemonProcess to have code run as user other than Apache which perhaps restrictive permissions. Graham -- 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.
