One question in mod_python tutorial
Polo InitX <[email protected]>
| Newsgroups | gmane.comp.python.mod_python |
|---|---|
| Message-ID | <[email protected]> |
Hi all
I'm newbie to mod_python and I follow the mod_python document step by
step,
but I can't finished the tutorial in part 3.1 "A Quick Start with the
Publisher Handler" .
My firefox return the lots of Traceback messages with error: (13,
'Permission denied') in last line.
I put the form.py file in /home/www/py directory with +x permissions
Why would got Permission denied problem?
Best regards
Following is the erros messages in apache error log file
[Thu Feb 19 18:07:28 2009] [error] [client 192.168.0.72] PythonHandler
mod_python.publisher: Traceback (most recent call last):, referer:
http://www.51nnyy.com/
[Thu Feb 19 18:07:28 2009] [error] [client 192.168.0.72] PythonHandler
mod_python.publisher: File
"/usr/lib64/python2.4/site-packages/mod_python/apache.py", line 299, in
HandlerDispatch\n result = object(req), referer: http://www.51nnyy.com/
[Thu Feb 19 18:07:28 2009] [error] [client 192.168.0.72] PythonHandler
mod_python.publisher: File
"/usr/lib64/python2.4/site-packages/mod_python/publisher.py", line 213, in
handler\n published = publish_object(req, object), referer:
http://www.51nnyy.com/
[Thu Feb 19 18:07:28 2009] [error] [client 192.168.0.72] PythonHandler
mod_python.publisher: File
"/usr/lib64/python2.4/site-packages/mod_python/publisher.py", line 412, in
publish_object\n return publish_object(req,util.apply_fs_data(object,
req.form, req=req)), referer: http://www.51nnyy.com/
[Thu Feb 19 18:07:28 2009] [error] [client 192.168.0.72] PythonHandler
mod_python.publisher: File
"/usr/lib64/python2.4/site-packages/mod_python/util.py", line 439, in
apply_fs_data\n return object(**args), referer: http://www.51nnyy.com/
[Thu Feb 19 18:07:28 2009] [error] [client 192.168.0.72] PythonHandler
mod_python.publisher: File "/home/www/py/form.py", line 29, in email\n
conn = smtplib.SMTP(SMTP_SERVER), referer: http://www.51nnyy.com/
[Thu Feb 19 18:07:28 2009] [error] [client 192.168.0.72] PythonHandler
mod_python.publisher: File "/usr/lib64/python2.4/smtplib.py", line 244, in
__init__\n (code, msg) = self.connect(host, port), referer:
http://www.51nnyy.com/
[Thu Feb 19 18:07:28 2009] [error] [client 192.168.0.72] PythonHandler
mod_python.publisher: File "/usr/lib64/python2.4/smtplib.py", line 306, in
connect\n raise socket.error, msg, referer: http://www.51nnyy.com/
[Thu Feb 19 18:07:28 2009] [error] [client 192.168.0.72] PythonHandler
mod_python.publisher: error: (13, 'Permission denied'), referer:
http://www.51nnyy.com/
_______________________________________________
Mod_python mailing list
[email protected]
http://mailman.modpython.org/mailman/listinfo/mod_python