Install > Installing WebSphere Commerce > Installing WebSphere Commerce using the custom installation > Create a WCS instance > Mandatory post-instance creation tasks
Use IBM HTTP Server for i
Set up the system to use IBM HTTP Server for i remotely.
After the WCS instance is created successfully, do the following steps:
Procedure
- On the remote Web server machine, verify that the following Web server configuration files exist:
- WC_USER/instances/instance/httpconf/httpconf.conf
- WC_USER/instances/instance/httpconf/plugin-cfg.xml
- WC_USER/instances/instance/httplogs
- WC_USER/instances/instance/web
- WC_USER/instances/instance/web/index.html
- On the remote Web server machine, assign a certificate to the HTTP server. Refer toWeb server post-instance creation tasks.
- On the remote Web server machine, open a QShell session and issue the command:
chmod -R 755 /QIBM/UserData/CommerceServer70/instances/instance
- As a check, ensure the WCS instance and associated Web server start successfully.
- Log into the WebSphere Administrative Console.
- Navigate to...
Servers | Web servers | webserver1 | Additional Properties | Remote Web server managementEnter the remote_user and remote_password. Click OK.
- Save the changes.
- On the Web servers panel, check the box for webserver1 and click Generate Plug-in.
- On the Web servers panel, check the box beside webserver1 and click Propagate Plug-in.
- Log out of the Administrative Console.
- Restart the WebSphere Commerce Web server.
- On IBM i, on the WebSphere Commerce machine, create a save file in a temporary library. Issue the following command:
SAV DEV('/qsys.lib/templib.lib/savf.file) OBJ(('WC_PROFILE/installedApps/WC_instance_cell/WC_instance.ear)) SUBTREE(*ALL) SAVACT(*YES)Where
- templib
- is the temporary library the save file is created in.
- savf
- is the save file created
- Use FTP in binary mode to copy the save file from the WebSphere Commerce machine to the remote Web server machine.
- On the remote Web server machine, start a System i Navigator session.
- Create the following directory:
WC_PROFILE/installedApps/WC_instance_cellThe directory that is created must be identical to the directory on the WebSphere Commerce machine.
- On the remote Web server machine, restore the save file that was created in step 12. Use the following command:
RST DEV('/qsys.lib/templib.lib/savf.file) OBJ(('WC_PROFILE/installedApps/WC_instance_cell/WC_instance.ear)) SUBTREE(*ALL) ALWOBJDIR(*OWNER)
- On the remote Web server machine, assign the correct permissions to the Web server objects. Issue the following commands:
CHGAUT OBJ(WC_PROFILE) USER(QTMHHTTP) DTAAUT(*RX) SUBTREE(*ALL)
CHGAUT OBJ(WC_PROFILE) USER(QTMHHTTP) DTAAUT(*RWX) SUBTREE(*ALL)
- On the remote Web server machine, only static content files are required. Remove the following files:
WC_PROFILE/installedApps/WC_instance_cell/WC_instance.ear/*.jsp
WC_PROFILE/installedApps/WC_instance_cell/WC_instance.ear/*.jar
WC_PROFILE/installedApps/WC_instance_cell/WC_instance.ear/*.rar
- Restart the WebSphere Commerce Web server.
Results
The IBM HTTP Server for i is configured to run remotely with an IBM i machine.