Nick Le Mouton
noodles at planetslackers.com
Mon Apr 14 22:15:31 EDT 2008
Hi all, I'm new to python and mod_python and I'm trying to get a script to work on my install of Apache. I've installed mod_python and I can see that it's installed in the error_log: [Tue Apr 15 13:26:44 2008] [notice] Apache/2.2.8 (Unix) mod_ssl/2.2.8 OpenSSL/0.9.7a PHP/5.2.5 mod_python/3.3.1 Python/2.3.4 configured -- resuming normal operations I have added LoadModule python_module modules/mod_python.so in httpd.conf As well as AddHandler mod_python .py The script I'm trying to run is in the cgi-bin for apache, /usr/local/apache2/cgi-bin/, this is also setup with ScriptAlias as per the default httpd.conf. I'm running Apache 2.2.8 on Redhat Enterprise Linux 4. Apache is installed from source, python and python-devel from rpm. No matter what I do I still see the source code of the py file rather than it running. Can anyone help? Thanks Nick
|