Setting up Python for CGI
Gregory PiƱero
gregpinero at gmail.com
Fri Jul 15 13:30:17 UTC 2005
> 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
More information about the ubuntu-users
mailing list