Salesforce

Apache Web Server Configuration (Magic xpi 3.x)

« Go Back

Information

 
Created ByKnowledge Migration User
Approval Process StatusPublished
Objective
Description

Apache Web Server Configuration (Magic xpi 3.x)

Before creating an Apache Web Server instance on IBM i, you need to ensure that the Apache Web Server's ADMIN instance is up and running. You can verify this by executing the following command:

WRKACTJOB SBS(QHTTPSVR)

You will see the following output:

Opt Subsystem/Job

User

Type

CPU

Function

Status

QHTTPSVR

QSYS

SBS

.0

DEQW

ADMIN

QTMHHTTP

BCH

.0

PGM-QZHBHTTP

SIGW

ADMIN

QTMHHTTP

BCI

.0

PGM-QZSRLOG

SIGW

ADMIN

QTMHHTTP

BCI

.0

PGM-QZSRHTTP

SIGW

ADMIN

QTMHHTTP

BCI

.0

PGM-QYUNLANG

TIMW

ADMIN

QTMHHTTP

BCI

.0

PGM-QYUNLANG

TIMW

ADMIN

QTMHHTTP

BCI

.0

PGM-QYUNLANG

TIMW

If the ADMIN instance is not up and running, you need to start the instance with the following command:

STRTCPSVR SERVER(*HTTP) HTTPSVR(*ADMIN)

Creating and maintaining an Apache Web Server instance on IBM i:

  1. Copy the Magic xpi folders: cgibin and scripts to /QOpenSys/<Magic xpi Apache folder>

  2. Configure the Apache server.

  3. Start the Apache administration console using the following URL:

URL:http://<Server>:2001/HTTPAdmin

  1. Select one of the Apache servers (or define a new one).

  2. Edit the Apache server configuration file and add the following definitions:

ScriptAlias /Magic xpi/ /QOpenSys/<Magic xpi Apache folder>/cgibin/

<Directory "/QOpenSys/<Magic xpi Apache folder>/cgibin/">

Options +ExecCGI

Order allow,deny

Allow from all

</Directory>

Alias /magicxpiutils/ /QOpenSys/<Magic xpi Apache folder>/scripts/

<Directory "/QOpenSys/<Magic xpi Apache folder>/scripts/">

Order allow,deny

Allow from all

</Directory>

  1. Restart the Apache server.

  2. Modify /QOpenSys/<Magic xpi Apache folder>/cgibin/MGREQ.INI and update the DefHtml entry: DefHtml = /magicxpiutils/ErrorPage.htm

Reference
Attachment 
Attachment