If you are using assistive technology and are unable to read any part of the HostMonster website, or otherwise have difficulties using the HostMonster website, please call 866-573-HOST and our customer service team will assist you.
Skip to main content

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 182,947 views bookmark tags: cgi


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?
Knowledgebase Article 144,775 views tags: cgi

Does your company have any limit about CGI script use?
Knowledgebase Article 172,982 views tags: cgi script

I need help with my CGI script?
Knowledgebase Article 151,293 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/ZendOptimizer.so') - try reinstalling the Zend Op
Knowledgebase Article 86,957 views tags: found optimizer zend

Understanding the Basics of CGI.
Knowledgebase Article 281,508 views tags: cgi

When logging into phpMyAdmin, why do I get a 404 not found error?
Knowledgebase Article 89,432 views tags: database found phpmyadmin select

Can I add my own CGI scripts?
Knowledgebase Article 220,125 views tags: cgi scripts

The hosts file is a plain text file that allows you to set IP Addresses for a domain on your computer. This may override authoritative DNS.
Knowledgebase Article 10,786 views tags: admin development dns file hosts ip test

How to run CGI scripts for Addon domains.
Knowledgebase Article 124,156 views tags: cgi htaccess

My Ruby on Rails installation keeps displaying a '404 Not Found' error.
Knowledgebase Article 172,773 views tags: file missing public rails ruby

This article will explain how to utilize GZip through the file manager.
Knowledgebase Article 94,307 views tags: archive compress compression decompress file gzip management zip

This site utilizes JavaScript to function correctly. Looks like it's disabled on your browser. Please enable it for your best experience.

For instructions on enabling JavaScript, click here