Set up CGI programs for HTTP Server (powered by Apache)

This topic describes how to set up your HTTP Server to use CGI programs.

Important: Information for this topic supports the latest PTF levels for HTTP Server for i5/OS . It is recommended that you install the latest PTFs to upgrade to the latest level of the HTTP Server for i5/OS. Some of the topics documented here are not available prior to this update. See http://www.ibm.com/servers/eserver/iseries/software/http/services/service.htm Link outside Information Center for more information.

The following discusses how to set up your HTTP Server (powered by Apache) to use your CGI programs.

CGI settings

You can set values associated with CGI jobs.

To set CGI settings, do the following:

  1. Click the Manage tab.
  2. Click the HTTP Servers subtab.
  3. Select your HTTP Server (powered by Apache) from the Server list.
  4. Select the context you want to work with from the Server area list.
  5. Expand Server Properties.
  6. Click Dynamic Content and CGI.
  7. Click the General Settings tab in the form.
  8. Depending on the server area you selected, enter the values associated with your CGI jobs.
  9. Click OK.

Persistent CGI settings

Persistent CGI is an extension to the CGI interface. It allows a CGI program to remain active across multiple browser requests and maintain a client session.

To set persistent CGI settings, do the following:

  1. Click the Manage tab.
  2. Click the HTTP Servers subtab.
  3. Select your HTTP Server (powered by Apache) from the Server list.
  4. Select the context you want to work with from the Server area list.
  5. Expand Server Properties.
  6. Click Dynamic Content and CGI.
  7. Click the Persistent CGI tab in the form.
  8. Depending on the server are you selected, enter the values associated with the CGI jobs.
  9. Click OK.

See the Developer Resources topic at http://www.ibm.com/eserver/iseries/http Link outside Information Center for sample CGI programs.