Getting File Not Found When Executing Your CGI?
Getting an error File Not Found when executing your CGI script? It's all too common and usually involves one of the following situations. We will walk through the step that will help you debug it: checking the path of the script, checking permissions in the directory, and up-loading the file in an appropriate format. Let's get your CGI script going!
Troubleshooting "File Not Found" Errors in CGI Scripts
Why am I seeing "File Not Found" or "No Such File or Directory" when executing my CGI script? This is usually the result of CGI scripts being uploaded the wrong way. First, verify the path you're using is correct; remember that directories and files are case-sensitive. A misspelled, but otherwise, the correct path would fail with a 404 error. Also, verify your script has been uploaded in ASCII mode. This is used for all text-based uploads. Binary is for image files, zip files, and other non-text files.
Your FTP program will typically use Automatic
Summary
The CGI debugging "File Not Found" will finally boil down to the very basics. Check your file path, permissions, and mode in which the script was uploaded, and that's when you should be getting these otherwise simple scripts working too.