What is CGI? Print

  • 84

CGI stands for Common Gateway Interface. It's used to provide interactivity and turn static pages into dynamic ones. For example, forums where posts are entered and replied to, guest books with entries, content management systems (CMS) which pull content in from other sites, etc.

CGI scripts are usually fairly easy to install. Most come with instructions to follow. Follow the instructions that are supplied with the script. Also:

  1. Ensure the path to perl is set to #/usr/bin/perl within the script
  2. Upload it in ASCII mode (some files may need binary mode such as graphics)
  3. Set your file and directory permissions correctly as per the instructions provided with the script. Usually they will be set to 755 or 777. If your script needs a hostname, try localhost.

You can set permissions by going to Cpanel, click on File Manager, click on the folder icon next to public_html to enter the folder, click on the name of the file or folder, click change permissions, and check the boxes on the permissions you want.

You can also do this via FTP with a program such as Filezilla.

FTP programs differ on how to set permissions but it is generally a setting entitled permissions or CHMOD


Was this answer helpful?

« Back