Overview of the Apache TPF Port

Configuration Files  | What's Available  | CGI Scripts  | Porting Notes ]

This version of Apache includes changes allowing it to run on IBM's EBCDIC-based TPF (Transaction Processing Facility) operating system. Unless otherwise noted TPF version 4.1 PUT09 is required.

Refer to htdocs/manual/install-tpf.html for step-by-step installation instructions.

As this is the first cut at making Apache run on TPF, performance tuning has not been done.

This port builds upon the EBCDIC changes previously made to Apache.


Apache Configuration Files

The distributed configuration files (httpd.conf-dist and mime.types, both located in the conf subdirectory) work on TPF. Performance considerations may dictate setting KeepAlive to "Off" (the default is "On") or lowering the Timeout value from the default 300 seconds (5 minutes) in order to reduce the number of active ECBs on your system.


What's Available in this Version

(The Apache organization provides online documentation describing the various modules and components of the server.)

Components/modules tested on TPF:

  1. Use of mod_access directives "allow from" & "deny from" with host names (verses ip addresses) requires TPF version 4.1 PUT10
  2. CGI execution requires TPF version 4.1 PUT10

Components/modules not yet supported on TPF:

Components/modules that don't apply or that probably won't ever be available on TPF:


How to Use CGI Scripts

The following is a very simple example of a CGI script ("Hello World") and the necessary steps to run it.
Refer to the mod_cgi module for additional information.

Add necessary directives to httpd.conf:

Create the CGI script:

Mark the script as executable:

Create, load, and activate a loadset containing the CGI program (QZZ1xx):

Request the CGI script from a browser:


Porting Notes

Changes made due to differences between UNIX and TPF's process models:

Find that function...

Some simple functions & definitions initially needed to be added on TPF, such as FD_SET(). We've put these in src/os/tpf/os.h for now.

EBCDIC changes:

TPF-specific conversion tables between US-ASCII and EBCDIC (character set IBM-1047 to be exact) were created and put into ebcdic.c in the src/os/tpf directory.

Miscellaneous, minor changes:

Various minor changes (such as casting) were made due to differences in how some functions are implemented on TPF.

top  | Configuration Files  | What's Available  | CGI Scripts  | Porting Notes ]