Install IBM HTTP Server silently
We can use Installation Manager to install IBM® HTTP Server silently.
Before you begin
- Install IBM Installation Manager on each of the systems where you want to install the product.
IBM Installation Manager Version 1.8.5 or later is required to install the product.
We can download the most current version of Installation Manager from the IBM Installation Manager download website.
To install Installation Manager, change to the location containing the Installation Manager installation files, and run one of the following commands:
- Obtain the product repositories that contain the Web Server Plug-in installation files.There
are three basic options for obtaining and installing Installation Manager and the product.
- Access the physical media, and use local installation
We can access the product repositories on the product media.
- Download the files from the Passport Advantage® site, and use local installation
Licensed customers with a Passport Advantage
ID and password can download the necessary product repositories from the Passport Advantage site. Tip: See Download WebSphere Application Server from Passport Advantage Online for a list of the IBM
WebSphere Application Server Version 9.0 installation images
downloadable from the IBM Passport Advantage Online website and other information.
Use Installation Manager to install the product from the downloaded repositories.
- Access the live repositories, and use web-based installation
If you have a Passport Advantage ID and password, we can install the product from the web-based repositories.
Use Installation Manager to install the product from the web-based repository located athttp://www.ibm.com/software/repositorymanager/com.ibm.websphere.IHS.v90
Note: This location does not contain a web page that we can access using a web browser. This is a remote web-based repository location that you must specify for the value of the -repositories parameter so that the imcl command can access the files in this repository to install the product.
Whenever possible, you should use the remote web-based repositories so that you are accessing the most up-to-date installation files.
Notes:
- If you do not have a Passport Advantage ID and password, you must install the product from the product repositories on the media or local repositories.
- With the Packaging Utility, we can create and manage packages for installation repositories. We can copy multiple packages into one repository or copy multiple disks for one product into a repository. We can copy packages from Passport Advantage or a web-based repository into a local repository for example. For more information on the Packaging Utility, go to the IBM Installation Manager documentation.
- Access the physical media, and use local installation
The master password file is a text file that contains a passphrase, such as This text is
the master password. This file is used to secure your authentication credentials.
For more information, read the IBM Installation Manager
documentation.
Tip: When you record a new response file, we can specify the -skipInstall parameter.
Using this parameter has the following benefits:
The -skipInstall operation should not be used
on the actual agent data location used by Installation Manager This is unsupported. Use a clean
writable location, and re-use that location for future recording sessions.
For more information, read the IBM Installation Manager
documentation. or
Installation Manager searches its defined repositories for available packages. If
you already have IBM HTTP Server installed on your system, a
message displays indicating that IBM HTTP Server is already
installed. To create another installation of IBM HTTP Server
in another location, click Continue.
The panel also displays the shared resources directory and disk-space information. Symbolic links are not
supported. These spaces are not
supported. IBM HTTP
Server cannot install properly if the target directory includes a semicolon. A semicolon is the character used to construct the class path on Windows systems.
Important: If you do not select Run IBM HTTP Server as a Windows
Service, this instance of IBM HTTP Server cannot be stopped or started by the WebSphere
Application Server administrative console. At any time after installation, we can create a new
service by running the following
command: and
then updating the web server definition in the administrative console to reflect the new service
name.
Specify a port number on which IBM HTTP Server will
communicate. The default port is 80.
Notes:
Read the IBM Installation Manager documentation
for more information.
About this task
For transitioning users: IBM SDK, Java™ Technology Edition, Version 8 is the Java SDK version for WebSphere® Application Server
Version 9.0.
IBM SDK, Java Technology Edition is no longer embedded with IBM HTTP Server for WebSphere Application Server. The Java SDK is available as a separate offering that must be
installed when you install IBM HTTP Server.
Restriction: We can only configure the HTTP port (that is, the
user.ihs.httpPort) in IMCL/Silent/GUI mode on AIX or other UNIX
platforms. The administrative configuration cannot be performed along with the installation of IBM
HTTP Server. You need to install IBM HTTP Server first; then, we can use the GUI-based Plug-in
Configuration Tool or the pct command-line tool to perform the administrative configuration.
Procedure
IBMIM.exe -skipInstall "C:\temp\imRegistry"
-secureStorageFile C:\IM\credential.store -masterPasswordFile C:\IM\master_password.txt
-record C:\temp\install_response_file.xml
./IBMIM -skipInstall /var/temp/imRegistry
-secureStorageFile /var/IM/credential.store -masterPasswordFile /var/IM/master_password.txt
-record /var/temp/install_response_file.xml
./IBMIM -skipInstall user_home/var/temp/imRegistry
-secureStorageFile user_home/var/IM/credential.store -masterPasswordFile user_home/var/IM/master_password.txt
-record user_home/var/temp/install_response_file.xml
https://downloads.mycorp.com:8080/WAS_90_repository
http://www.ibm.com/software/repositorymanager/com.ibm.websphere.IHS.v90
ihs_root/bin/httpd.exe -n new_service_name -k install
imcl.exe -acceptLicense
input C:\temp\credential_response_file.xml
-secureStorageFile C:\IM\credential.store -masterPasswordFile C:\IM\master_password.txt
-log C:\temp\credential_log.xml
./imcl -acceptLicense
input /var/temp/credential_response_file.xml
-secureStorageFile /var/IM/credential.store -masterPasswordFile /var/IM/master_password.txt
-log /var/temp/credential_log.xml
./imcl -acceptLicense
input user_home/var/temp/credential_response_file.xml
-secureStorageFile user_home/var/IM/credential.store -masterPasswordFile user_home/var/IM/master_password.txt
-log user_home/var/temp/credential_log.xml
imcl.exe -acceptLicense
-input C:\temp\install_response_file.xml
-log C:\temp\install_log.xml
-secureStorageFile C:\IM\credential.store -masterPasswordFile C:\IM\master_password.txt
-repositories C:\IHS_REPOSITORY\ -installationDirectory C:\IHS -sharedResourcesDirectory C:\IM\IMShared\ -acceptLicense
-properties "user.ihs.httpPort=80,user.ihs.allowNonRootSilentInstall=true"
./imcl -acceptLicense
-input /var/temp/install_response_file.xml
-log /var/temp/install_log.xml
-secureStorageFile /var/IM/credential.store -masterPasswordFile /var/IM/master_password.txt
-repositories /root/IHS/ -installationDirectory /QIBM/ProdData/IHS -sharedResourcesDirectory
/QIBM/UserData/InstallationManager/IMShared/ -acceptLicense -properties "user.ihs.httpPort=80,user.ihs.allowNonRootSilentInstall=true"
./imcl -acceptLicense
-input user_home/var/temp/install_response_file.xml
-log user_home/var/temp/install_log.xml
-secureStorageFile user_home/var/IM/credential.store -masterPasswordFile user_home/var/IM/master_password.txt
-repositories /root/IHS/ -installationDirectory /QIBM/ProdData/IHS -sharedResourcesDirectory
/QIBM/UserData/InstallationManager/IMShared/ -acceptLicense -properties "user.ihs.httpPort=80,user.ihs.allowNonRootSilentInstall=true"
Example
The following is an example of a response file for silently installing IBM HTTP Server and IBM SDK, Java Technology Edition, Version 8.Important: Because IBM SDK Java Technology Edition is a separate offering that must be
installed when you install IBM HTTP Server, your response file must contain two
<offering> elements: one for IBM HTTP Server, and one for the Java
SDK.
<?xml version="1.0" encoding="UTF-8"?>
<!-- ##### Copyright ######################################################
# Licensed Materials - Property of IBM (c) Copyright IBM Corp. 2011.
# All Rights Reserved. US Government Users Restricted Rights-Use, duplication
# or disclosure restricted by GSA ADP Schedule Contract with IBM Corp.
####################################################################### -->
<!-- ##### Frequently Asked Questions #####################################
# The latest information about using Installation Manager is
# located in the online Information Center. There we can find
# information about the commands and attributes used in
# silent installation response files.
#
# Installation Manager Information Center can be found at:
# http://www.ibm.com/support/knowledgecenter/SSDV2W/im_family_welcome.html
#
# Question 1. How do I record a response file using Installation Manager?
# Answer 1. Start Installation Manager from the command line under the
# eclipse subdirectory with the record parameter and it will generate a
# response file containing actions it performed, repositories it used, and
# its preferences settings. Optionally use the -skipInstall parameter if
# you do not want the product to be installed to the machine. Specify a
# new agentDataLocation location value when doing a new installation. Do
# not use an existing agentDataLocation for an installation because it might
# damage the installation data and prevent you from modifying, updating,
# rolling back, or uninstalling the installed packages.
#
# Windows: IBMIM -record <responseFile> -skipInstall <agentDataLocation>
# Linux or UNIX: ./IBMIM -record <responseFile> -skipInstall <agentDataLocation>
#
# For example:
# Windows = IBMIM.exe -record c:\temp\responsefiles\WASv9.install.Win32.xml
# -skipInstall c:\temp\skipInstall\WebSphere_Temp_Registry
# Linux or UNIX = ./IBMIM -record /home/user/responsefiles/WASv9.install.RHEL64.xml
# -skipInstall c:\temp\skipInstall\WebSphere_Temp_Registry
#
# Question 2. How do I run Installation Manager silently using response file?
# Answer 2. Create a silent installation response file and run the following command
# from the eclipse\tools subdirectory in the directory where you installed
# Installation Manager:
#
# Windows = imcl.exe -acceptLicense -showProgress
# input <response_file_path_and_name> -log <log_file_path_and_name>
# Linux, UNIX, IBM i and z/OS = ./imcl -acceptLicense -showProgress
# input <response_file_path_and_name> -log <log_file_path_and_name>
#
# For example:
# Windows = imcl.exe -acceptLicense -showProgress
# input c:\temp\responsefile\WASv9.install.Win32.xml
# Linux, UNIX, IBM i and z/OS = ./imcl -acceptLicense -showProgress
# input /home/user/responsefile/WASv9.install.RHEL64.xml
#
# The -acceptLicense command must be included to indicate acceptance of all
# license agreements of all offerings being installed, updated or modified.
# The -showProgress command shows progress when running in silent mode.
# Additional commands can be displayed by requesting help: IBMIM -help
#
# Question 3. How do I store and pass credentials to repositories that
# require authentication?
# Answer 3. Installation Manager uses a key ring file to store encrypted
# credentials for authenticating with repositories. Follow this two-step
# process for creating and using a key ring file with Installation Manager.
#
# First, create a credential storage file with your credentials by starting
# Installation Manager from the command line under eclipse subdirectory
# with the -secureStorageFile parameter.
# Use the optional -masterPasswordFile parameter to password protect your file
# with a passphrase in a text file.
#
# Windows = IBMIM.exe -secureStorageFile <path and file name>
# -masterPasswordFile <path and file name>
# Linux, UNIX, IBM i and z/OS = ./IBMIM -secureStorageFile <path and file name>
# -masterPasswordFile <path and file name>
#
# Installation Manager will start in graphical mode. Verify that the
# repositories to which you need to authenticate are included in the
# preferences, File / Preferences / Repositories. If they are not
# listed, then click Add Repositories to add the URL or UNC path.
# Installation Manager will prompt for your credentials. If the repository
# is already in the list, then any attempt to access the repository location,
# such as clicking the Test Connections button, will also prompt for your
# credentials. Enter the correct credential and check the Save password
# checkbox. The credentials are saved to the key ring file you specified.
#
# Second, when you start a silent installation, run imcl under eclipse/tools
# subdirectory, and provide Installation Manager with the location of the
# credential storage file and the password if the file is protected. For example:
#
# Windows = imcl.exe -acceptLicense -showProgress
# input <path and file name of response file>
# -secureStorageFile <path and file name>
# -masterPasswordFile <path and file name>
# Linux, UNIX, IBM i and z/OS = ./imcl -acceptLicense -showProgress
# input <path and file name of response file>
# -secureStorageFile <path and file name>
# -masterPasswordFile <path and file name>
#
####################################################################### -->
<!-- ##### Agent Input ##############################################
#
# Use "-acceptLicense" command line option to accept license agreements.
#
# The clean and temporary attributes specify the repositories and other
# preferences Installation Manager uses and whether those settings
# should persist after the installation finishes.
#
# Valid values for clean:
# true = only use the repositories and other preferences that are
# specified in the response file.
# false = use the repositories and other preferences that are
# specified in the response file and Installation Manager.
#
# Valid values for temporary:
# true = repositories and other preferences specified in the
# response file do not persist in Installation Manager.
# false = repositories and other preferences specified in the
# response file persist in Installation Manager.
#
####################################################################### -->
<agent-input clean="true" temporary="true">
<!-- ##### Repositories ###################################################
# Repositories are locations that Installation Manager queries for
# installable packages. Repositories can be local (on the machine
# with Installation Manager) or remote (on a corporate intranet or
# hosted elsewhere on the internet).
#
# If the machine using this response file has access to the internet,
# then include the IBM WebSphere Live Update Repositories in the list
# of repository locations.
#
# If the machine using this response file cannot access the internet,
# then comment out the IBM WebSphere Live Update Repositories and
# specify the URL or UNC path to custom intranet repositories and
# directory paths to local repositories to use.
#
####################################################################### -->
<server>
<!-- ##### IBM WebSphere Live Update Repositories ####################
# These repositories contain IBM HTTP Server offerings,
# and updates for those offerings
#
# To use the secure repository (https), you must have an IBM ID,
# which can be obtained by registering at: http://www.ibm.com/account
# or your Passport Advantage account.
#
# And, you must use a key ring file with your response file.
################################################################## -->
<!--repository location="http://www.ibm.com/software/repositorymanager/com.ibm.websphere.IHS.v90" /> -->
<!-- <repository location="https://www.ibm.com/software/rational/repositorymanager/repositories/websphere" /> -->
<!-- ##### Custom Repositories #######################################
# Uncomment and update the following repository location key
# to specify URLs or UNC paths to any intranet repositories
# and directory paths to local repositories to use.
################################################################## -->
<!-- <repository location='https:\\w3.mycompany.com\repositories\'/> -->
<!-- <repository location='/home/user/repositories/websphere/'/> -->
<!-- ##### Local Repositories ########################################
# Uncomment and update the following line when using a local
# repository located on your own machine to install a
# IBM HTTP Server offering.
############################################################# -->
<!-- <repository location='insert the full directory path inside single quotes'/> -->
<repository location='C:\Documents and Settings\Administrator\DownloadDirector\V9IHS'/>
</server>
<!-- ##### Install Packages ##########################################
#
# Install Command
#
# Use the install command to inform Installation Manager of the
# installation packages to install.
#
# The modify attribute is optional and can be paired with an install
# command to add features or paired with an uninstall command to
# remove commands. If omitted, the default value is set to false.
# false = indicates not to modify an existing install by adding
# or removing features.
# true = indicates to modify an existing install by adding or
# removing features.
#
# The offering ID attribute is required because it specifies the
# offering to be installed. The offering listed must be present in
# at least one of the repositories listed earlier. The example
# command in the next section contains the offering ID for the IBM HTTP Server.
#
# The version attribute is optional. If a version number is provided,
# then the offering will be installed at the version level specified
# as long as it is available in the repositories. If the version
# attribute is not provided, then the default behavior is to install
# the latest version available in the repositories. The version number
# can be found in the repository.xml file in the repositories.
# For example, <offering ... version='9.0.0.20160617_2222'>.
#
# The profile attribute is required and typically is unique to the
# offering. If modifying or updating an existing installation, the
# profile attribute must match the profile ID of the targeted installation
# of IBM HTTP Server.
#
# The features attribute is optional. Offerings always have at least
# one feature; a required core feature which is installed regardless
# of whether it is explicitly specified. If other feature names
# are provided, then only those features will be installed.
# Features must be comma delimited without spaces.
#
# The installFixes attribute indicates whether fixes available in
# repositories are installed with the product. By default, all
# available fixes will be installed with the offering.
#
# Valid values for installFixes:
# none = do not install available fixes with the offering.
# recommended = installs all available recommended fixes with the offering.
# all = installs all available fixes with the offering.
#
# Interim fixes for offerings also can be installed while they
# are being installed by including the offering ID for the interim
# fix and specifying the profile ID. A commented out example is
# provided in the install command at the end of this section.
#
# Installation Manager supports installing multiple offerings at once.
# Additional offerings can be included in the install command,
# with each offering requiring its own offering ID, version, profile value,
# and feature values.
#
# Profile Command
#
# A separate profile command must be included for each offering listed
# in the install command. The profile command informs Installation
# Manager about offering specific properties or configuration values.
#
# The installLocation specifies where the offering will be installed.
# If the response file is used to modify or update an existing
# installation, then ensure the installLocation points to the
# location where the offering was installed previously.
#
# The eclipseLocation data key should use the same directory path to
# IBM HTTP Server as the installationLocation attribute.
#
# Include data keys for product specific profile properties.
#
####################################################################### -->
<install modify='false'>
<offering id='com.ibm.websphere.IHS.v90'
profile='IBM HTTP Server V9.0'
features='core.feature' installFixes='none'/>
<offering id='com.ibm.java.jdk.v8'
profile='IBM HTTP Server V9.0'
features='com.ibm.sdk.8'/>
</install>
<profile id='IBM HTTP Server V9.0'
installLocation='C:\Program Files\IBM\HTTPServer'>
<data key='eclipseLocation' value='C:\Program Files\IBM\HTTPServer'/>
<data key='user.import.profile' value='false'/>
<data key='user.ihs.http.server.service.name' value='none'/> <!-- Always none if
user.ihs.installHttpService = false Otherwise Unique Windows service name -->
<data key='user.ihs.httpPort' value='80'/>
<data key='user.ihs.installHttpService' value='false'/>
<!-- data key='user.ihs.http.server.service.name.key value='Unique Windows service registry key'
Windows Only - Required if user.ihs.installHttpServer = true
data key='user.ihs.win.serverServiceStartType value='auto | demand'/> Windows Only
data key='user.ihs.win.serverServiceLogOnAsLocalSystem value='true | false'/> Windows Only
data key='user.ihs.win.serverServiceUser value='local user name'/> Windows Only
data key='user.ihs.win.serverServicePassword value='local user password'/> Windows Only
Required if data key='user.ihs.win.serverServiceLogOnAsLocalSystem = false
password value can be encrypted using Installation Manager
utility program, <installationManagerRoot>/eclispe/tools/imutilsc
-->
<data key='cic.selector.nl' value='en'/>
</profile>
<!-- ##### Shared Data Location ###########################################
# Uncomment the preference for eclipseCache to set the shared data
# location the first time you use Installation Manager to do an
# installation.
#
# Eclipse cache location can be obtained from the installed.xml file found in
# Linux/Unix: /var/ibm/InstallationManager
# Windows: C:\Documents and Settings\All Users\Application Data\IBM\Installation Manager
# from the following property:
# <property name='cacheLocation' value='C:\Program Files\IBM\IMShared'/>
#
# Open the installed.xml file in a text editor because the style sheet
# might hide this value if opened in a web browser.
#
# After the shared data location is set, it cannot be changed
# using a response file or the graphical wizard.
#
# Ensure that the shared data location is a location that can be written
# to by all user accounts that are expected to use Installation Manager.
#
# By default, Installation Manager saves downloaded artifacts to
# the shared data location. This serves two purposes.
#
# First, if the same product is installed a more than once to the machine,
# then the files in the shared data location will be used rather than
# downloading them again.
#
# Second, during the rollback process, the saved artifacts are used.
# Otherwise, if the artifacts are not saved or are removed, then
# Installation Manager must have to access the repositories used to
# install the previous versions.
#
# Valid values for preserveDownloadedArtifacts:
# true = store downloaded artifacts in the shared data location
# false = remove downloaded artifacts from the shared data location
#
####################################################################### -->
<!--
<preference name='com.ibm.cic.common.core.preferences.eclipseCache' value='C:\Program Files\IBM\IMShared'/>
<preference name='com.ibm.cic.common.core.preferences.preserveDownloadedArtifacts' value='true'/>
-->
<!-- ##### Preferences Settings ###########################################
# Additional preferences for Installation Manager can be specified.
# These preference correspond to those that are located in the graphical
# interface under File / Preferences.
#
# If a preference command is omitted from or commented out of the response
# file, then Installation Manager uses the preference value that was
# previously set or the default value for the preference.
#
# Preference settings might be added or deprecated in new versions of
# Installation Manager. Consult the online Installation Manager
# Information Center for the latest set of preferences and
# descriptions about how to use them.
#
# http://www.ibm.com/support/knowledgecenter/SSDV2W/im_family_welcome.html
#
####################################################################### -->
<!--
<preference name='com.ibm.cic.common.core.preferences.connectTimeout' value='30'/>
<preference name='com.ibm.cic.common.core.preferences.readTimeout' value='45'/>
<preference name='com.ibm.cic.common.core.preferences.downloadAutoRetryCount' value='0'/>
<preference name='offering.service.repositories.areUsed' value='true'/>
<preference name='com.ibm.cic.common.core.preferences.ssl.nonsecureMode' value='false'/>
<preference name='com.ibm.cic.common.core.preferences.http.disablePreemptiveAuthentication' value='false'/>
<preference name='http.ntlm.auth.kind' value='NTLM'/>
<preference name='http.ntlm.auth.enableIntegrated.win32' value='true'/>
<preference name='com.ibm.cic.common.core.preferences.keepFetchedFiles' value='false'/>
<preference name='PassportAdvantageIsEnabled' value='false'/>
<preference name='com.ibm.cic.common.core.preferences.searchForUpdates' value='false'/>
<preference name='com.ibm.cic.agent.ui.displayInternalVersion' value='false'/>
-->
</agent-input>
Related tasks