Configuring a remote web server
If the web server is installed on a different node from WebSphere Commerce, create a WebSphere Commerce instance; then complete configuration of the web server node.
Procedure
- Ensure that you installed the WebSphere Application Server web server plug-in as described in Installing the WebSphere Application Server Web server plug-inInstalling the WebSphere Application Server Web server plug-inInstalling the WebSphere Application Server Web server plug-inInstalling the WebSphere Application Server Web server plug-in.
- Ensure that you enabled SSL on the web server node.
- Change the user profile on your remote
machine, so that the library of the remote instance is set to the
current library. To complete these changes, run the following command:
Where:CHGUSRPRF USRPRF(instance_name) CURLIB(instance_name)
- instance_name
- The name of the WebSphere Commerce instance.
- Propagate the plug-in configuration file by following the steps in Copying the plugin-cfg.xml file to Web server.
- If it does not exist, create directories on the web server
node so that you have the following path available on the web server
node:
- WC_profiledir/installedApps/cell_name
Ensure that the path for WC_profiledir is the same on the web server node and the WebSphere Commerce node.
- Copy the following directory from the WebSphere Commerce node
to the web server node:
- WC_profiledir/installedApps/cell_name/instance_name.ear
Note:Remove any JSP and JAR files from the WC_instance_name.ear directory on the web server. Only static-content files should be in this directory on the web server.
- Ensure that the web server read and execute permissions on all
files and directories in the
WC_profiledir/installedApps/
directory on the web server machine are correct.If the permissions on the files and directories are incorrect, you might not be able to access WebSphere Commerce.
- Remove any JSP and JAR files from the WC_instance_name.ear directory on the web server. Only static-content files should be in the WC_instance_name.ear directory on the web server.
- You must update the web server machine with a new Stores.war file
every time that you perform an action that updates the static web
content inside the application. For example, Store Publishing, and
Upload Logo. The Stores.war is located in the
following directory: WC_profiledir/installedApps/cell_name/WC_instance_name.ear/Stores.war Ensure
that the path to this file is the same on the web server node and
the WebSphere Commerce node.
Note:
Remove any JSP and JAR files from the WC_instance_name.ear directory on the web server. Only static-content files should be in this directory on the web server.
- Ensure that the web server read and execute permissions on all
files and directories in the
WC_profiledir/installedApps/
directory on the web server machine are correct.If the permissions on the files and directories are incorrect, you might not be able to access WebSphere Commerce.
- Remove any JSP and JAR files from the WC_instance_name.ear directory on the web server. Only static-content files should be in the WC_instance_name.ear directory on the web server.
- Ensure that the web server read and execute permissions on all
files and directories in the
- For Microsoft IIS users:
- On the WebSphere Commerce node
copy file:
- WC_installdir/config/deployment/webserverconfig/IIS/addCommerceAliases.js
- On the remote IIS node, check the contents of file IISdir/addCommerceAliases.js. Ensure all aliases and paths are correct.
- On the remote IIS node, start a command prompt session and issue
the following command:
This command will add all the necessary aliases to the Microsoft IIS web server configuration for WebSphere Commerce and WebSphere Commerce Payments.cscript.exe IISdir/addCommerceAliases.js
Note: If you receive messageInput Error: There is no script engine for file extension ".JS"
refer to technote 1172559 to resolve the error. Attempt thecscript
again. - On the WebSphere Commerce node
copy file:
- Open the following file in a text editor: WC_profiledir/properties/soap.client.props Change
the property
com.ibm.SOAP.requestTimeout
from the default value of 180 to 6000. - Copy the following file:
- configureweb_server_name.sh
- configureweb_server_name.bat
Note: If the web server and WebSphere Application Server are on different platforms, then the configureweb_server_name script must be copied from the plugins/bin/crossPlatformScripts directory on your web server rather than from the plugins/bin directory. - Start your WebSphere Commerce server.
- Run the script file you copied:
- WAS_installdir/bin/configureweb_server_name.sh -profileName profile_name -user configAdminUser -password configAdminPassword
- WAS_installdir/bin/configureweb_server_name.bat -profileName profile_name -user configAdminUser -password configAdminPassword
Note: The script calls the WAS_installdir/bin/configureWebserverDefinition.jacl file to configure the following web server definitions:- Creates an unmanaged node definition
- Creates the web server definition
- Maps the existing application to the web server defnition
-
If your web server is configured to use only IPv6, change the custom properties for the
WebSphere Commerce server JVM:
- In the WebSphere Application Server administrative console for the WebSphere Commerce server, expand Servers > Server Types. Click WebSphere application servers. In the list of application servers, select your server.
- On the Configuration tab, expand Java and Process Management and click Process definition > Java Virtual Machine > custom properties.
-
Click New. On the Configuration tab, enter the
following name and value:
Name Value java.net.preferIPv6Addresses true - Click Apply > Save directly to the master configuration.
- Stop and restart the web server. Note: Microsoft IIS, you must stop and restart all Microsoft IIS related services and applications. See Microsoft IIS documentation for instructions on how to stop and start these services and servers.