Silent installation is a non-interactive mode that enables you to run the installer on multiple hosts using an installer configuration file (state file). To install in silent mode, generate a state file as described in Creating a State File, and then start the installation program using the --silent option (./setup --silent state_file). After the silent mode is activated, installation takes place without additional user input.
The installer configuration file (state file) is created when the savestate option is used with the setup command to start an interactive installation. Settings are captured during the interactive installation and saved in a state file. This file forms the template for silent installation, which can be used to install the product on one or more systems. The state file can be modified later if necessary, as described in Changing the State File.
Navigate to the directory that contains the setup script and other installation files.
Start the installation program.
Perform the installation as described in the installation steps in Installing in Graphical Mode or Installing in Command-Line Mode on UNIX and Linux.
The state file is created and saved in the installation directory (/sun/webserver7 by default on UNIX, C:\Program Files\sun\webserver7 on Windows). The default name of the file is statefile, but the file name can be changed if desired. For information about using the state file for silent installation, see Running the Installer in Silent Mode.
A state file on the UNIX platform might look as follows. For details about variables in the state file, see Changing the State File.
[STATE_BEGIN Sun Java System Web Server 3004128fedf19075471f3bc0422104b6ed460d76] defaultInstallDirectory = /sun/webserver7 currentInstallDirectory = /sun/webserver7 UPGRADE = false SELECTED_COMPONENTS = svrcore,svrcore64,admincli,devsupport,admincli_l10n,svrcore_l10n USE_BUNDLED_JDK = true JDK_LOCATION = IS_ADMIN_NODE = false STARTUP_ONBOOT = false ADMIN_HOST = webserver.sun.com ADMIN_SSL_PORT = 8989 ADMIN_PORT = 8800 ADMIN_UID = root ADMIN_NAME = admin ADMIN_PASSWD = adminadmin NODE_HOST = NODE_SSL_PORT = REGISTER_NODE = WEB_SERVERNAME = webserver.sun.com WEB_PORT = 8080 WEB_UID = webservd WEB_DOCROOT = /sun/webserver7/https-webserver.sun.com/docs SIXTYFOURBIT_INSTALL = true CONFIG_NAME = webserver.sun.com SKIP_INSTANCE_CREATION = [STATE_DONE Sun Java System Web Server 3004128fedf19075471f3bc0422104b6ed460d76]
You can change the state file after it has been generated by editing its values and variables. The following table lists the variables in the state file, in alphabetical order.
Ensure you only edit the values and variables. The structure of the state file should not be modified.
Variable Name |
Valid Values (If Applicable) |
Description |
---|---|---|
ADMIN_PORT |
0-65535 |
Valid port to run the Administration Server. |
ADMIN_SSL_PORT |
0–65535 |
Valid port for secure connections. |
ADMIN_UID |
Valid UNIX user ID |
Valid UNIX user ID to run the Administration Server. |
NODE_HOST |
Fully qualified domain name of the computer on which you are installing the Administration Node. |
|
NODE_SSL_PORT |
0–65535 |
Valid port for secure connections. |
CONFIG_NAME |
Default configuration name used by the Web Server to create a configuration, associate it with a node, and create an instance. The default for the Administration Server is https-config1. |
|
IS_ADMIN_NODE |
True or false |
Valid only for Administration Server and Administration Node installations; null for Administration Command Line installations. |
currentInstallDirectory |
Specified installation directory path. |
|
defaultInstallDirectory |
/sun/webserver7 on UNIX; C:\Program Files\Sun\WebServer7 on Windows |
Default installation directory path. |
JDK_LOCATION |
Selected Java Platform, Standard Edition (Java SETM) installation directory path. |
|
REGISTER_NODE |
True or false |
Specifies whether the Administration Node instance should be registered with the Administration Server instance at the time of installation or later. |
SELECTED_COMPONENTS |
Comma-separated list of product components selected for installation. |
|
SIXTYFOURBIT_INSTALL |
True or false |
Identifies a 64-bit installation. |
SKIP_INSTANCE_CREATION |
True or false |
True will not create default instances. |
STARTUP_ONBOOT |
True or false |
Start on system boot option. |
USE_BUNDLED_JDK |
True or false |
Install the JDK bundled with the installer; if false, JDK_LOCATION cannot be empty. |
WEB_DOCROOT |
The primary document directory for the Web Server instance; if this is empty, a default document directory is created. |
|
WEB_PORT |
0–65535 |
Valid default port to run the Web Server instance server under HTTP mode. |
WEB_SERVERNAME |
Fully qualified domain name of the computer on which the default Web Server instance is installed. |
|
WEB_UID |
Valid UNIX user ID |
Valid UNIX user ID to use when running the default Web Server instance. |
Variables such as ADMIN_HOST ADMIN_PORT ADMIN_NAME and ADMIN_PASSWD act differently based on the configuration. The table below has more information that you have installed.
Table 2–4 Configuration for Administration Server Instance
Variable name |
Valid values (if applicable) |
Description |
ADMIN_HOST |
Fully qualified domain name of the computer on which the Administration Server is installed |
|
ADMIN_PORT |
0-65535 |
Non-SSL port for the Administration Server |
ADMIN_NAME |
Administrator user name for the initial server instance |
|
ADMIN_PASSWD |
Administrator user password for the initial server instance, stored as plain text |
The following fields are displayed when you configure Administration Node to an Administration Server.
Table 2–5 Configuration for Administration Node Instance
Variable name |
Valid values (if applicable) |
Description |
ADMIN_HOST |
Fully qualified domain name of the computer on which the Administration instance is installed |
|
ADMIN_SSL_PORT |
0-65535 |
SSL port for the Administration Server |
ADMIN_NAME |
Administrator user name to log in to remote admin server |
|
ADMIN_PASSWD |
Administrator user password to log into remote admin server |
The following procedure applies to all supported platforms.
Review the installer configuration file (state file) and verify that it contains the settings you want to use for silent installation.
Copy the state file to each system on which you plan to install the Web Server software.
Copy the Web Server installation files to each system on which you plan to install the Web Server software.
Navigate to the directory where you copied the state file and the installation files.
Start silent installation at the command line using the following syntax:
./setup --silent state_file (UNIX)
setup --silent state_file (Windows)
where state_file is the installer configuration file. The installer program reads thestate_file, checks for adequate disk space, and then installs the product based on the data in state_file.
When the prompt is returned, silent installation is complete and the installation components have been installed.