Re: mod_python not working (showing source code)
From: Tim Roberts (timr_at_probo.com)
Date: 11/11/04
- Next message: Jon Perez: "Tkinter and WCK (was Re: How come wxPython isn't in the standard library?)"
- Previous message: Jon Perez: "Re: why python is slower than java?"
- In reply to: Anthony Papillion II: "mod_python not working (showing source code)"
- Next in thread: Ivo Woltring: "Re: mod_python not working (showing source code)"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Wed, 10 Nov 2004 22:12:42 -0800
"Anthony Papillion II" <papillion@gmail.com> wrote:
>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?
What does your .htaccess look like? Did you do an AddHandler and
SetHandler so Apache knows what to do with your .py files, and set a
PythonHandler do mod_python knows what to do?
Did you actually read the mod_python documentation?
-- - Tim Roberts, timr@probo.com Providenza & Boekelheide, Inc.
- Next message: Jon Perez: "Tkinter and WCK (was Re: How come wxPython isn't in the standard library?)"
- Previous message: Jon Perez: "Re: why python is slower than java?"
- In reply to: Anthony Papillion II: "mod_python not working (showing source code)"
- Next in thread: Ivo Woltring: "Re: mod_python not working (showing source code)"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]