Please Login or Register

Why am I Getting File Not Found When Executing My CGI?

"File Not Found" or "No Such File or Directory"

This is usually the result of CGI scripts being uploaded the wrong way.
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 make sure they know that Linux 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.

Was this answer helpful?

Add to Favourites Add to Favourites

Print this Article Print this Article

Also Read
What is CGI? (Views: 3551)
Understanding CGI Basics (Views: 3850)

awards_sum