FabHosts.com Unlimited storage and bandwithFabHosts.com FabHosts Web Hosting Guide   Unlimited bandwidth hosting FabHosts Web Hosting Guide

Apache HTTP Server

Using Apache With HP MPE/iX

This document explains how to compile, install, configure and run Apache 1.3 under HP MPE/iX.

The bug reporting page and new-httpd mailing list are NOT provided to answer questions about configuration or running Apache. Before you submit a bug report or request, first consult this document, the Frequently Asked Questions page and the other relevant documentation topics. If you still have a question or problem, post it to the comp.sys.hp.mpe newsgroup or the associated HP3000-L mailing list, where many Apache users and several contributors are more than willing to answer new and obscure questions about using Apache on MPE/iX.

groups.google.com's newsgroup archive offers easy browsing of previous questions. Searching the newsgroup archives, you will usually find your question was already asked and answered by other users!


Apache 1.3 requires MPE/iX 6.0 or greater.  It will NOT run on earlier releases of MPE/iX.  The following MPE/iX patches (or their superseding descendants) are relevant to Apache:

Implementation Considerations

While MPE has a very good POSIX implementation that enables fairly simple porting of Unix applications such as Apache, there are some Unix concepts which just don't exist or aren't fully implemented in MPE, and so this may force some functionality changes in the package being ported.

Significant MPE vs. Unix OS differences

Major Apache functionality issues

Minor Apache functionality issues

Binary Distributions

HP ships a fully supported Apache binary distribution with the Fundamental Operating System (FOS) in MPE/iX 6.5 and later.  This distribution can be found in the APACHE account.

HP supplies fully supported Apache binary distributions for MPE/iX 6.0 or later available for downloading from http://jazz.external.hp.com/src/apache/.

Mark Bixby supplies Apache binary distributions for MPE/iX available for downloading from http://www.bixby.org/mark/apacheix.html.  Binaries from bixby.org are NOT supported by HP.  HP only supports binaries distributed by HP.

All of the binary distributions mentioned above may possibly include functionality that hasn't yet been submitted back to the Apache Software Foundation (though submitting back is the intended goal).  Please read the documentation that comes with these binaries in order to determine functionality differences (if any) compared to the latest sources available from the ASF.

If you will be using one of these binary distributions, please stop reading this document and start reading the specific distribution documentation for installation details.

Create the Accounting Structure

Apache can be installed under the account of your choice.  For the purposes of this document, the APACHE account will be used:

Downloading Apache

Use your web browser to download the Apache source tarball from http://www.apache.org/dist/httpd/.  Then ftp upload the tarball to your e3000 as show below:
C:\Temp>ftp 3000.host.name
Connected to 3000.host.name.
220 HP ARPA FTP Server [A0009H09] (C) Hewlett-Packard Co. 1990
User (3000.host.name:(none)): MGR.APACHE
331 Password required for MGR.APACHE.  Syntax: acctpass
230 User logged on
ftp> quote type L 8
200 Type set to L (byte size 8).
ftp> put apache_v.u.ff.tar.Z /tmp/apache.tar.Z
200 PORT command ok.
150 File: /tmp/apache.tar.Z opened; data connection will be opened
226 Transfer complete.
ftp: 2685572 bytes sent in 2.75Seconds 976.57Kbytes/sec.
ftp> quit
221 Server is closing command connection
Unpack the tarball:
  3. $ mkdir src
  4. $ chmod 700 src
  5. $ cd src
  6. $ tar xvfopz /tmp/apache.tar.Z

Compiling Apache

It is STRONGLY recommended to use gcc instead of the HP C/iX compiler.  You can obtain gcc from http://jazz.external.hp.com/src/gnu/gnuframe.html.
  1. $ cd apache_v.uu.ff
  2. $ ./configure --prefix=/APACHE/PUB --enable-module=xxx --enable-module=yyy ...etc...
  3. $ make

Installing Apache

  1. $ make install
  2. $ cd /APACHE/PUB
  3. $ mv bin/httpd HTTPD
  4. $ ln -s HTTPD bin/httpd
  5. $ callci "xeq linkedit.pub.sys 'altprog HTTPD;cap=ia,ba,ph,pm'"

Configuring Apache

Edit /APACHE/PUB/conf/httpd.conf and customize as needed for your environment.  Be sure to make the following mandatory changes:

Running Apache

Simply create and :STREAM the following standalone server job in order to start Apache:
!XEQ SH.HPBIN.SYS "-c 'umask 007; ./HTTPD -f /APACHE/PUB/conf/httpd.conf'"

Controlling Apache

Log on as MGR.APACHE (or MANAGER.SYS or any other SM user if you've installed MPELX36A on 6.0) in order to shutdown or restart Apache via the use of signals.

To shut down Apache from the POSIX shell:

$ kill `cat /APACHE/PUB/logs/httpd.pid`
To shut down Apache from the CI:
:XEQ SH.HPBIN.SYS '-c "kill `cat /APACHE/PUB/logs/httpd.pid`"'

FabHosts.com Unlimited storage and bandwithFabHosts.com FabHosts Web Hosting Guide   Unlimited bandwidth hosting FabHosts Web Hosting Guide