Development Island

General Perl, Python and CGI Setup information

Please use the the following executable locations when writing your CGI programs.
Path to Perl:  #!/usr/bin/perl
Path to Python:  #!/usr/bin/python

Execution
Please upload any CGI programs into the "cgi-bin" directory of your website. You can use any file extension you like. Please set the mode of your programs to be "0755" this enables the following.

Owner:  read, write, execute
Group:  read, execute
Others:  read, execute
File modes can be set using your FTP client.

Permissions
Your CGI programs run as the same user as you use to upload to your website. This means that your CGI programs can create/delete or modify any file that you can via FTP.

File format
Please upload all your programs in "UNIX" format. This can be done in windows using a text editor such as Ultra Edit. If you are using the Mac the standard text editor has a feature to save in this format.

Using your own binaries
We allow you to use your own compiled programs on your site, such as a built C programs. If you are having trouble getting them to run, try uploading a static version of the program. These must be i386 Linux compatible.

Other Content
The "cgi-bin" directory only serves executable files, if you need to display an image or other content type from a CGI program please make sure any hyperlinks include a leading forward slash "/". This means the any non-CGI content will be retrieved from the standard "htdocs" directory of your site.

Other binaries installed on server
Sendmail:  /usr/lib/sendmail -t
Fly:  /usr/bin/fly

Debugging
Any errors that occur in your CGI script will be sent either to the browser or to the server error log.
You can view your error logs from our Members section by using the "View Logs" option or by downloading them via FTP from the "/logs" directory of your site.