Configure a Web server and an application server on separate machines (remote)

 

+

Search Tips   |   Advanced Search

 

 

Before you begin

For Web servers such as...

...WAS provides binary plug-in for the Web server.

If the WAS does not provide a binary plug-in for a particular brand of Web server, then the Web server is not supported.

The purpose of the binary plug-in is to provide the communication protocol between the Web server and the application server.

After creating a new profile, to have a Web server forward requests use the Plug-ins installation wizard to install the binary plug-in module and to configure both the Web server and the application server.

If the Web server is not already installed, we can still install the plug-ins for future use.

 

Overview

The Plug-ins installation wizard...

  1. Installs the plug-in module
  2. Configures the Web server for communicating with the application server
  3. Creates a Web server configuration definition in the application server, if possible.

This procedure configures the application server profile that is the default profile on the machine. A one-to-one relationship exists between a Web server and the application server.

This topic describes how to create the following topology:

If you are planning to add the application server node into a deployment manager cell but have not done so yet, start the deployment manager and federate the node before installing the plug-in. Any existing Web server definitions are deleted during federation and must be recreated.

This topic describes the installation of a Web server on one machine and the application server on a separate machine. In this situation, the Plug-ins installation wizard on one machine cannot create the Web server definition in the application server configuration on the other machine.

In such a case, the Plug-ins installation wizard creates a script on the Web server machine that one can copy to the application server machine. Run the script on the application server machine to create the Web server configuration definition within the application server configuration.

Perform the following procedure to install the plug-in and configure both the Web server and the application server.

 

Procedure

  1. Log on as root on a Linux or UNIX operating system, or as a member of the administrator group on a Windows system. In addition, verify that the umask setting is 022. To verify the umask setting, issue the following command

    umask
    

    To set the umask setting to 022, issue the following command

    umask 022
    

  2. Some steps of the installation on a Windows platform require the administrator group user to have the following advanced user rights:

    • Act as part of the operating system

    • Log on as a service

    For example, on some Windows systems, click...

    Administrative Tools | Local Security Policy | User Rights Assignments

    ...to see the advanced options.

    The installation wizard grants your Windows user ID the advanced user rights, if the user ID belongs to the administrator group. The silent installation does not grant these rights. If you create a new user ID on a Windows platform to perform a silent installation, restart the system to activate the proper authorizations for the user ID before we can perform a successful silent installation.

    When installing the WAS as a Windows service, do not use a user ID that contains spaces. A user ID with spaces cannot be validated. Such a user ID is not allowed to continue the installation. To work around this problem, install with a user ID that does not contain spaces, or do not choose to install Windows services.

  3. Install WAS Network Deployment on Machine A.

  4. Install the IBM HTTP Server or another supported Web server on Machine B.

  5. Launch the Plug-ins installation wizard on the machine with the Web server.

    Select the Plug-ins installation wizard from the launchpad or change directories to the plugin directory on the product disc or in the downloaded installation image and issue the install command.

  6. Clear the check box for the roadmap or select the check box to view the roadmap, then click Next.

    If you are unsure of which installation scenario to follow, display the roadmap instead. Print and keep the roadmap as a handy overview of the installation steps.

    Press Ctrl-P to print the roadmap if the Web browser navigation controls and the menu bar are not present on the browser window that displays the Plug-ins roadmap. Press Ctrl-W to close the browser window if the navigation controls and the menu bar do not display. Or close the browser window with the window control in the title bar.

  7. Read the license agreement and accept the agreement it if you agree to its terms. Click Next when you are finished.

  8. If your system does not pass the prerequisites check, stop the installation, correct any problems, and restart the installation. If your system passes the prerequisites check, click Next.

    Look for the appropriate log file for information about missing prerequisites:

    • If you stop the installation, see the temporaryPluginInstallLog.txt file in the temporary directory of the user who installed the plug-ins. For example, the /tmp/temporaryPluginInstallLog.txt file might exist if the root user installed the plug-ins on a Linux or UNIX system.

    • If you continue the installation in spite of warnings about missing prerequisites, see the plugins_install_root/logs/install/log.txt file after the installation is complete.

    See Troubleshooting installation for more information about log files.

  9. Select the type of Web server that you are configuring and click Next.

    The Plug-ins installation wizard panel prompts you to identify the Web servers to configure. Actually one can select only one Web server each time you run the Plug-ins installation wizard.

    Stop any Web server while you are configuring it. A step later in the procedure directs you to start the Web server as you begin the snoop servlet test.

    If you select the Web server identification option labeled None, the Web server installs the binary plug-ins but does not configure the Web server. A known problem in the wizard panel causes the English word None to appear in translated versions of the wizard. However, the selectable option is functional in every locale in spite of the missing translation.

  10. Select Web server machine (remote) and click Next.

  11. Accept the default location for the installation root directory for the plug-ins. Click Next.

    We can type another new directory or click Browse to select an empty directory. The fully qualified path identifies the plug-ins installation root directory.

    The default location is:

      /usr/IBM/WebSphere/Plugins
      /opt/IBM/WebSphere/Plugins
      C:\Program Files\IBM\WebSphere\Plugins

    A possibility exists that the Web server might run on a platform that WAS does not support.

  12. Click Browse to select the configuration file for your Web server, verify that the Web server port is correct, and then click Next when you are finished.

    Select the file and not just the directory of the file. Some Web servers have two configuration files and require you to browse for each file.

    The following list shows configuration files for supported Web servers:

    Apache HTTP Server

    apache_install_root/config/httpd.conf

    Domino Web Server

    names.nsf and Notes.jar

    The wizard prompts for the notes.jar file. The actual name is Notes.jar.

    The Plug-ins installation wizard verifies that the files exist but the wizard does not validate either file.

    IBM HTTP Server

    ihs_install_root/conf/httpd.conf

    Microsoft Internet Information Services (IIS)

    The Plug-ins installation wizard can determine the correct files to edit.

    Sun ONE Web Server 6.0 or Sun Java System Web Server, V6.1

    obj.conf and magnus.conf

    The wizard displays a naming panel for the nickname of the Web server definition.

  13. Specify a nickname for the Web server. Click Next when you are finished.

    The wizard uses the value to name configuration folders in the plug-ins installation root directory. The wizard also uses the name in the configuration script for the application server to name the Web server definition.

    If the application server profile already has a Web server definition, delete the Web server definition before continuing. Use the following commands to delete the Web server definition

    $AdminTask deleteServer { -serverNamewebserver1 -nodeName webserver1_node }
    $AdminTask removeUnmanagedNode { -nodeName webserver1_node } 
    $AdminConfig save
    
    

  14. Accept the default location for the plugin-cfg.xml file that the wizard creates on the Web server machine, then click Next.

    We can type a change to the value or click Browse to select a file in another location. If you do accept the default location, the plugin-cfg.xml file must exist.

    Identify the host name or IP address of Machine A, which is the application server machine, then click Next.

    Examine the summary panel. Click Next when you are finished.

    The panel notifies you that you have manual steps to perform to complete the installation and configuration. The type of Web server, the nickname of the Web server, and the location of the plugin-cfg.xml file displays on the panel.

    The Plug-ins installation wizard creates the configurewebserver.sh script in a location such as...

    /usr/IBM/WebSphere/Plugins

    ...on Machine B.

    The Plug-ins installation wizard also creates the plugin-cfg.xml file in...

    $WAS_INSTALL/config/Web_servername

    The Web server reads the plugin-cfg.xml file to determine the applications that the application server on Machine A can serve to the Web server on Machine B. Whenever the configuration changes, the application server regenerates the file. When regeneration occurs, propagate, or copy the actual plugin-cfg.xml file from the application server machine to the Web server machine. We can automatically propagate the file to the IBM HTTP Server product.

    Click Next on the pre-installation summary panel to begin the installation or click Back to change any characteristics of the installation.

    The panel specifies the plug-ins installation root directory, the Web server plug-ins feature, and the disk size of the code that installs when you click Next.

  15. After the wizard installs the code and creates the uninstaller program, examine the post-installation summary panel. Click Next when you are finished to display the Plug-ins installation roadmap.

    The Plug-ins installation wizard installs the binary plug-in module. On a Linux system, for example, the installation creates the directory...

    /opt/IBM/WebSphere/Plugins

    The directory...

    /opt/IBM/WebSphere/Plugins/config/Web_servername

    ...contains the plugin-cfg.xml file.

    The wizard displays the name and location of the configuration script and the plugin-cfg.xml file. The wizard also displays the type of Web server that is configured and the nickname of the Web server.

    If a problem occurs and the installation is unsuccessful, examine the logs in the plug-ins_install_root/logs directory. Correct any problems and reinstall. >

  16. Close the road map and click Finish to exit the wizard.

    Log files from the installation are in the plug-ins_install_root/logs/install directory.

  17. Copy the configureWeb_servername.sh script on Linux and UNIX systems or the configureWeb_servername.bat script on Windows systems from Machine B to the was_install_root/bin directory on Machine A.

    For example, on a Linux system with an IBM HTTP Server named webserver1 in the default location, copy /opt/IBM/WebServer/Plugins/bin/configurewebserver1.sh from Machine B to the /opt/IBM/WebSphere/AppServer/bin directory on Machine A.

    If one platform is a Linux or UNIX system and the other is a Windows platform, copy the script from the crossPlatformScripts directory. For example:

    • plug-ins_install_root/bin/configureWeb_servername.sh

    • plug-ins_install_root/bin/crossPlatformScripts/configureWeb_servername.bat

  18. Compensate for file encoding differences to prevent script failure.

    The content of the configureWeb_servername.bat script or the configureWeb_servername.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 and use one of the following procedures to circumvent the failure. To determine the default file encoding, run the appropriate command:

    • Run the following command on a Windows machine

      CHCP
      

    • Run the following command on a Linux or UNIX machine

      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 compensating for 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 or UNIX system

    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_servername.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.

    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_servername.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.

    Start the application server on Machine A.

    Use the startServer command, for example:

    • profiles_install_root/profile/bin/startServer.sh server1

    • profiles_install_root\profile\bin\startServer server1

    Run the script on Machine A to create the Web server definition in the configuration for the application server.

    Open a command window to run the script that you copied to Machine A.

    As soon as the Web server definition is created, the application server creates a plugin-cfg.xml file for the Web server. For example, the file on a Linux system might have this file path:

    /opt/IBM/WebSphere/AppServer/profiles/default/config/cells/cell/nodes/node/servers/webserver1/plugin-cfg.xml

  19. From the administrative console of the deployment manager, click...

    System administration | Save Changes to Master Repository | Synchronize changes with Nodes | Save

  20. Domino Web Server only: Set the WAS_PLUGIN_CONFIG_FILE environment variable.

    To configure Domino, set the WAS_PLUGIN_CONFIG_FILE environment variable. On Linux and UNIX-based platforms, sourcing a script to the parent shell allows child processes to inherit the exported variables. On Windows systems, run the script as you would run any other command. Sourcing is automatic on Windows systems.

    1. Open a command window.

    2. Change directories to the plug-ins installation root directory.

    3. Issue the appropriate command for the plug-ins_install_root/bin/setupPluginCfg.sh script:

      • . plug-ins_install_root/bin/setupPluginCfg.sh (Notice the space between the period and the installation root directory.)

      • source plug-ins_install_root/bin/setupPluginCfg.sh

    The script is also in the lotus_install_root/notesdata directory on Linux and UNIX systems.

    Issue the appropriate command for the script before starting the Domino Web Server.

    Start the Snoop servlet to verify the ability of the Web server to retrieve an application from the Application Server.

    Test your environment by starting your Application Server, your Web server, and using the snoop servlet with an IP address.

    1. Start the Application Server. In a Network Deployment environment, the Snoop servlet is available in the cell only if you included the DefaultApplication when adding the Application Server to the cell. The -includeapps option for the addNode command migrates the DefaultApplication to the cell. If the application is not present, skip this step.

      Change directories to the install_root/profiles/profile/bin directory and run the startServer command:

      • ./startServer.sh server1

      • startServer server1

    2. Start the IBM HTTP Server or the Web server that you are using.

      Use a command window to change the directory to the IBM HTTP Server installed image, or to the installed image of your Web server. Issue the appropriate command to start the Web server, such as these commands for IBM HTTP Server:

      To start the IBM HTTP Server from the command line:

      Access the apache and apachectl commands in the IBMHttpServer/bin directory.

      • ./apachectl start

      • apache

    3. Point your browser to http://localhost:9080/snoop to test the internal HTTP transport provided by the Application Server. Point your browser to http://Host_name_of_Web_server_machine/snoop to test the Web server plug-in.

      The HTTP Transport port is 9080 by default and must be unique for every profile. The port is associated with a virtual host named default_host, which is configured to host the installed DefaultApplication and any installed Samples. The snoop servlet is part of the DefaultApplication. Change the port to match your actual HTTP Transport port.

    4. Verify that snoop is running.

      Either Web address should display the Snoop Servlet - Request/Client Information page.

    5. Remote IBM HTTP Server only: Verify that the automatic propagation function can work on a remote IBM HTTP Server by using the following steps. This procedure is not necessary for local Web servers.

      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. Use the administrative console of the deployment manager or the Application Server to enter the User ID and password information that you created for the administrative user of IBM HTTP Server. Go to Servers > Web server > Web_server_definition > Remote Web server administration. 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 WAS administrative console, the following error might display

      "Could not connect to IHS Administration server error"
      

      Perform the following procedure to correct the error:

      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 WAS 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 WAS administrative console.

      4. Verify that the user ID and password that is specified in the WAS 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 WAS 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 WAS logs (trace.log file) to determine the cause of the problem.

    Regenerate the plugin-cfg.xml file on Machine A using the administrative console. Click Servers > Web server. Select the Web server, then click Generate Plug-in.

    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_servername 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 step.

    This step shows you how to regenerate the plugin-cfg.xml file. WAS products are configured to automatically regenerate the file each time a significant event occurs. Such events include installing applications on the application server and the Web server, for example. Creating a new virtual host is another such event.

    Propagate the plugin-cfg.xml file from the application server to the Web server using the administrative console. Click Servers > Web server. Select the Web server, then click Propagate Plug-in. Web servers other than IBM HTTP Server require manual propagation.

    The Web server plug-in configuration service propagates the plugin-cfg.xml file automatically for IBM HTTP Server 6.0 only. 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/nodes/node/servers/web_servername directory on Machine A to the plugins_install_root/config/web_servername directory on Machine B.

 

Result

This procedure results in the installation of the Web server plug-ins for WAS on a Web server machine. The Plug-ins installation wizard also configures the Web server to support an application server on a separate machine. The installation of the binary plug-in modules results in the creation of the Plugins directory and several subdirectories. The following directories are among those created on a Linux system, for example:

  • /opt/IBM/WebSphere/Plugins/_uninstPlugin/_jvmForPlugin

    Contains the WAS SDK, Java technology edition used to uninstall the product

  • /opt/IBM/WebSphere/Plugins/_uninstPlugin

    Contains the uninstaller program

  • /opt/IBM/WebSphere/Plugins/bin

    Contains the binary plug-ins for all supported Web servers

  • /opt/IBM/WebSphere/Plugins/logs

    Contains log files

  • /opt/IBM/WebSphere/Plugins/properties

    Contains version information

  • /opt/IBM/WebSphere/Plugins/roadmap

    Contains the roadmap for the Plug-ins installation wizard

 

What to do next

See Select a Web server topology diagram and roadmap for an overview of the installation procedure.

See Web server configuration for more information about the files involved in configuring a Web server.

See Configuration behavior of the Plug-ins installation wizard for information about the location of the plug-in configuration file.

See Editing Web server configuration files for information about how the Plug-ins installation wizard configures supported Web servers.


 



 

 

IBM is a trademark of the IBM Corporation in the United States, other countries, or both.