I\'m trying to get Python scripts, called from a web browser, to work. I keep getting the error:
500 Internal Server Error
When I check my err
One common error is the wrong path. I my case it was usr/bin/python. The other common error is not transferring the file in ASCII mode. I am using WinSCP where you can set it easily: Go to Options->Preferences->Transfers->click Edit and change the mode to Text.
This code should work:
#!/usr/bin/python
print "Content-type: text/html\n\n";
print "";
print "CGI Test ";
print "";
print "Test page using Python
";
print "";