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.

Norway

Basefarm AS
Nydalen Allé 37a
0484 Oslo
Norway
Phone: +47 4000 4100
Fax: +47 4000 4080

Sweden

Basefarm AB
Sveavagen 159
11346 Stockholm
Sweden
Phone: +46 8 5011 2600
Fax: +46 8 657 9110

Netherlands

Basefarm BV
Beechavenue 106
1119 PP Schiphol-Rijk
Netherlands
Phone: +31(0) 20 406 64 66
Fax: +31(0) 20 406 64 57

Contact us

E-mail: post@basefarm.no