Newbie: How do you enable python scripts in apache server?
husalwan at sci.kun.nl
Thu Jun 5 17:16:22 CEST 2003
I have apache server running on redhat 9 and wants to run python scripts
with it. I made a test script test.py and chmod to 777. The script sits
in the root directory of the www-site. The script is this:
print "Content-Type: text/plain\n\n"
print "Hello, Python!"
Although the script executes properly in konsole terminal, the problem
is when I try to execute this script in netscape like this:
the script is showing as plain text.
Can anybody points me to the right direction?
Thanks in advance
More information about the Python-list