Sun ONE Web Server 6.1 Installation and Migration Guide |
Chapter 4
Installing Sun ONE Web Server on WindowsThis chapter tells you how to install Sun ONE Web Server on Windows. It contains the following sections:
Installing on WindowsThe following sections describe the installation of the Sun ONE Web Server.
Any errors that occur when the server starts are logged in the Event Viewer. Once started, the server logs errors to the normal error log file.
Please keep the following warnings in mind:
- If you have previous versions of Netscape or Sun ONE web servers installed, you must install your 4.x iPlanet Web Server in a different server root directory.
- If you have Early Access versions of Sun ONE servers installed, uninstall them before installing the final version.
- Because of DLL conflicts, if you install Sun ONE Web Server 6.1 and iPlanet Web Server 4.x on the same machine, uninstall 4.x after you migrate it to Sun ONE Web Server 6.1. When you uninstall iPlanet Web Server 4.x, don’t delete any shared dll files (when asked, choose “No to All”). If not, you will have trouble uninstalling Sun ONE Web Server 6.1 later.
- If you have previous versions of Sun ONE web servers installed, shut down the Administration Server and Enterprise Server instances before installing Sun ONE Web Server 6.1.
- If you want to monitor the Sun ONE Web Server using the Simple Network Management Protocol (SNMP), ensure that you have installed Windows SNMP components before installing the Sun ONE Web Server.
Unpacking the Files
To get the Sun ONE Web Server files and unpack them, follow these steps:
Installing from a Sun ONE Web Server, Enterprise Edition CD
Installing a Downloaded Server
Running setup.exe
Run the setup.exe program to install Sun ONE Web Server.
- Double-click the setup.exe file.
- The Welcome screen appears. After reading the Welcome screen, click Next.
- The Software License Agreement appears. Click Yes to accept the license.
- The Select Installation Type screen appears. Choose the kind of installation you want: Express, Typical or Custom.
Express installation is for users who have little experience or are evaluating the product. It makes assumptions about such things as port number and which components to install. This option is not recommended if you are using your server in a production environment.
Typical and Custom installation give you more options, and for this release, do the same thing.
If you chose Express installation, the following settings are set automatically for you. By default, the Java Developer’s Kit (JDK) used is the bundled JDK. If you want to have different values for these settings, choose Typical or Custom installation.
Click Next.
- The Location of Installation dialog box appears. The default location for the server files is C:\Sun\WebServer6.1.
If you want to install Sun ONE Web Server in a non-default location, use Browse to navigate to the folder you want, or type the name in the field. If you choose a folder that does not exist, the installation program asks if you want to create the folder.
Click Next.
- The Components to Install dialog box appears. Select Web Server from the list.
Note that because the Administration Server is now an Sun ONE Web Server instance, it is installed automatically when you install Sun ONE Web Server, and is not a choice on this product list.
If you did not change subcomponents or if you’ve completed your subcomponent selections, click Next to continue to Step 8.
If you are migrating from iPlanet Web Server 4.1, when you install subcomponents, you must install all the subcomponents you installed for 4.1, otherwise they may not work. You can install additional subcomponents as well.
- If you clicked Change on the previous screen, the Select Sub-Components dialog box appears. By default the following subcomponents are installed:
- Server Core. Installs the Administration Server and the first instance of Sun ONE Web Server.
- Java Development Kit. Sun ONE Web Server 6.1 provides JDK version 1.4.1_03 as a bundled product. You can install the provided JDK, or supply your own.
Click Continue when you are through choosing subcomponents to return to the Components to Install dialog box (Step 6).
- Type the user name for Administration Server access; the default is admin. Type the Administration Server access password; type it again for verification.
If you are using LDAP-based authentication, you must make sure that this user has access permissions to the LDAP server to perform user/group management tasks.
If you chose Express Installation, skip to Step 12.
Click Next.
- Type the port number the Administration Server runs on. This can be any number from 1 to 65535. The URL for administration access is displayed. You might want to make a note of this URL. The default port is 8888.
If iPlanet Web Server 4.x is installed on your system, do not use the same Administration Server port number for Sun ONE Web Server 6.1 as you used for iPlanet Web Server 4.x.
For more information on ports, see Choosing Unique Port Numbers.
Click Next.
- The Default Web Server dialog box appears. A default instance of Sun ONE Web Server is installed automatically.
Type a port number for the default instance of your Sun ONE Web Server. This port should be different than the Administration Server port. If you use a port other than the default port (port 80), the URL used to gain access to your home page will change. For example, if your computer is called www.sun.com and you choose port 9753, your server’s URL will be
http://www.sun.com:9753/For more information on ports, see Choosing Unique Port Numbers.
Type the path for the default server’s primary document directory, where your server’s content files (the images, HTML documents and data you want to present to users accessing the server) will reside. The default is C:\server_root\docs. Click Browse to navigate your file system.
- The JDK Configuration dialog box appears.
You can use the JDK included with Sun ONE Web Server (JDK 1.4.1_03) or you can use a custom JDK that already resides on your system.
Java support in Sun ONE Web Server 6.1 requires a JDK version that is at least JDK version 1.4.
To use your own JDK, click the Use Custom Java Development Kit checkbox and enter the absolute path to the folder where you installed the JDK on your system. For example, D:\jdk1.4\ If the custom JDK is located in a directory with a non-standard tree structure, then you would need to enter the full path to the directory where jvm.dll is located.
- The Configuration Summary dialog box appears.
This dialog box contains information about the settings for your Web Server and Administration Server. It also contains a list of the Sun ONE Web Server components you selected for installation.
This dialog box gives you the opportunity to review your settings before the installation is complete. If they are correct, click Install. If you want to change some of the settings, click Back and correct the information.
The server files are installed.
- The Setup Complete dialog box appears.
To view the Readme file, keep the View Readme checkbox checked (by default), and click Finish.
The Readme file contains a pointer to the latest Release Notes for Sun ONE Web Server 6.1.
You can start the Administration Server in either of the following ways:
- Select Start Menu -> Programs -> Sun ONE Web Server, and choose Start Web Server Administration Server.
- From the Control Panel’s Services item.
To start the servers automatically after reboot, change the Startup Type of the services to Automatic from the Control Panel’s Services item, as shown in the following figure:
Changing the Services Startup Type
- Restart your machine or use the Services Control Panel to start the Sun ONE Web Server.
- To configure your Sun ONE Web Server, use the URL:
http://server_name:administration_portFor example: http://www.sun.com:8888
Enter your administration user name and password to administer the server.
You can now configure your server. For more information, see the Sun ONE Web Server 6.1 Administrator’s Guide.
Using Silent InstallationIf you want to install several Sun ONE Web Servers, you can use silent installation to create a file of responses to the setup program’s prompts. You can then edit the file, install.inf, and use it for future Sun ONE Web Server installations.
Silent installation works best when you use the Typical installation and your installations are all similar.
Because Sun ONE Web Server is downloaded as a self-extracting .exe file, you must first extract the files before running setup.exe. To extract the files, follow these steps:
You now have a copy of setup.exe that you can use for creating the install.inf file.
To use silent installation, follow these steps:
- From the command line, run setup with the -k option, which creates a file called install.inf that contains all your responses to the installer’s prompts. At the command prompt, type:
setup.exe -k
- Answer the installer prompts and install Sun ONE Web Server.
- When the server is installed, go to the server_root/setup directory, where you’ll find the install.inf file.
- Copy the install.inf file to the directory where you will run setup to install your next Sun ONE Web Server.
- Edit the values in the install.inf file to match the values of the next server you want to install.
For example, change the port number, installation directory, etc.
- Run setup using the install.inf file for input. For example:
setup.exe -s -f install.inf
- The server is installed.
The following is an example of an install.inf file.
The following table shows some useful install.inf parameters to edit. For best results, do not edit any parameters except those listed in the table.
Table 4-2 Silent Installation Parameters
Parameter Name
Use
ServerRoot
The directory where you install the server.
AdminPort
The Administration Server port.
HttpPort
The port of the default Sun ONE Web Server instance.
HttpDocRoot
The document root of the Sun ONE Web Server instance.
AdminName
The user name used to access to the Administration Server’s administration screens.
AdminPassword
The password used to access to the Administration Server’s administration screens.
JDK_DIR
The directory where your JDK is installed.
Default Sun ONE Web Server DirectoriesWhen you install the Sun ONE Web Server product, two web server instances are installed by default under the installation directory:
Files for the Web Server instance are stored in the https-host.domain directory under the installation directory.
Files for the Administration Server instance are stored in the https-admserv directory under the installation directory.
For more information about the configuration files that are created, see the Sun ONE Web Server 6.1 Administrator’s Configuration File Reference.
Using Uninstall on WindowsTo remove your Sun ONE Web Server:
- Select Start Menu -> Control Panel -> Add/Remove Programs -> Sun ONE Web Server
or
Select Start Menu -> Programs -> Sun ONE Web Server -> Uninstall Web Server.
- The Sun ONE Uninstall window appears. This window lists all the Sun ONE installed in this directory. Click the checkbox next to Sun ONE Web Server and click Uninstall. Note that uninstalling Sun ONE Web Server automatically uninstalls the Administration Server, since it is an instance of Sun ONE Web Server.
- The uninstall program uninstalls the server. You see a window showing the progress of the uninstall.
- When the uninstall is complete, a message appears saying that the configuration files have not been deleted, and that you should rename them before reinstalling the server. Click OK to continue.