+

Search Tips   |   Advanced Search

Web server plug-in installation roadmaps for WebSphere Application Server Network Deployment Version 6.1

Getting started
Plug-in installation roadmaps:

  1. Web server plug-in installation for stand-alone application servers
  2. Web server plug-in installation for distributed environments

Web server plug-in installation for stand-alone application servers

A translated version of this information is available in the online information center.

Remote installation scenario Local installation scenario

Typical environment


Production (recommended)


Development

Installation and configuration

Application Server installation:
(Machine A)
1. Install the WebSphere Application Server Network Deployment product.
2. Configure a stand-alone application server.

Installation of Web server and plug-in:
(Machine B)
3. Install IBM HTTP Server or another supported Web server. In the case of IBM HTTP Server, select the option to install the plug-in module and go to Step 5.
4. For other supported Web servers: Install the binary plug-in module using the Plug-ins installation wizard.
The script for creating and configuring the Web server is created under the plugins_install_root /bin directory.
5. Copy the configureWeb_server_name script to paste on Machine A.

See the Cross-platform considerations section of this document for more information about running configuration scripts when:

  • One machine is running Windows and the other is running Linux or UNIX.
  • One machine is running a different file encoding.
Creation of Web server definition:
(Machine A)
6. Paste the configureWeb_server_name script from Machine B to the was_install_root /bin directory on the application server machine.
7.

Start the application server on Machine A.

8.

Run the script on Machine A.


Verification:
(Machine A)
9.

Verify that the application server is running.

(Machine B)
10. Start IBM HTTP Server or start another supported Web server.
11.

Run the Snoop servlet.

To verify with your own application, regenerate and propagate the plugin-cfg.xml file after installing the application.

Application server installation:
(Machine A)
1. Install the WebSphere Application Server Network Deployment product.
2. Configure a stand-alone application server.

Installation of Web server and plug-in and creation of Web server definition:
(Machine A)
3. Install IBM HTTP Server or another supported Web server. In case of IBM HTTP Server, select the option to install the plug-in module and go to Step 5.
4. Install the binary plug-in module using the Plug-ins installation wizard.
The Web server definition is automatically created and configured during the installation of the plug-ins.
5. Start the application server on Machine A.
6. Copy the configureWeb_server_name script from the directory plugin_install_root /bin to the directory was_install_root /bin and run it.

Verification:
(Machine A)
7.

Verify that the application server is running.

8. Start IBM HTTP Server or start another supported Web server.
9. Run the Snoop servlet.

Regeneration of the plugin-cfg.xml file

During the installation of the plug-ins, the temporary plugin-cfg.xml file is installed on Machine B in the plugins_install_root /config/ Web_server_name directory.

The Web server plug-in configuration service regenerates the plugin-cfg.xml file automatically.

To use the actual plugin-cfg.xml file from the application server, propagate the plugin-cfg.xml file as described in the next section.

The Web server plug-in configuration service regenerates the plugin-cfg.xml file automatically.

The plugin-cfg.xml file is generated at the location profile_install_root /config/cells/ cell_name /nodes/ node_name/servers/ Web_server_name directory, when the Web server definition is created.


Propagation of the plugin-cfg.xml file

The Web server plug-in configuration service propagates the plugin-cfg.xml file automatically for IBM HTTP Server 6.0 only. To enable automatic propagation, perform the one-time setup described in the last section of this roadmap.

For all other Web servers, propagate the plug-in configuration file, by manually copying the plugin-cfg.xml file from the profiles_install_root /config/cells/ cell_name /nodes/ node_name /servers/ web_server_name directory on Machine A to the plugins_install_root /config/ web_server_name directory on Machine B.

Use the propagate option to move the plugin-cfg.xml file from the profile_install_root /config/cells/cell_name /nodes/node_name /servers/Web_server_name directory to the plugins_install_root /config/web_server_name directory.


Remote topology






Local topology







Web server plug-in installation for distributed environments (cells)




Remote installation scenario Local installation scenario

Typical environment


Production (recommended)

Development

Installation and configuration

Deployment manager installation:
(Machine A)
1. Install the WebSphere Application Server Network Deployment product and configure the deployment manager profile.
2.

Verify that the deployment manager is running to allow node synchronization of changed configuration files.

Application Server installation:
(Machine B)
3. Install the WebSphere Application Server Network Deployment product and configure an application server.
4. Add the node into the deployment manager cell to start the nodeagent process. Start the nodeagent on an existing managed node. The deployment manager and the node agent must be running to allow node synchronization of changed configuration files.
Installation of the Web server and plug-in:
(Machine C)
5. Install IBM HTTP Server or another supported Web server. In the case of IBM HTTP Server, select the option to install the plug-in module and go to Step 7.
6. For other supported Web servers: Install the binary plug-in module using the Plug-ins installation wizard.
The script for creating and configuring the Web server is created in the plugins_install_root /bin directory.
7. Copy the configureWeb_server_name script to paste on Machine A.

See the Cross-platform considerations section of this document for more information about running configuration scripts when:

  • One machine is running Windows and the other is running Linux or UNIX.
  • One machine is running a default encoding that is different than the other.

Creation of Web server definition:
(Machine A)
8. Paste the configureWeb_server_name script from Machine C to the was_install_root /bin directory on Machine A.

9.

Run the script from a command line.

This step requires that the deployment manager and the node agent are running. See step 4.

If you have enabled security or changed the default JMX connector type, edit the script and include the appropriate parameters.


Verification:
(Machine B)
10.

Use the administrative console of the deployment manager to start the application server on Machine B.

(Machine C)
11. Start IBM HTTP Server or start another supported Web server.
12.

Run the Snoop servlet.

The following procedure describes installing the plug-ins on two machines. However, you could perform this procedure on a single machine.
Deployment manager installation:
(Machine A)
1. Install the WebSphere Application Server Network Deployment product and configure the deployment manager profile.
2.

Verify that the deployment manager is running to allow node synchronization of changed configuration files.


Application Server installation:
(Machine B)
3.

Install the WebSphere Application Server Network Deployment product and configure an application server profile.

4. Add the node into the deployment manager cell to start the nodeagent process. Start the nodeagent on an existing managed node. The node agent must be running to allow node synchronization of changed configuration files.

Installation of the Web server and plug-in:
(Machine B)
5. Install IBM HTTP Server or another supported Web server. In the case of IBM HTTP Server, select the option to install the plug-in module and go to Step 7.
6. Install the binary plug-in module using the Plug-ins installation wizard.
The script for creating and configuring the Web server is created in the plugins_install_root /bin directory.

Creation of the Web server definition:
7. Run the script from the plugins_install_root /bin directory. This step requires that the deployment manager and the node agent are running. See step 4.

If you have enabled security or changed the default JMX connector type, edit the configureWeb_server_name script and include the appropriate parameters.


Verification:
(Machine B)
8.

Verify that the application server is running on Machine B.

9. Start IBM HTTP Server or start another supported Web server.

Before starting the Domino Web Server on a Linux or UNIX system, source the plug-ins_install_root /setupPluginCfg.sh script.

10. Run the Snoop servlet.

Regeneration of the plugin-cfg.xml file

During the installation of the plug-ins, a temporary plugin-cfg.xml file is installed on Machine C in the plugins_install_root /config/ Web_server_name directory.

The Web server plug-in configuration service regenerates the plugin-cfg.xml file automatically.

To use the real plugin-cfg.xml file from the application server, propagate the plugin-cfg.xml file as described in the next section.

The plugin-cfg.xml file is generated in the profiles_install_root /config/cells/ cell_name /nodes/ node_name /servers/ Web_server_name directory, when the Web server definition is created.

Regenerate the plugin-cfg.xml file in the Web server definition in the application server whenever the configuration changes. The Web server has immediate access to the file whenever it is regenerated.

When the Web server plug-in configuration service (an administration service) is enabled on Machine A, the plugin-cfg.xml file is automatically generated for all Web servers.


Propagation of the plugin-cfg.xml file

The Web server plug-in configuration service propagates the plugin-cfg.xml file automatically for IBM HTTP Server 6.0 only. To enable automatic propagation, perform the one-time setup described in the last section of this roadmap.

For all other Web servers, propagate the plug-in configuration file, by manually copying the plugin-cfg.xml file from the profiles_install_root /config/cells/ cell_name /nodes/ node_name /servers/ Web_server_name directory on Machine A to the plugins_install_root /config/ Web_server_name directory on Machine C.

Use the propagate option to move the plugin-cfg.xml file from the profile_install_root /config/cells/cell_name /nodes/node_name /servers/Web_server_name directory to the plugins_install_root /config/web_server_name directory.


Remote topology






Local topology







Set-up and troubleshooting procedure for automatic propagation

The Web server plug-in configuration service propagates the plugin-cfg.xml file automatically for IBM HTTP Server 6.0 only. To enable automatic propagation, perform the following one-time setup:

  1. Create a user=adminUser, password=adminPassword in the IHS_install_root /conf/admin.passwd file. For example: c:\ws\ihs60\bin\htpasswd -cb c:\ws\ihs60\conf\admin.passwd adminUser adminPassword
  2. In the administrative console, click Servers > Web servers > webserver1 > Remote Web server management. Set the following values: admin Port=8008, User Id=adminUser, Password=adminPassword.
  3. Set the correct read/write permissions for the httpd.conf file and the plugin-cfg.xml file. See the IHS_install_root /logs/admin_error.log file for more information.

Automatic propagation of the plug-in configuration file requires the IBM HTTP administrative server to be up and running. If you are managing an IBM HTTP Server using the WebSphere Application Server administrative console, the following error might display:

"Could not connect to IHS Administration server error"

Perform the following procedure:

  1. Verify that the IBM HTTP Server administration server is running.
  2. Verify that the Web server host name and the port that is defined in the WebSphere Application Server administrative console matches the IBM HTTP Server administration host name and port.
  3. Verify that the fire wall is not preventing you from accessing the IBM HTTP Server administration server from the WebSphere Application Server administrative console.
  4. Verify that the user ID and password that is specified in the WebSphere Application Server administrative console under remote managed, is created in the admin.passwd file, using the htpasswd command.
  5. If you are trying to connect securely, verify that you export the IBM HTTP Server administration server keydb personal certificate into the WebSphere Application Server key database as a signer certificate. This key database is specified by the com.ibm.ssl.trustStore directive in the sas.client.props file in the profile where your administrative console is running. This consideration is primarily for self-signed certificates.
  6. If you still have problems, check the IBM HTTP Server admin_error.log file and the WebSphere Application Server logs (trace.log file) to determine the cause of the problem.



Cross-platform considerations for running the configuration script

Several differences in operating systems and machine platforms can occur when configuring a remote Web server:

  • One machine is running Windows and the other is running Linux or UNIX.
  • One machine is running a default encoding that is different than the other.

One machine is running Windows and the other is running Linux or UNIX

If one machine is running under Linux or UNIX and the other machine is running under Windows, use the script created in the plugins_install_root / bin/ crossPlatformScripts directory.

One machine is running a default encoding that is different than the other

The content of the configureWeb_server_name.bat script or the configure Web_server_name.sh script can be corrupt if the default file encoding of the two machines differs. This scenario is possible when one machine is set up for a double-byte character set (DBCS) locale and the other machine is not.

Determine the file encoding for each machine and use one of the following procedures as a workaround. To determine the default file encoding, run the appropriate command:

  • Windows systems:
    CHCP
    
  • Linux and UNIX systems:
    locale
    

Use the result of the command on each machine as the value of the web_server_machine_encoding variable and the application_server_machine_encoding variable in one of the following procedures.

Procedures for correcting encoding differences

Suppose that the Web server is running on a Linux machine and Network Deployment is running on a Windows machine.

Web server running on a Linux machine

Run the following command on the Linux or UNIX system to encode the script file that configures the Web server definition, before you FTP the file to the Windows machine in binary mode:

iconv -f web_server_machine_encoding \
      -t application_server_machine_encoding \
         configureWeb_server_name.bat


Omit the Linux and UNIX continuation characters (\) if you enter the command on one line.

Important: The name of the Web server (nick name) is used in the name of the script file. The name cannot contain characters from a double-byte character set (DBCS) if you intend to set up IBM HTTP Server for automatic propagation.

Now suppose that the Web server is running on a Windows machine and Network Deployment is running on a Linux or UNIX machine.

Web server running on a Windows machine

Run the following command on the Linux or UNIX system to encode the script file that configures the Web server definition, after you FTP the file in binary mode:

iconv -f web_server_machine_encoding \
      -t application_server_machine_encoding \
         configureWeb_server_name.sh


Omit the Linux and UNIX continuation characters (\) if you enter the command on one line.

If the conversion mapping is not supported by the iconv command on your system, copy the contents of the Web server configuration script to a clip board and paste it onto the machine where the application server is running.