
August 5th, 2004, 10:15 PM
|
|
Registered User
|
|
Join Date: Aug 2004
Posts: 2
Time spent in forums: < 1 sec
Reputation Power: 0
|
|
|
Integrating Python and Apache on Linux Fedora
Please help, I am new to python and have problem with the installation.
After I installed my Fedora, I noticed python and apache have been installed too. However, when I try to run Python script under Apache, the browser just return the script in raw text without executing it. Then I add the below configuration inside the httpd.conf of Apache
<Directory "/var/www/html/python">
AddHandler python-program .py
PythonHandler myscript
PythonDebug On
</Directory>
After restarting the apache, the only Python script that can be executed is myscript.py only. Please advice what should I do, in order to allow the Apache know the way to execute all Python related file correctly.
Thanks/JOF 
|