Q. I am getting an “Internal Server Error” when I try and run a perl/cgi script.
Posted by: Paul0 in CGI, MySQL, Perl, Programming LanquagesThere are two most probable causes.
1. if you upload your script using FTP, you must use ASCII as opposed to binary mode.
2. Windows as a hangover from its DOS days ends text lines with a carriage returns / newline pair where as Linux (based on Unix) ends text with just a newline character.
Compatability problems usually arise then when you edit your Perl/CGI script in notepad and upload to our Unix based servers.
We would therefore recommend a replacement for Notepad called TextPad. This will convert your (DOS formatted script) to one correctly formatted to Unix.







Entries (RSS)