Why doesn't my CGI script work properly?

Newly uploaded scripts can contain errors, which cause it to not work properly. The most common error message is: "Internal Server Error -The server encountered an internal error or misconfiguration and was unable to complete your request." There are several reasons that explain why a CGI script does not work:

  • Script is not executable
  • The first line of your script does not point to the correct Perl path
  • Misconfigurated script
  • You uploaded the script in binary mode and not in ASCII mode.

By changing permissions in the files on your FTP program, you can make the script executable. In most programs, you can just access file properties and change the permission to 755 (rwxr-xr-x). However, this can vary from program to program and according to the type of script. It is also important that the first line of your script contains the command "#!/usr/bin/perl".
Some scripts, like guestbooks, need extra configuration. We recommend checking the README files which follow the script. These files contain instructions to configure your script correctly.

Norwegian office

WebDeal
C.J. Hambros pl. 2A
0164 Oslo
Norway
Phone: +47 61 13 16 50
Fax: +47 61 13 16 51

North American office

WebDeal
101 California Ave, Suite 2450 #602
San Francisco, CA 94111
USA
Phone: 1.866.613.1442
Fax: 1.415.839.6160

United Kingdom office

WebDeal
2 Sheraton Street
Soho, London
W1F 8BH
United Kingdom

Technical department

WebDeal
Teknologiveien 22
N-2815 Gjøvik
Norway

Contact us

Phone: +47 61 13 16 50
Fax: +47 61 13 16 51
E-mail: sales@webdealhosting.com