A CGI script can be uploaded into any directory in your hosting package.
Traditionally, they are uploaded into the existing cgi-bin directory provided. This is for security as well as organisation. However, if you have a script that you want to keep in its own directory, you can create a new directory using File Manager or FTP, and place the script in there.
To upload your script:
If you are uploading using FTP, make certain you are uploading using ‘ASCII’ instead of ‘Binary’.
Once your script is uploaded, you will need to make sure it has the right permissions.
To set the permissions:
Many CGI scripts are written in Perl. If you have a Perl script, you must check that:
#!/usr/bin/perl
Article ID: 444
Created On: Mon, Mar 16, 2015 at 4:33 PM
Last Updated On: Thu, Apr 23, 2015 at 12:27 PM
Online URL: https://www.heartinternet.uk/support/article/how-do-i-upload-a-cgi-script-into-my-hosting-account.html