Why am I getting 'File Not Found' when executing my CGI script?

"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 MyPage.html and their script looks for mypage.html then it's going to fail to
find it.
  • 0 Users Found This Useful
Was this answer helpful?

Related Articles

Is there a limit on CGI script use?

We do not put limits on cgi scripts outside the use of malicious or harmful/damaging scripts.

What is the path to PERL?

The perl path is the very first line in every .cgi or .pl file. The path to the perl interpretor...

Can I add my own CGI scripts?

Our LINUX web servers have the capability to run CGI scripts in your own "cgi-bin"...

Understanding CGI Basics

Q. What Is CGI and how is it going to help me? A. CGI is translated as Common Gateway Interface....