Support Centre

Find articles, help and advice.

Welcome, Guest Login

Support Center

BES - Enabling CGI access in the BSD

Last Updated: Feb 07, 2017 10:18AM UTC
What is CGI?
A Common Gateway Interface (CGI), is a standard of transferring information between the web server and a CGI program/script. CGI programs are commonly used as a way for the server to dynamically interact with the user.

Enablement of CGI in BSD:
By default CGI is disabled to enable you will need to do the following:
  1. Go to the the apache config directory
  2. Edit the 'httpd.conf' file
  3. Uncomment line 141: #LoadModule cgid_module modules/
  4. Change line 334: ScriptAlias /cgi-bin/ "cgi-bin" TO ScriptAlias /cgi-bin/ "<cgi script directory>/cgi-bin/"
  5. Change line 350: <Directory "cgi-bin"> TO  <Directory "cgi scripts directory>/cgi-bin">
  6. Save and Exit
  7. Go into the extra directory and edit the 'httpd-ssl.conf' file
  8. Change line 204: <Directory "cgi-bin"> TO <Directory "cgi scripts directory>/cgi-bin"> 
  9. Save and Exit
NOTE: Ensure to add the scripts into the directory which you defined in the configuration files.

Example Directory:
ScriptAlias /cgi-bin/ "/opt/ISS/apache2/cgi-bin/"

Contact Us
seconds ago
a minute ago
minutes ago
an hour ago
hours ago
a day ago
days ago
Invalid characters found