HostMonster Web Hosting Help

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

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 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 it's 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.

Knowledgebase Article 144,072 views bookmark tags: cgi (updated 1527 days ago)

Was this resource helpful?

Did this resolve your issue?

Please add any other comments or suggestions about this content:

Recommended Help Content

What is CGI? (updated 1141 days ago)
Knowledgebase Article 111,204 views tags: cgi

Does your company have any limit about CGI script use? (updated 1141 days ago)
Knowledgebase Article 133,650 views tags: cgi script

I need help with my CGI script? (updated 2165 days ago)
Knowledgebase Article 117,005 views tags: cgi scripting

Related Help Content

Error Log receiving this error: PHP Warning: Zend Optimizer for PHP 4.4.x cannot be found (expected at '/usr/local/Zend/lib/Optimizer-2.5.10/php-4.4.x/') - try reinstalling the Zend Op (updated 1252 days ago)
Knowledgebase Article 51,294 views tags: found optimizer zend

Understanding the Basics of CGI. (updated 1141 days ago)
Knowledgebase Article 225,108 views tags: cgi

Can I add my own CGI scripts? (updated 1145 days ago)
Knowledgebase Article 172,341 views tags: cgi scripts

How to run CGI scripts for Addon domains. (updated 1137 days ago)
Knowledgebase Article 85,790 views tags: cgi htaccess

My Ruby on Rails installation keeps displaying a '404 Not Found' error. (updated 1200 days ago)
Knowledgebase Article 135,492 views tags: file missing public rails ruby

How do I change file permissions? (updated 935 days ago)
Knowledgebase Article 170,688 views tags: cgi permissions

Short tutorial on how to set file and user Permissions in cPanel. (updated 1137 days ago)
Knowledgebase Article 154,795 views tags: file permission permissions rights

This article will explain how to run php and other file types using Cron jobs. (updated 119 days ago)
Knowledgebase Article 265,994 views tags: cron file jobs php