[CGI3.01] How do I upload a CGI script to my web space?

CGI scripts can be uploaded to anywhere in your hosting package, however it's traditional to upload them into cgi-bin for security.


Many CGI scripts are written in Perl. Here are some helpful tips to follow when installing Perl scripts:

1. Upload to your cgi-bin directory and ensure proper file permission settings (755)
2. Upload in ASCII transfer mode (NOT BINARY mode).
3. The first line of each script must read: #!/usr/bin/perl
4. The script must end with a .cgi or a .pl extension.

Was this answer helpful?

 Print this Article

Also Read

[CGI3.08] Is mod_rewrite installed?

Yes, mod_rewrite is installed on our Linux servers, and Apache-style rewrites are available on...

[CGI3.09] How can I change the file name extension of my index page?

It is possible to name your default index page something other than index.html, index.cgi,...

[CGI3.06] What is Python?

Python is an interpreted, interactive, object-oriented programming language. It is often compared...

[CGI3.03] Where do I put CGI or Perl scripts? Do they have to be in a specific directory?

Although we provide a cgi-bin as standard you do not need to put your CGI scripts in there. You...

[CGI3.07] What is the path to ImageMagick?

The full path to the binary is:- /usr/bin/convertSome scripts request the directory path, rather...