Hi,

apache.conf file

WSGIRestrictStdout Off
<VirtualHost *:80>
        ServerName www.localhost.com
        ServerAdmin webmas...@localhost
# webexample
Alias /media/ /home/tazim/webexample/media/
<Directory /home/tazim/webexample/media>
Order deny,allow
Options -Indexes
Allow from all
IndexOptions FancyIndexing
</Directory>
Alias /admin-media/ /usr/lib/pymodules/python2.6/django/contrib/admin/
media
WSGIScriptAlias / /home/tazim/webexample/django.wsgi
<Directory /home/tazim/webexample>
Order deny,allow
Allow from all
</Directory>




</VirtualHost>


In views.py:

    I have following statements :
    import os
    os.system('iostat 2 > /home/tazim/webexample/webapp/g.txt &')



I get following errors in error.log

[Mon Jul 12 01:52:00 2010] [error] Exception KeyError:
KeyError(-1215502592,) in <module 'threading' from '/usr/lib   /
python2.6/threading.pyc'> ignored

[Mon Jul 12 12:22:00 2010] [notice] caught SIGTERM, shutting down

[Mon Jul 12 12:22:07 2010] [notice] Apache/2.2.14 (Ubuntu) mod_wsgi/
2.8 Python/2.6.5 configured -- resuming normal operations

sh: cannot create /home/tazim/webexample/webapp/g.txt: Permission
denied


Can anyone help me out to figure out this error ?
Thanks in advance

-- 
You received this message because you are subscribed to the Google Groups 
"modwsgi" group.
To post to this group, send email to modw...@googlegroups.com.
To unsubscribe from this group, send email to 
modwsgi+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/modwsgi?hl=en.

Reply via email to