Re: mod_python not working (showing source code)
From: Ivo Woltring (Python_at_IvoNet.nl)
Date: 11/11/04
- Next message: Jaime Wyant: "I don't quite get this "string".find()"
- Previous message: Nick Craig-Wood: "Re: pickle: huge memory consumption *during* pickling"
- In reply to: Anthony Papillion II: "mod_python not working (showing source code)"
- Next in thread: Adam Przybyla: "Re: mod_python not working (showing source code)"
- Reply: Adam Przybyla: "Re: mod_python not working (showing source code)"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Thu, 11 Nov 2004 20:35:27 +0100
On Wed, 10 Nov 2004 19:32:21 -0600, "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?
>
>Thanks!
>Anthony
>
in httpd.conf put someting like:
LoadModule python_module modules/mod_python.so
and in .htaccess:
SetHandler mod_python
AddHandler python-program .py
PythonHandler mod_python.publisher
#PythonHandler mptest
PythonDebug On
#PythonDebug On
- Next message: Jaime Wyant: "I don't quite get this "string".find()"
- Previous message: Nick Craig-Wood: "Re: pickle: huge memory consumption *during* pickling"
- In reply to: Anthony Papillion II: "mod_python not working (showing source code)"
- Next in thread: Adam Przybyla: "Re: mod_python not working (showing source code)"
- Reply: Adam Przybyla: "Re: mod_python not working (showing source code)"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|