The most common cause of this is a CGI script that doesn't actually execute successfully. If your CGI script won't run at all, the Web server just throws up its hands and gives out this generic, unhelpful error. The most common causes of this problem are: Uploading a text CGI script (ie, a Perl script) in binary mode from a PC or Macintosh. These systems use a different linefeed convention from Unix, and you must set your FTP client to ASCII or text mode when uploading them. If you do not, the script simply will not work. In this case you must run the following command in a telnet session: dos2unix name-of-the-script Failing to set the executable bits on the script. This is done with the command chmod 755 filename via Telnet or the more complex “ quote site chmod 755 filename “ via FTP (your client may have its own interface for this). Using the wrong URL to reach your script. The URL should resemble: http://www.domain.com/cgi-domain/filename Run-time or interpreter errors. In some cases you are receiving an error in your browser because the script doesn’t compile correctly. To verify if this is the case try to run the script in a telnet session. If the script doesn’t compile you will receive a message with more information about the problem. |