Why does a Web browser running under Linux show Python CGI scripts as plain text?!

Zorba ghostagain at operamail.com
Mon Feb 3 22:16:27 CET 2003


I have also posted this on the comp.os.linux.help newsgroup, where it
may be more appropriate.

I just installed SuSE Linux 8.1 a few days ago--my first experience
with
Linux ever. I am slowly sorting out problems.

One big problem: I have a Web site (which I coded using Windows) at
http://usable-thought.com which has some CGI pages coded using Python,
to produce dynamically rendered HTML (they are the Marketing Tips
pages, if you want to take a look). These work fine when I'm browsing
in any browser on my Win98 desktop--but when I use any browser in
Linux (Opera, Konquerer, Netscape 7.0, doesn't matter), the pages are
displayed as plain text--in other words, I am shown the underlying
Python script.

I tried to tell Opera to view .py scripts as text/html, but this did
not fix the problem. Not sure what else to do, since the situation
makes no sense to me. I would have thought Web browsing should be as
independent as possible from the client OS--but apparently I am wrong,
at least when it comes to Linux.

Can anybody tell me why this is happening, and what the cure is? I
can't believe that every Pythonista running Linux on their desktop is
unable to view CGI pages coded in Python - the whole thing is either
laughable or mind-boggling, an open-source nightmare.




More information about the Python-list mailing list