mod_python not working (showing source code)

From: Anthony Papillion II (papillion_at_gmail.com)
Date: 11/11/04


Date: Wed, 10 Nov 2004 19:32:21 -0600

Hello Everyone,

I have downloaded and installed mod_python and it doesn't seem to be
working. I am hoping someone can give me some pointers as to what I am doing
wrong. Here are the steps I've followed so far:

1. Installed mod_python from the rpm file.
2. Added LoadModule and AddModule directives to the httpd.conf file

Now, I have a file called mod_test.py that contains the following code:

#!/usr/bin/python

print "Test of mod_python"

When I call the file up in the browser, I simply see the python source. What
am I doing wrong?

Thanks!
Anthony



Relevant Pages

  • Re: mod_python not working (showing source code)
    ... "Anthony Papillion II" wrote: ... I am hoping someone can give me some pointers as to what I am doing ... >When I call the file up in the browser, I simply see the python source. ... SetHandler so Apache knows what to do with your .py files, ...
    (comp.lang.python)
  • Eclipse plugin : Browser View query
    ... I have developed a Browser view plugin. ... a browser opens in a new view called ... If anyone has developed a similar plugin, can I get some pointers to ...
    (comp.lang.java.help)
  • Re: Eclipse plugin : Browser View query
    ... I have developed a Browser view plugin. ... a browser opens in a new view called ... If anyone has developed a similar plugin, can I get some pointers to ...
    (comp.lang.java.help)
  • How to check if JavaScript is enabled in the browser using Java(JSP)
    ... I need a api/the method to find out whether JavaScript is enabled ... or disabled in the browser. ... any pointers on Java/JSP to achive this ...
    (comp.lang.java)
  • Detecting Domain.
    ... cannot find it anymore, ... browsed to and immediately forward the browser to a folder dedicated to ... Any pointers or assistance will be greatly appreciated. ...
    (alt.php)