WAS v8.5 > Set up intermediary services > Implement a web server plug-in > Install and configure web server plug-ins

Configure a web server and an application server profile on the same machine

This article describes configuring a web server plug-in that WebSphere Application Server provides to communicate with a particular brand of web server. This procedure describes installing the web server and its web server plug-in for WAS and the application server on the same machine.

When multiple profiles exist, we can select the profile the Web Server Plug-ins Configuration Tool configures. See Plug-ins configuration for a description of the flow of logic that determines how to select the profile to configure.

If the WAS product family supports a particular brand of web server, such as IBM HTTP Server or Microsoft Internet Information Services (IIS), your WAS product provides a binary plug-in for the web server that install.

If the WAS product family 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.

Suppose that you create a new profile and you also want to use a web server. You must install a new web server for the new profile, install the Web Server Plug-ins, and use the Web Server Plug-ins Configuration Tool to configure both the web server and the application server.

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

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.

However, a standalone application server profile and a managed profile can each have multiple web servers defined, each in a separate web server definition.

This article describes how to create the following topology:

Nonroot installation for the plug-in component is only supported if the application server was also installed by the same nonroot user. Otherwise, the web server configuration scripts will fail to run against the application server installation. Note: IBM recommends using the HPEL log and trace infrastructure. With HPEL, one views logs using the LogViewer command-line tool in PROFILE/bin.

The Web Server Plug-ins Configuration Tool configures the plug-in for the supported web server after collecting the following information:

The Web Server Plug-ins Configuration Tool edits the configuration file or files for a web server by creating directives that point to the location of the binary plug-in module and plugin-cfg.xml.

The name of the binary plug-in module varies per web server type. The plug-in configuration file is always the plugin-cfg.xml file. The Web Server Plug-ins Configuration Tool creates a web server definition in the configuration of the application server unless one already exists.

We can use the dmgr console to manage the web server configuration. For example, when we install an application on the application server, we can also choose to install it on the web server definition. If so, the updated plugin-cfg.xml file shows the new application is available. When the web server reads the updated plug-in configuration file, the web server becomes aware of the new application that it can serve to web clients.

If you choose not to install the new application on the web server definition, the application is not added to plugin-cfg.xml. The web server is not aware of the application and cannot serve it to web clients.

As an alternative to using the Web Server Plug-ins Configuration Tool, we can use the pct command-line tool with a response file to configure a web server. Read Configure a web server plug-in using the pct tool for more information.

Use this procedure to install the web server plug-in, configure the web server, and create a web server definition in the default application server profile.

Configure a standalone application server.

  1. Log on to the operating system.

    If you are installing as a nonroot or non-administrative user, then there are certain limitations.

    In addition, select a umask that allows the owner to read/write to the files, and allows others to access them according to the prevailing system policy. For root, a umask of 022 is recommended. For nonroot users, a umask of 002 or 022 could be used, depending on whether or not the users share the group. To verify the umask setting, issue the following command:

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

      umask 022

    When installing as an administrative user on a Windows operating system, a Windows service is automatically created to autostart the application server. The installer user account must have the following advanced user rights:

    • Act as part of the operating system
    • Log on as a service

    For example, on some Windows operating systems, click Control Panel > Administrative Tools > Local Security Policy > Local Policies > User Rights Assignments to set the advanced options. See your Windows operating system documentation for more information.

    If you plan to run the application server as a Windows service, do not install from a user ID containing spaces. A user ID with spaces cannot be validated. Such a user ID is not allowed to continue the installation. To work around this restriction, install with a user ID that does not contain spaces.

  2. Install Installation Manager.

  3. Use Installation Manager to install the following:

    • WAS
    • Web Server Plug-ins for WAS
    • Websphere Customization Toolbox

  4. Use Installation Manager to install the IBM HTTP Server, or install another supported web server.
  5. Open the Websphere Customization Toolbox, and launch the Web Server Plug-ins Configuration Tool.

  6. Select a Web Server Plug-ins runtime location.

    If the location of a previously installed web server plug-in to use is not in the list, perform the following actions to add the location to your working set:

    1. Click Add.

    2. Enter a name for the web server plug-in location.
    3. Perform one of the following actions:

      • Enter the location.

      • Click Browse, find the location, and click OK.

  7. Click Create.

  8. Select the type of web server that you are configuring, and click Next.

  9. Select the architecture of your installed target web server (64 bit or 32 bit) and click Next if you are asked.

  10. Click Browse to select the configuration file or files for the web server, verify the web server port is correct, and then click Next when we 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_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 Web Server Plug-ins Configuration Tool verifies the files exist but the tool does not validate either file.

    IBM HTTP Server

    IHS_root/conf/httpd.conf

    Microsoft Internet Information Services (IIS)

    The Web Server Plug-ins Configuration Tool can determine the correct files to edit.

    Sun Java System Web Server (formerly Sun ONE Web Server and iPlanet Web Server) v6.0 and later

    obj.conf and magnus.conf

  11. If you are configuring an IBM HTTP web server plug-in, perform the following actions.

    1. Optionally, set up the administration server configuration to administer the web server.

      When using the Web Server Plug-ins Configuration Tool to configure the IBM HTTP Server Administration Server, the Websphere Customization Toolbox must be run as a "local" account with administrator/root privileges.

      1. Select Setup IBM HTTP Server Administration Server.

      2. Specify a port number on which the IBM HTTP administration server will communicate.

      3. Optionally, select Create a user ID for IBM Server Administration Server authentication and enter a user ID and password to authenticate to the IBM HTTP Server administrative server from the dmgr console.

    2. Click Next.

      Specify the system user ID and group to have write permission to IBM HTTP Server, the IBM HTTP Server administrative server, and the web server plug-in configuration files.

      Select Create a new unique system user ID and group using the credentials if necessary.

      Restriction: The configuration might fail if we specify a new user ID or group name that exceeds the platform limit, which is commonly 8 characters and is sometimes configurable.

    3. Optionally, set up the IBM HTTP Server Administration Server to run as a Window service.

      1. Select Run IBM HTTP Server Administration Server as a Windows Service.
      2. Perform one of the following actions:

        • Select Log on as a local system account.

        • Select Log on as a specified user account, and enter the user ID and password for that account.

          The user ID requires the following advanced user rights:

          • Act as part of the operating system
          • Log on as a service

      3. Choose whether your startup type will be automatic or manual.

    4. Click Next.

  12. Specify a unique name for the web server definition, and click Next.

  13. Select the configuration scenario.

    1. Choose the local scenario.
    2. Perform one of the following actions:

      • Enter the installation location of WAS (app_server_root).

      • Click Browse, find the installation location of WAS (app_server_root), and click OK.

    3. Click Next.

  14. Select the profile to configure with the current web server plug-in, and click Next.
  15. Review the summary information, and click Configure to begin configuring the web server, web server plug-in, and application server profile.
  16. Verify the success of the installation on the summary panel, and click Finish.

    If a problem occurs and the installation is unsuccessful, examine the logs in the plugins_root/logs directory. Correct any problems and re-configure.

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

    On platforms such as AIX or Linux, 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 plugins_root/bin/setupPluginCfg.sh script:

      • . plugins_root/bin/setupPluginCfg.sh (Notice the space between the period and the installation root directory.)
      • source plugins_root/bin/setupPluginCfg.sh

    The script is also in the lotus_root/notesdata directory on operating systems such as AIX or Linux.

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

  18. Start the Snoop servlet to verify the ability of the web server to retrieve an application from the application server.

    Test the environment by starting the application server, the web server, and using the Snoop servlet with an IP address.

    1. Start the application server.

      Change directories to the profile_root/bin directory and run the startServer command:

    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 the web server. Issue the appropriate command to start the web server, such as 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. 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.

      In the event of a verification failure where an HTTP error code of 500 appears, go to IIS Manager > Default Web Site > sePlugins. Right click, and choose to edit permissions. Click on the sharing tab, and choose to share with everyone (permissions level: read/write).

    5. Remote IBM HTTP Server only:

      Verify the automatic propagation function can work on a remote IBM HTTP Server using the following steps. This procedure is not necessary for local web servers.

      1. Create a user=adminUser, password=adminPassword in the IHS_root /conf/admin.passwd file. For example: c:\ws\ihs80\bin\htpasswd -cb c:\ws\ihs80\conf\admin.passwd adminUser adminPassword

      2. Use the dmgr console of the application server to enter the User ID and password information 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 httpd.conf and the plugin-cfg.xml file. See the IHS_root /logs/admin_ERROR. LOG file for more information.

      Automatic propagation of plugin-cfg.xml requires the IBM HTTP administrative server to be up and running. If you are managing an IBM HTTP Server using the dmgr console, the following error might display:

        "Could not connect to IHS Administration server error"

      Perform the following procedure to correct the error:

      1. Verify the IBM HTTP Server administration server is running.
      2. Verify the web server host name and the port defined in the dmgr console matches the IBM HTTP Server administration host name and port.
      3. Verify the fire wall is not preventing you from accessing the IBM HTTP Server administration server from the dmgr console.
      4. Verify the user ID and password specified in the dmgr 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 dmgr 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.


Results

The installation of the Web Server Plug-ins results in the creation of the Plugins directory and several subdirectories. The following directories are among those created on a Linux system, for example:

The Web Server Plug-ins Configuration Tool creates a web server definition within the application server profile unless one already exists.

The Web Server Plug-ins Configuration Tool configures the web server to use the profile_root/plugin-cfg.xml file.

The application server regenerates the web server plug-in configuration file, plugin-cfg.xml whenever an event occurs that affects the file. Such events include the addition or removal of an application, server, or virtual host. The standalone application server regenerates the file in the following location:

profile_root
   /config/cells/cell_name/nodes/
   web_server_name_node/servers/
   web_server_name/plugin-cfg.xml

We can start a standalone application server and the web server immediately after configuring the plug-in for the local web server. Open the dmgr console of the application server after you start the server and save the changed configuration.

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

See Plug-ins configuration for information about the location of plugin-cfg.xml.

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

See Edit web server configuration files for information about how the Web Server Plug-ins Configuration Tool configures supported web servers.

See Install and configure web server plug-ins for information about other installation scenarios for installing web server plug-ins.


Related concepts:

Plug-ins configuration
Web server configuration


Related


Install and configure web server plug-ins
Configure a web server plug-in using the pct tool


+

Search Tips   |   Advanced Search