Computing/CGI: Difference between revisions

From OpenWetWare
Jump to navigationJump to search
No edit summary
No edit summary
 
Line 2: Line 2:
*[http://www.cs.tut.fi/~jkorpela/http.html Quick reference to HTTP headers]
*[http://www.cs.tut.fi/~jkorpela/http.html Quick reference to HTTP headers]
*[[Perl/CGI|Perl CGI]]
*[[Perl/CGI|Perl CGI]]
==Error 500==
* Was your script uploaded to the server in 'text' mode? (Is your FTP client set to recognize .py files as text?)
* Have you set the script permissions to mode 755 (executable by the web server)?
* Have you set the path to the script interpreter in the first line correctly?
* Did you print valid header lines, including the final blank line?
* Finally, some servers require the script to be in the cgi-bin folder (or a subdirectory) and some even require the file extension to be .cgi rather than .py or .pl.

Latest revision as of 14:24, 12 June 2007

Error 500

  • Was your script uploaded to the server in 'text' mode? (Is your FTP client set to recognize .py files as text?)
  • Have you set the script permissions to mode 755 (executable by the web server)?
  • Have you set the path to the script interpreter in the first line correctly?
  • Did you print valid header lines, including the final blank line?
  • Finally, some servers require the script to be in the cgi-bin folder (or a subdirectory) and some even require the file extension to be .cgi rather than .py or .pl.