Deployment Example 1: Access Manager 7.1 Load Balancing, Distributed Authentication UI, and Session Failover

ProcedureTo Install Sun Java System Web Server as Web Container 1 on Protected Resource 1

Download the Sun Java System Web Server bits and install the software on the ProtectedResource–1 host machine.

  1. As a root user, log into the ProtectedResource–1 host machine.

  2. Install required patches if necessary.


    Note –

    Results for your machines might be different. Read the latest version of the Web Server 7.0 Release Notes to determine if you need to install patches and, if so, what they might be. In this case, the Release Notes indicate that based on the hardware and operating system being used, patch 117461–08 is required.


    1. Run patchadd to see if the patch is installed.


      # patchadd -p | grep 117461–08
      

      No results are returned which indicates that the patch is not yet installed on the system.

    2. Make a directory for downloading the patch you need and change into it.


      # mkdir /export/patches
      # cd /export/patches
      
    3. Download the patches.

      You can search for patches directly at http://sunsolve.sun.com. Navigate to the PatchFinder page, enter the patch number, click Find Patch, and download the appropriate patch.


      Note –

      Signed patches are downloaded as JAR files. Unsigned patches are downloaded as ZIP files.


    4. Unzip the patch file.


      # unzip 117461–08.zip
      
    5. Run patchadd to install the patches.


      # patchadd /export/patches/117461–08
      
    6. After installation is complete, run patchadd to verify that the patch was added successfully.


      # patchadd -p | grep 117461–08
      

      In this example, a series of patch numbers are displayed, and the patch 117461–08 is present.

  3. Create a directory into which you can download the Web Server bits and change into it.


    # mkdir /export/ws7
    # cd /export/ws7
    
  4. Download the Sun Java System Web Server 7.0 software from http://www.sun.com/download/products.xml?id=45ad781d.

    Follow the instructions on the Sun Microsystems Product Downloads web site for downloading the software. In this example, the software was downloaded to the /export/WS7 directory.


    # ls -al
    
    total 294548
    drwxr-xr-x   2 root     root         512 Aug  7 13:23 .
    drwxr-xr-x   3 root     sys          512 Aug  7 13:16 ..
    -rw-r--r--   1 root     root     150719523 Aug  7 13:24 sjsws-7_0-solaris-sparc.tar.gz
    
  5. Unpack the Web Server bits.


    # gunzip sjsws-7_0-solaris-sparc.tar.gz
    # tar xvf sjsws-7_0-solaris-sparc.tar
    
  6. Run setup.


    # ./setup --console
    
  7. When prompted, provide the following information.


    You are running the installation program 
    for the Sun Java System Web Server 7.0.
    ...
    The installation program pauses as questions 
    are presented so you can read the 
    information and make your choice.  
    When you are ready to continue, press Enter.

    Press Enter. Continue to press Enter when prompted. 


    Have you read the Software License 
    Agreement and do you accept all the terms?

    Enter yes.


    Sun Java System Web Server 7.0 
    Installation Directory [/sun/webserver7]

    Enter /opt/SUNWwbsvr


    Specified directory /opt/SUNWwbsvr 
    does not exist.  Create Directory? [Yes/No]				

    Enter yes.


    Select Type of Installation
    
    1. Express
    2. Custom
    3. Exit
    What would you like to do? [1]

    Enter 2.


    Component Selection
    
    1. Server Core
    2. Server Core 64-biy Binaries
    3. Administration Command Line Interface
    4. Sample Applications
    5. Language Pack
    Enter the comma-separated list [1,2,3,4,5]

    Enter 1,3,5.


    Java Configuration
    1. Install Java Standard Edition 1.5.0_09
    2. Reuse existing Java SE 1.5.0_09 or greater
    3. Exit
    What would you like to do? [1]

    Enter 1.


    Administrative Options
    1. Create an Administration Server and a 
       Web Server Instance
    2. Create an Administration Node
    Enter your option. [1]

    Enter 1.


    Start servers during system startup. [yes/no]

    Enter no.


    Host Name [ProtectedResource-1.example.com]

    Accept the default value. 


    SSL Port [8989]

    Accept the default value. 


    Create a non-SSL Port? [yes/no]

    Enter no.


    Runtime User ID [webservd]

    Enter root.


    Administrator User Name [admin]

    Accept the default value. 


    Administrator Password:

    Enter web4dmin.


    Retype Password:

    Enter web4dmin.


    Server Name [ProtectedResource-1.example.com]

    Accept the default value. 


    Http Port [8080]

    Enter 1080.


    Document Root Directory [/opt/SUNWwbsvr/
    https-ProtectedResource-1.example.com/docs]

    Accept the default value. 


    Ready To Install
    1. Install Now
    2. Start Over
    3. Exit Installation
    What would you like to do?

    Enter1.

    When installation is complete, the following message is displayed:


    Installation Successful.
  8. Start the Web Server administration server.


    # cd /opt/SUNWwbsvr/admin-server/bin
    # ./startserv
    
    server not running
    Sun Java System Web Server 7.0 B12/04/2006 10:15
    info: CORE3016: daemon is running as super-user
    info: CORE5076: Using [Java HotSpot(TM) Server VM, Version 1.5.0_09] 
      from [Sun Microsystems Inc.] 
    info: WEB0100: Loading web module in virtual server [admin-server] at 
      [/admingui ]
    info: WEB0100: Loading web module in virtual server [admin-server] at 
      [/jmxconne ctor]
     info: HTTP3072: admin-ssl-port: https://protectedresource-1.example.com:8989 
      ready to accept requests
    info: CORE3274: successful server startup
  9. Run netstat to verify that the port is open and listening.


    # netstat -an | grep 8989
    
    *.8989               *.*                0      0 49152      0 LISTEN
  10. (Optional) Login to the Web Server administration console at https://protectedresource-1.example.com:8989.

    Username

    admin

    Password

    web4dmin

    You should see the Web Server console.

  11. Log out of the Web Server console.

  12. Start the Protected Resource 1 Web Server instance.


    # cd /opt/SUNWwbsvr/https-ProtectedResource-1.example.com/bin
    # ./startserv
    
    server not running
    Sun Java System Web Server 7.0 B12/04/2006 10:15
    info: CORE3016: daemon is running as super-user
    info: CORE5076: Using [Java HotSpot(TM) Server VM, 
       Version 1.5.0_09] from [Sun Microsystems Inc.]
    info: HTTP3072: http-listener-1: http://ProtectedResource-1.example.com:1080 
       ready to accept requests
    info: CORE3274: successful server startup
  13. Run netstat to verify that the port is open and listening.


    # netstat -an | grep 1080
    
    *.1080               *.*                0      0 49152      0 LISTEN
  14. (Optional) Access the Protected Resource 1 instance at https://ProtectedResource-1.example.com:1080 using a web browser.

    You should see the default Web Server index page.

  15. Log out of the ProtectedResource–1 host machine.