yuchifang
01-15-2008, 09:22 AM
I want to run some Python CGI on bluehost.
I make a python script then "chmod +x" for it.
But I when I get from the web access, I always got the source code in plain text.
Then I changed created a link to it called foo.cgi (instead of foo.py), then it works correctly. Example:
http://www.2maomao.com/test2.cgi/
where test2.cgi actually links to a python script which is are executable.
Is there a way to avoid this kind of renaming?
I make a python script then "chmod +x" for it.
But I when I get from the web access, I always got the source code in plain text.
Then I changed created a link to it called foo.cgi (instead of foo.py), then it works correctly. Example:
http://www.2maomao.com/test2.cgi/
where test2.cgi actually links to a python script which is are executable.
Is there a way to avoid this kind of renaming?