This example is for users that are not familiar with the
Web serving environment. It describes all the steps necessary to get IBM i
Access for Web running in an integrated
Web application server instance. It also describes how to verify that
the setup is working.
Configuring your Web serving environment consists of these
steps:
- Start the IBM Web Administration
for i interface. See step 1.
- Create an integrated Web application server instance. See step 2.
- Configure IBM i
Access for Web.
See step 3.
- Start the Web environment. See step 4.
- Use a browser to access IBM i
Access for Web.
See step 5.
Steps to configure the Web serving environment:
- Start the IBM Web
Administration for i interface.
- Start a 5250 session to the system.
- Sign on with a user profile that has at least these
special authorities: *ALLOBJ, *IOSYSCFG, *JOBCTL, and *SECADM.
- Run the following command to start the web administration
interface job:
STRTCPSVR SERVER(*HTTP) HTTPSVR(*ADMIN)
- Minimize the 5250 session.
- Create an integrated Web application server
instance.
- Open a browser to
http://<system_name>:2001/HTTPAdmin.
- Log in with a user profile that has, at least these
special authorities: *ALLOBJ, *IOSYSCFG, *JOBCTL, and *SECADM.
- Select the Setup tabbed page.
- Under Common Tasks and Wizards, select Create
Application Server.
- The Create Application Server page opens. Select Next.
- Select an option under IBM integrated Web application server for i,
then select Next.
- The Specify Application Server Name page opens. For Application
server name, specify
IWAIAS. This will
be the name of the integrated Web application server. Select Next.
- The Specify Internal Ports Used by the Application Server
page opens. For First port in range, change
the default value to
21060. This port number is an
example. You should verify this port is available for use, or use
a port you know is available. Select Next.
- The Create a new HTTP server (powered by Apache) page
opens.
- For HTTP server name, enter
IWAIAS
- For Port, specify
2060. This port number is an
example. You should verify this port is available for use, or use
a port you know is available.
Select
Next.
- The Specify User ID for this Server page opens. Select Next.
- The Sample Applications page opens. Select Next until
the Summary page opens.
- Select Finish.
- The Web page is re-displayed with the tabbed page active. Under Server,
IWAIAS is listed with a status of Creating.
From this Web page, you can manage the integrated Web application
server.
Use the refresh icon next to the Creating status
to refresh the page, if the page does not periodically refresh.
Important: Wait for the status to be updated to Running before
moving to the next step.
- Minimize the browser window.
- Configure IBM i
Access for Web.
- Restore the 5250 session window.
- IBM i
Access for Web provides
commands to configure the product. Two different commands are provided,
a CL command and a Qshell script command. Both commands provide and
perform the same function. Use the version which works best for your
circumstances.
To use the CL command, follow these
steps:
- Configure IBM i
Access for Web for
your Web application server by using the following command:
CFGACCWEB APPSVRTYPE(*INTAPPSVR) INSTANCE(IWAIAS)
These
are the parameters used:
- APPSVRTYPE
- Tells the command which Web application server to configure.
- INSTANCE
- Tells the command which IBM integrated
Web application server for i instance to configure.
For help on this command and the parameters, press
F1.Migration Note: If you are already
using
IBM i
Access for Web within
another Web application server, refer to the
New Web application server considerations topic.
This topic discusses additional
CFGACCWEB command
parameters that can be input to migrate user data from an existing
configuration to this new configuration.
- Several messages similar to these will be displayed:
- Configuring IBM i
Access for Web.
- Preparing to perform the configuration changes.
- IBM i
Access for Web command
has completed.
- Press F3 or Enter when the command completes to exit the display
session.
To use the Qshell script command, follow these steps:
- Start the Qshell environment by using the following CL command:
QSH
- Make the IBM i
Access for Web directory
the current directory. Run this command:
cd /QIBM/ProdData/Access/Web2/install
- Configure IBM i
Access for Web for
the Web application server previously created:
cfgaccweb -appsvrtype "*INTAPPSVR" -instance "IWAIAS"
These are the parameters used:
- -appsvrtype
- Tells the command which Web application server to configure.
- -instance
- Tells the command which IBM integrated
Web application server for i instance to configure.
For help on this command and the parameters, specify
the -? parameter. Migration Note: If
you are already using
IBM i
Access for Web within
another Web application server, refer to
New
Web application server considerations. This topic discusses
additional
cfgaccweb command parameters
that can be input to migrate user data from an existing configuration
to this new configuration.
- Several messages similar to these will be displayed:
- Configuring IBM i
Access for Web.
- Preparing to perform the configuration changes.
- IBM i
Access for Web command
has completed.
- Press F3 when the command completes to exit the Qshell
session.
- If the command were to fail or indicate
an error, refer to the log files:
- /QIBM/UserData/Access/Web2/logs/cmds.log
High level,
cause and recovery information; translated.
- /QIBM/UserData/Access/Web2/logs/cmdstrace.log
Detailed
command flow for IBM Software
Service; English only.
- After successfully configuring IBM i
Access for Web, the IBM integrated Web application server instance
must be restarted to load the changes to its configuration. This will
be done later.
- Signoff the 5250 session window and close the window.
- Start the Web environment.
- Return to the browser window that is open to the IBM Web Administration for i server
management page.
- The tabbed page should be active. Under
Server IWAIAS is listed with a status of Running.
Stop and restart the integrated Web application server:
- Select the red icon next to the Running status
to stop the integrated Web application server. The IWAIAS HTTP server
will also be stopped. Select the refresh icon next to the Stopping status
to refresh the page if the page does not periodically refresh.
- When the status is updated to Stopped,
select the green icon next to Stopped to start
the integrated Web application server. The IWAIAS HTTP server will
also be started.
- The status will be updated to Starting.
Select the refresh icon next to the Starting status to refresh the
page if it does not periodically refresh.
Important: Wait
for the status to be updated to Running before moving to the next
step.
IBM i
Access for Web will
load and start as the integrated Web application server starts.
- Close the browser window.
- Use a browser to access IBM i
Access for Web.
- Open a browser to either of the following addresses
to access IBM i
Access for Web:
http://<system_name>:2060/webaccess/iWAHome
http://<system_name>:2060/webaccess/iWAMain
- Log in using an IBM i user ID and password.
The initial load of IBM i
Access for Web might
take a few seconds. The integrated Web application server is
loading Java™ classes for the
first time. Subsequent loads of IBM i
Access for Web will be faster.
- The IBM i
Access for Web Home or Main page
displays.
- Close the browser window.
By following the preceding steps, you completed these tasks:
- Created a integrated Web application server named IWAIAS.
- Configured IBM i
Access for Web for
the integrated Web application server instance.
- Stopped and restarted the integrated Web application server and
HTTP Web server instance. IBM i
Access for Web started
when the integrated Web application server instance started.
- Verified that IBM i
Access for Web can
be accessed from a Web browser.
In this example, only the
CFGACCWEB/cfgaccweb command
is used to configure
IBM i
Access for Web For
more information about using all the
IBM i
Access for Web commands, use the
CL command finder, which will find
IBM i
Access for Web CL commands. As shown
above, there are also equivalent Qshell script commands.
You can
refer to the CL command online help to learn how to use the other
Qshell script commands.