PDA

View Full Version : [ubuntu] Apache - not executing .py files


TreeFinger
January 19th, 2009, 06:35 PM
I have an apache web server set up and I am trying to allow it to execute .py files. (Do I need to change the endings to '.cgi'???)

When I fill out the form on the HTML page, and hit submit. The browser attempts to DOWNLOAD the .py file, instead of executing it.

The file is set as executable and it is owned by 'root'.

What config files do you guys need to check out to help me?!

I appreciate your help very much.

Titan8990
January 19th, 2009, 08:22 PM
I am not an expert on this nor have I tried it, but I have read about this and it seems to be what you need: http://www.modpython.org/.