+

Search Tips   |   Advanced Search

Configure a web server plug-in using the pct tool

The WebSphere Customization Toolbox (WCT) command invokes a command-line tool specified by the -tool parameter. Use the WCT command and specify the Web Server Plug-ins Configuration Tool (pct) to configure a web server to use an application server as a hosting server.

To set up the environment and invoke the WCT command...

Syntax...


Parameters of the WCT command when invoking the pct tool


Response file parameters of the pct tool

See also: Response file example

General parameters

Parameter Values

    configType

    Configuration type

    local_standalone

    WebSphere Application Server and web server on same machine

    remote

    WAS and web server on separate machines

    local_distributed

    Profile on WAS is federated to a deployment manager

    wasExistingLocation

    Location of the WAS installation home directory

    This option is valid only for a local configuration type.

Location of the WAS installation home directory

    webServerSelected

    The web server to be configured

    Specify only one web server to configure.

    apache22

    Apache Web Server v2.2

    64-bit configuration not supported on Windows

    apache24

    Apache Web Server v2.4

    64-bit configuration not supported on Windows

    domino

    Lotus Domino Web Server

    Not supported on HP-UX or Solaris x64 (x86_64)

    ihs

    IBM HTTP Server

    64-bit configuration not supported on Windows

    iis8

    Microsoft Internet Information Services Version 8

    Supported on Windows

    sunone

    Oracle iPlanet Web Server (Sun Microsystems Sun ONE)

    Supported only on HP-UX and Solaris

    ihsAdminPort

    The HTTP administration port number

    Specify only when configuring IHS.

HTTP administration port number

    ihsAdminUserID

    IHS administrator user ID for the IHS administration server

    Specify only when configuring IHS.

IHS administrator user ID for the IHS administration server

    ihsAdminUserGroup

    User group for the IHS administration server

    Specify only when configuring IHS.

User group for the IHS administration server

    webServerConfigFile1

    First web server configuration file

    The specified file must exist.

    apache

    httpd.conf

    Restriction: To successfully configure the server, the name of the configuration file must be retained as httpd.conf.

    domino

    notes.jar

    ihs

    httpd.conf

    Restriction: To successfully configure the server, the name of the configuration file must be retained as httpd.conf.

    sunone

    magnus.conf

    webServerConfigFile2

    Second web server configuration file

    The specified file must exist.

    domino

    names.jar

    sunone

    obj.conf

    webServerPortNumber

    The web server port for the web server to be configured
Web server port for the web server to be configured

    dominoUserID

    The Domino user ID
Domino user ID

    webServerDefinition

    The web server definition name

    No spaces are allowed in the web server definition name.

Web server definition name with no spaces

    wasMachineHostName

    The WAS machine hostname

    This specification can be omitted for a local_standalone installation type.

    For a remote installation type:

    "hostname"

    Installation will use the hostname hostname on the machine.

    For a local installation type:

    ""

    The hostname of the target installation machine will be used.

If we use the WCT command to create multiple web servers and run WCT on the web server machines as required, the hostname of each web server is a derived hostname - based on the same type for which you query the operating system for the hostname.

Running WCT this way results in the creation of two script files with the same hostname that will be used to create the node and the serverIndex.xml file.

With two web servers on the same machine, we will have two network IP addresses, for which you may want to have unique hostnames.

Because the hostname was derived and we received no prompt for the web server hostname, the WCT tool and associated configurewebserverx.bat/sh script will create a node and a serverIndex.xml file with the same hostname.

To make sure that the two Web Servers we created on the same machine have two different network IP addresses, go to the administrative console and do the following:

  1. Servers > Web Servers > webserverName

  2. Click Ports

  3. If a managed node, Click WEBSERVER_ADDRESS. If an unmanaged node, Click WEBSERVER_ADMIN_ADDRESS

  4. Change the IP addresses (hostname).

  5. Click OK and Save.

Advanced parameters (available in silent installations only)

Parameter Values

    mapWebserverToApplications

    Specifies whether or not to map all the existing deployed applications to the web server

    If this not set to a valid option, the installer will set it to true and continue the installation.

    true

    The web server definition is mapped as a target to the existing deployed applications such as snoop and hit count. (Recommended)

    false

    No applications are mapped to the web server definition.

    webServerHostName

    In advanced scenarios where a user has multiple web server hostnames on a machine, specifies the web server hostname used to configure

    ""

    Installation will resolve to the hostname detected on the machine. (Recommended)

    "hostname"

    Installation will use the hostname hostname on the machine.

    webServerInstallArch

    The web server installation architecture

    "32"

    Valid for 32-bit web server installations

    "64"

    Valid for 64-bit web server installations

    For Apache Web Server and IBM HTTP Server, 64-bit configuration is not supported on Windows.

    ""

    Architecture of the web server machine will be used

    profileName

    Name of the WAS profile to be configured

    "profile"

    We must enter the name of an existing WAS profile.

    Leaving the string empty will result in the installer using the default profile. This option is valid only in local installation scenarios.

    ihsAdminPassword

    User password to the IHS administrative server to be configured

    Specify only when configuring IHS.

    "IHS_admin_password"

    We must enter the password of the user that will be used to configure the IHS administrative server.

    enableAdminServerSupport

    Specifies whether or not to configure the IHS administrative server

    Specify only when configuring IHS.

    true

    Support will be enabled and the IHS administrative server will be configured.

    false

    Support will not be enabled and the IHS administrative server will not be configured.

    enableUserAndPass

    Specifies whether or not to enable support to configure the IHS administrative server with a user ID and password as credentials

    Specify only when configuring IHS.

    true

    Support to configure the IHS administrative server with a given user ID and password will be enabled.

    The additional relevant credentials must be supplied.

    false

    Support to configure the IHS administrative server with a given user ID and password will not be enabled. No additional values are required.

    webServerType

    Type of web server to be configured

    Specify only one web server to configure.

    APACHE

    Apache Web Server v2.2 or v2.4

    64-bit configuration not supported on Windows

    DOMINO

    Lotus Domino Web Server

    Not supported on HP-UX or Solaris x64 (x86_64)

    IHS

    IBM HTTP Server

    64-bit configuration not supported on Windows

    IIS

    Microsoft Internet Information Services Version 8

    Supported on Windows

    SUNJAVASYSTEM

    Oracle iPlanet Web Server (Sun Microsystems Sun ONE)

    Supported only on HP-UX and Solaris

    ihsWindowsStartupType

    Startup type of the IHS administrative service that is to be created on Windows

    Specify only when configuring IHS.

    For use with Windows operating systems only.

    auto

    Service will automatically start when the system is booted up.

    demand

    Service will start only when requested.

    ihsAdminWinUserID

    ID of the user that will be used to configure the IHS administrative server on Windows

    Specify only when configuring IHS.

    For use with Windows operating systems only.

    "IHS_admin_user_ID"

    We must enter the name that will be used to configure the IHS administrative server.

    ihsAdminWinPassword

    Password of the user that will be used to configure the IHS administrative server on Windows

    Specify only when configuring IHS.

    For use with Windows operating systems only.

    "IHS_admin_password"

    We must enter the password of the user that will be used to configure the IHS administrative server.

    enableWinService

    Specifies whether or not to configure the IHS administrative server to run as a Windows service

    Specify only when configuring IHS.

    For use with Windows operating systems only.

    true

    Support to configure the IHS administrative server as a Windows service will be enabled

    false

    Support to configure the IHS administrative server as a Windows service will not be enabled.


Create web server config using response file

After running the WCT command, the web server is configured to use an application server as the hosting server. The WCT command also creates a new response file in the directory containing the configuration files. This response file might contain two undocumented entries, defLocPathname and profilePath, which are not functionally supported by the product. The new response file contains the information used to create the web server configuration.

Example: Use the pct tool to configure an IHS Web Server to use an application server as a hosting server

  • (Windows)

      wctcmd.bat -tool pct 
                 -defLocPathname C:\data\IBM\WebSphere\Plugins
                 -defLocName someDefinitionLocationName 
                 -createDefinition 
                 -response C:\IBM\WebSphere\tools\WCT\responsefile.txt
      

  • (Linux)

      ./wctcmd.sh -tool pct 
                   -defLocPathname /opt/IBM/WebSphere/Plugins
                   -defLocName someDefinitionLocationName 
                   -createDefinition 
                   -response /opt/IBM/WebSphere/tools/WCT/responsefile.txt
      


Example: Use response file for an IHS local plug-in configuration

The valid values for the webServerOS parameter, which specifies the web server operating system, are Windows, Linux, Solaris, AIX, HPUX, OS390, and OS400.

(UNIX)

    configType=local_standalone
    enableAdminServerSupport=true
    enableUserAndPass=true
    enableWinService=false
    ihsAdminCreateUserAndGroup=true
    ihsAdminPassword=******
    ihsAdminPort=8008
    ihsAdminUnixUserGroup=grp101
    ihsAdminUnixUserID=user1
    mapWebServerToApplications=true
    profileName=AppSrv01
    wasExistingLocation=/opt/IBM/WebSphere/AppServer
    webServerConfigFile1=/opt/IBM/HTTPServer/conf/httpd.conf
    webServerDefinition=webserver1
    webServerHostName=local.ibm.com
    webServerOS=operating_system_value
    webServerPortNumber=80
    webServerSelected=ihs
    
(Windows)

    configType=local_standalone
    enableAdminServerSupport=true
    enableUserAndPass=true
    enableWinService=true
    ihsAdminPassword=******
    ihsAdminPort=8008
    ihsAdminUserID=admin1
    ihsWindowsPassword=******
    ihsWindowsStartupType=auto
    ihsWindowsUserID=user1
    mapWebServerToApplications=true
    profileName=AppSrv01
    wasExistingLocation=D:\\IBM\\WebSphere\\AppServer
    webServerConfigFile1=D:\\IBM\\HTTPServer\\conf\\httpd.conf
    webServerDefinition=webserver1
    webServerHostName=local.ibm.com
    webServerInstallArch=32
    webServerPortNumber=80
    webServerSelected=ihs
    

The following is an example of the content of a response file for an IHS remote plug-in configuration. The valid values for the webServerOS parameter, which specifies the web server operating system, are Windows, Linux, Solaris, AIX, HPUX, OS390, and OS400.

(UNIX)

    configType=remote
    enableAdminServerSupport=true
    enableUserAndPass=true
    enableWinService=false
    ihsAdminCreateUserAndGroup=true
    ihsAdminPassword=******
    ihsAdminPort=8008
    ihsAdminUnixUserGroup=grp101
    ihsAdminUnixUserID=user1
    mapWebServerToApplications=true
    wasMachineHostname=192.168.1.2
    webServerConfigFile1=/opt/IBM/HTTPServer/conf/httpd.conf
    webServerDefinition=webserver1
    webServerHostName=remote.ibm.com
    webServerOS=operating_system_value
    webServerPortNumber=80
    webServerSelected=ihs
    
(Windows)

    configType=remote
    enableAdminServerSupport=true
    enableUserAndPass=true
    enableWinService=true
    ihsAdminPassword=******
    ihsAdminPort=8008
    ihsAdminUserID=admin1
    ihsWindowsPassword=******
    ihsWindowsStartupType=auto
    ihsWindowsUserID=user1
    mapWebServerToApplications=true
    wasMachineHostname=192.168.1.2
    webServerConfigFile1=D:\IBM\HTTPServer\conf\httpd.conf
    webServerDefinition=webserver1
    webServerHostName=remote.ibm.com
    webServerInstallArch=32
    webServerOS=windows
    webServerPortNumber=80
    webServerSelected=ihs
    


What to do next

Use the pct tool If our machine has multiple hostnames and IP addresses. However, the hostname must be set after the configuration of the web server through the PCT graphical user interface using the following process:

  1. Click Ports.

  2. Click WEBSERVER_ADDRESS. If it is an unmanaged mode, click WEBSERVER_ADMIN_ADDRESS.

  3. Change the hostname.

  4. Click OK to save.

best-practices