The File Extensions Database

.CGI File Extension

  • Category: Executable Files
  • Format: Text and Binary

What is an .CGI file?

.CGI is Common Gateway Interface Script

A CGI file is an executable script written in the Perl or C programming language. It is typically stored in the "cgi-bin" folder within a website directory on a web server and can only be edited if it is not pre-compiled.

CGI scripts are often used for running basic web scripts. Examples include sending e-mail messages from a web form (also called "formmail") and rotating advertisements within a website.

Programs that open Common Gateway Interface Script
File Viewer Plus
Richardson EditRocket
Microsoft Notepad
Bare Bones BBEdit
MacroMates TextMate
Richardson EditRocket
Richardson EditRocket

How to solve problems with CGI files

  • Associate the CGI file extension with the correct application. On :
    Windows: Right click on any CGI file and then click "Open with" > "Choose another app". Now select another program and check the box "Always use this app to open *.CGI files". Mac: Right click (or Ctrl-click) the CGI file, then click "Open with" > "Other...". Then choose another program and check the "Always Open With" box. Linux: Right click on the file, and select "Open with" and choose another program. iPhone: Tap the file. If you do not see an app to open the file, then tap Share "Share" and choose an app. Alternatively, save the file. Then open the Files app Files app. There long-press on the file, then release your finger. You will see a black menu bar. Then tap "Share" and select an app. Android: Tap the Settings icon on your smartphone, then tap on the Apps section. There tap the Options icon in the top right-hand corner of the screen to change the default apps.
  • Update your software that should actually open .CGI is Common Gateway Interface Script. Because only the current version supports the latest CGI file format. Search, therefore, e.g. on the N/A manufacturer website after an available .CGI is Common Gateway Interface Script update.
  • To make sure that your CGI file is not corrupted or virus-infected, get the file again and scan it with antivirus software.