Why doesn't my CGI work?

Make sure, when you upload the CGI file, that you DO NOT upload it in binary mode - rather, use ASCII mode. Uploading in binary mode will cause the server to not recognize the scripts as executables. Most FTP clients will upload .pl or .cgi files in binary mode by default, so you will need to manually change this. You will need to upload the scripts into your cgi-bin directory for security reasons, however they will execute from anywhere within your account.


The last step is to set-up the file permissions. This is also known as “CHMODing" and can be done from most FTP clients. For specific queries on chmoding, please refer to our CHMODing General Informat

  • 7 Users Found This Useful
Was this answer helpful?

Related Articles

What is CGI?

CGI (“Common Gateway Interface") includes programs that run on servers so as to enhance the...

Do you allow CGI to run on your servers?

We do allow running of CGI scripts on our servers; however, they must conform to our acceptable...

What’s the correct path to perl?

Before a CGI script will work, certain modifications must be made. Certain paths must be...

What is the path to send mail?

Another program that needs to be specified in many scripts is sendmail. This is located at...

What is the exact physical path to your root directory on the web-server?

  The path to your root directory is: /home/username/ Obviously, substitute "username" with...