469,621 Members | 1,856 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,621 developers. It's quick & easy.

Re: Mod_python permission denied


Ok, solved: apache is unable to follow relative paths from the script.
Putting ol absolute paths it's ok!

Simo D wrote:
>
Hi, I'm using a script.py to write a file in a dir on the server.
Mod_python work but i get:
Mod_python error: "PythonHandler mod_python.publisher"

Traceback (most recent call last):

File "/usr/lib64/python2.4/site-packages/mod_python/apache.py", line
299, in HandlerDispatch
result = object(req)

File "/usr/lib64/python2.4/site-packages/mod_python/publisher.py", line
204, in handler
module = page_cache[req]

File "/usr/lib64/python2.4/site-packages/mod_python/cache.py", line 82,
in __getitem__
return self._checkitem(name)[2]

File "/usr/lib64/python2.4/site-packages/mod_python/cache.py", line 124,
in _checkitem
value = self.build(key, name, opened, entry)

File "/usr/lib64/python2.4/site-packages/mod_python/publisher.py", line
77, in build
return ModuleCache.build(self, key, req, opened, entry)

File "/usr/lib64/python2.4/site-packages/mod_python/cache.py", line 371,
in build
exec opened in module.__dict__

File "/var/www/html/flood/py/flood_pdf.py", line 18, in ?
c.save()

File "/usr/lib64/python2.4/site-packages/reportlab/pdfgen/canvas.py",
line 881, in save
self._doc.SaveToFile(self._filename, self)

File "/usr/lib64/python2.4/site-packages/reportlab/pdfbase/pdfdoc.py",
line 218, in SaveToFile
f = open(filename, "wb")

IOError: [Errno 13] Permission denied: 'wms.pdf'
The dir has the read, write and execute permissions and SELinux is
disabled.
Can you help me?
Thanks in advance.
Simone
--
View this message in context: http://www.nabble.com/Mod_python-per...p20378315.html
Sent from the Python - python-list mailing list archive at Nabble.com.

Nov 7 '08 #1
0 2098

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

2 posts views Thread by Taishi | last post: by
reply views Thread by Manuzhai | last post: by
reply views Thread by cyberco | last post: by
3 posts views Thread by kaush | last post: by
reply views Thread by private.anders | last post: by
reply views Thread by private.anders | last post: by
4 posts views Thread by xzzy | last post: by
reply views Thread by Simo D | last post: by
reply views Thread by devrayhaan | last post: by
reply views Thread by gheharukoh7 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.