Go Directly To
Oracle Technology Network Community
My Oracle Support Community
OPN Cloud Connection
Oracle Employee Community
Oracle User Group Community
OTN Speaker Bureau
Get Started Guide
Join the world’s largest interactive community dedicated to Oracle technologies.
Learn from thousands of community experts
Get answers to your technical questions
Share your knowledge with peers
Please enter a title.
You can not post a blank message. Please type your message and try again.
Database Application Development
This discussion is archived
on May 27, 2009 5:44 PM by cj
mod_python error. Webpage displays .py source code
May 27, 2009 5: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'
I have the same question
Show 0 Likes
This content has been marked as final.
Show 1 reply
Re: mod_python error. Webpage displays .py source code
May 27, 2009 5: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?