Setting up Python for CGI
Michael Beattie
mtbeedee at gmail.com
Fri Jul 15 13:36:45 UTC 2005
On 7/15/05, Gregory PiƱero <gregpinero at gmail.com> wrote:
> > try changing this section to:
> >
> > ---------------------------------------
> > #!/usr/bin/env python
> >
> > import cgitb; cgitb.enable()
> > import sys
> > sys.stderr = sys.stdout
> >
> > import cgi
> > import MySQLdb
> > ---------------------------------------
> >
> > That should make it more robust (by being independant of the web server's
> > paths etc.), and give it a better chance of sending errors to the browser.
>
> I made these changes but I'm still getting the same problem. Wow,
> this is weird. Any ideas?, I'm stuck.
>
> Thanks,
>
> Greg
>
> --
> ubuntu-users mailing list
> ubuntu-users at lists.ubuntu.com
> http://lists.ubuntu.com/mailman/listinfo/ubuntu-users
>
Did you ever install mod_python?
More information about the ubuntu-users
mailing list