Loading...

Knowledge Base
Switch to Bluehost and get money back
Migrate your WordPress website from your current host and we'll cover the costs.

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 and determine on its own what to use. however, in some cases it cannot determine this properly, in which case you'll have to manually set the mode. Please refer to your FTP program's documentation for assistance changing that.

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.

If you need further assistance, feel free to contact us via Chat or Phone:

  • Chat Support - While on our website, you should see a CHAT bubble in the bottom right-hand corner of the page. Click anywhere on the bubble to begin a chat session.
  • Phone Support -
    • US: 888-401-4678
    • International: +1 801-765-9400

You may also refer to our Knowledge Base articles to help answer common questions and guide you through various setup, configuration, and troubleshooting steps.

Did you find this article helpful?

 
* Your feedback is too short

Loading...