On 1-May-07, at 5:03 AM, Brian Wichmann wrote:
> Dear all,
>
> I have prototyped a system using MySql and Python which needs to be
> adjusted to use the HTML form data via a web server. I am on 10.4.
Chances are Apache isn't set up to handle a .py as an executable.
Make sure you've got lines like
AddHandler cgi-script .cgi
AddHandler cgi-script .py
in /etc/httpd/httpd.conf (you might have the first one but not the
second, I can't remember what comes stock in OS X's apache configs)
Make sure the "LoadModule cgi_module ..." line is uncommented as well
as the "AddModule mod_cgi.c" line (search for them).
Once you're sure all this is in place, "sudo apachectl graceful" at a
prompt.
Cheers,
David
_______________________________________________
Pythonmac-SIG maillist - [email protected]
http://mail.python.org/mailman/listinfo/pythonmac-sig