IBM Support

How to Manually Create a HTTP Server

Troubleshooting


Problem

This document contains instructions on how to manually create a HTTP server from your IBM® i server.

Resolving The Problem

If you are in a situation where the IBM Web Administration Server is unusable, you must create a HTTP server immediately. The instructions for manually creating the HTTP server follow:

1Create the member for your HTTP server in the following file:

WRKMBRPDM FILE(QUSRSYS/QATMHINSTC).

Press Enter.
2Enter option 3 next to APACHEDFT, and press F4 to prompt the COPY command.
3Change the To member (TOMBR) or label parameter to whatever you would like to name your new HTTP server. This will be defined as <serverName> for use throughout this document.

Note: The name of the HTTP server cannot exceed 10 characters.
4Press Enter to accept the changes.
5Once the member is created, do the following:

aType 18 next to the member name to edit it in DFU. Then press Enter.
bPage down once.
cChange the Instance Data value from the following:

-apache -d /www/apachedft -f conf/httpd.conf -AutoStartN
to
-apache -d /www/<serverName> -f conf/httpd.conf -AutoStartN.

Where <serverName> is the name of the member you just created. You also have the option of autostarting the HTTP server when the STRTCPSVR *HTTP *ALL is issued.
dTo change the HTTP server to autostart, change the -AutoStart N value to -AutoStart Y.
ePress F3 to Save/Exit.
6Execute the following commands from the 5250 command line:

MKDIR '/www/<serverName>'
MKDIR '/www/<serverName>/conf'
MKDIR '/www/<serverName>/logs'
MKDIR '/www/<serverName>/htdocs'

Once again, <serverName> is the name of the member created in Step 3.
7Copy the httpd.conf file from the following:

/www/apachedft/conf
to
/www/<serverName>/conf.


8Edit the httpd.conf and change all references to apachedft to <serverName>.
9Now your HTTP server has been created and is ready. Any changes to what port it listens on or configuration options can be done by editing the httpd.conf file.

Notes:

1 The Listen *:80 directive in the httpd.conf file instructs the HTTP server to listen on port 80 for all TCP interfaces. If you want your HTTP server to listen on a different port, change the port number in the Listen directive.

2 Listen 1.1.1.1:10000 - The HTTP server will only listen over the TCP interface 1.1.1.1 for port 10000.

[{"Type":"MASTER","Line of Business":{"code":"LOB57","label":"Power"},"Business Unit":{"code":"BU058","label":"IBM Infrastructure w\/TPS"},"Product":{"code":"SWG60","label":"IBM i"},"Platform":[{"code":"PF012","label":"IBM i"}],"Version":"6.1.0"}]

Historical Number

489846876

Document Information

Modified date:
11 November 2019

UID

nas8N1013611