Frequently Asked Questions

Common CGI questions and problems

The most common problem that people have with cgi scripts is the permissions on the script. In order for a script to run, it must have execute permissions. If you are getting this error:


Forbidden

You don't have permission to access /cgi-bin/test.pl on this server.

You need to change the permissions to '755'. You can do this with most ftp clients, or through ssh.


The next most common problem is the 'mode' that you upload the script in. (i.e., from your editor to the server). You need to configure your ftp client to upload ".cgi" and ".pl" files in "ASCII" mode. The error you will recieve if you do not upload in ASCII mode is:


Internal Server Error

Premature end of script headers: /home/you/cgi-bin/script.cgi

If you still are getting an error message, chances are that there is a syntax error in your script. To find out what the error is, you should 'ssh' into your account, and run the perl interpreter on the script.

  • How to ssh into your account: (in win95/98)

    You will need to install an SSH client. Liquid recommends putty, a free windows client

  • How to check for syntax errors in a script.

    You will need to install an SSH client. Liquid recommends putty, a free windows client.
    • 1. Log into your account through ssh. (see above)
    • 2. Assuming your script is in 'cgi-bin', type "cd www/cgi-bin", hit enter.
    • 3. Type "perl scriptname.cgi" where 'scriptname.cgi' is the name of the script.
    • 4. Perl will tell you what is wrong with the script. Make the recomended changes.
To top



Silver plan
Total eCommerce Hosting
  • 4 GB of web space
  • 40 GB of file transfer
  • One year web hosting
  • Customized template and more!
Only $399!


We’re always here for you

Our Support staff is ready to answer any questions you may have 24/7.


Contact us today!

Powerful Servers

  • P4 2.8 GHz or faster
  • PC3200 DDR RAM
  • Dual hard disks - SCSI / IDE
  • Raid level 5