Why am I Getting File Not Found When Executing My CGI?
Posted by Support on 20 December 2007 04:22 AM
"File Not Found" or "No Such File or Directory"

This is usually the result of CGI scripts being uploaded the wrong way under UNIX Based Web Hosting. PERL is an interpreter and it wants text files to interpret. No compilation is done. So when people upload their scripts they need to be in ASCII mode. Not binary, and not automatic. ASCII mode. ASCII mode should be used for all text files and binary for things like .jpg's .zip's and such.

Also know that UNIX is a case-sensitive OS--so if the file they want is Marmot.html and their script looks for marmot.html then it's going to fail to find it. Also it is possible you have not CHMOD'ed your script.
(616 vote(s))
Not helpful

Comments (0)