MOD_PYTHON ERROR

ProcessId:      12182
Interpreter:    'api.drainware.com'

ServerName:     'api.drainware.com'
DocumentRoot:   '/var/www/drainware.com/api'

URI:            '/index.py/link'
Location:       None
Directory:      '/var/www/drainware.com/api/'
Filename:       '/var/www/drainware.com/api/index.py'
PathInfo:       '/link'

Phase:          'PythonHandler'
Handler:        'mod_python.publisher'

Traceback (most recent call last):

  File "/usr/lib/python2.7/dist-packages/mod_python/importer.py", line 1537, in HandlerDispatch
    default=default_handler, arg=req, silent=hlist.silent)

  File "/usr/lib/python2.7/dist-packages/mod_python/importer.py", line 1229, in _process_target
    result = _execute_target(config, req, object, arg)

  File "/usr/lib/python2.7/dist-packages/mod_python/importer.py", line 1128, in _execute_target
    result = object(arg)

  File "/usr/lib/python2.7/dist-packages/mod_python/publisher.py", line 213, in handler
    published = publish_object(req, object)

  File "/usr/lib/python2.7/dist-packages/mod_python/publisher.py", line 425, in publish_object
    return publish_object(req,util.apply_fs_data(object, req.form, req=req))

  File "/usr/lib/python2.7/dist-packages/mod_python/util.py", line 554, in apply_fs_data
    return object(**args)

  File "/var/www/drainware.com/api/index.py", line 75, in link
    f = open(path + "/cache/" + hashlib.sha224(host).hexdigest(), 'w')

IOError: [Errno 13] Permission denied: '/var/www/drainware.com/api/cache/5c6be064d17a4a68ee60dfd0e6de0710c21bd36513257a544e993828'


MODULE CACHE DETAILS

Accessed:       Thu Nov 27 21:49:11 2014
Generation:     1

_mp_a4938956fa85ccb801dfcbcb6e5d9e1a {
  FileName:     '/var/www/drainware.com/api/index.py'
  Instance:     1
  Generation:   1
  Modified:     Tue Sep 30 18:00:55 2014
  Imported:     Thu Nov 27 14:49:31 2014
}