Oracle Community Directory
Oracle Community FAQ
My Oracle Support Community (MOSC)
Go Directly To
Oracle Technology Network Community
My Oracle Support Community
OPN Cloud Connection
Oracle Employee Community
Oracle User Group Community
Database Developer Tools
Please enter a title.
You can not post a blank message. Please type your message and try again.
This discussion is archived
: May 27, 2009 12:44 PM by
mod_python error. Webpage displays .py source code
May 27, 2009 12:56 AM
I'm new to Python and I have a problem with mod_python. Firefox webpage displays source code of .py file instead of result. Could any one help me with this issue?
My versions are: RHEL 5, Oracle 10g, Python 2.6, mod_python 2, Apache 2.2
here is httpd.conf file's contents:
Options Indexes FollowSymLinks Multiviews
allow from all
AddHandler python-program .py
and that's my Python source code (or1.py):
from mod_python import apache
req.content_type = 'text/plain'
This content has been marked as final.
Show 1 reply
Re: mod_python error. Webpage displays .py source code
May 27, 2009 12:44 PM
in response to
Is or1.py actually in /usr/local/apache/htdocs/modules, which is where your configuration file says to handle .py files as Python scripts.
What's in your Apache request and error logs?