HTTP Server 12c (12.2.1): Using the Configuration Wizard


Options



Before You Begin

Purpose

This tutorial shows you how to configure Oracle HTTP Server 12c(12.2.1) in a WebLogic Server Domain uisng the Configuration Wizard.

Time to Complete

Approximately 30 minutes

Background

Oracle HTTP Server is the web server component for Oracle Fusion Middleware.

Oracle HTTP Server provides the following services:

  1. Delivers the HTTP Listener for the Oracle WebLogic Server through the built-in Oracle WebLogic Server Proxy Plug-In
  2. Provides the Web Server component for Oracle Fusion Middleware
  3. Serves static web content, such as HTML, JavaScript, images, and dynamic web content built with CGI/FastCGI-based applications.

In this tutorial, you will learn about how to configure Oracle HTTP Server(OHS) using the Configuration Wizard.

What Do You Need?

Operating System and Software Requirements
  • A Linux machine with version 6 or greater of Oracle Linux or Red Hat Linux
  • JDK 1.8 update 51 and above
  • Oracle WebLogic Server 12c (12.2.1) software
Prerequisites

You should have completed the HTTP Server 12c (12.2.1): Installing Oracle HTTP Server tutorial.

Configuring Oracle HTTP Server using the Configuration Wizard

In the Installing Oracle HTTP Server tutorial, the last step in the Installing the Oracle HTTP Server(OHS) topic has the following instructions in the Next Steps region of the Installation Wizard:

  1. Create a domain using the Configuration Wizard.
  2. Start Node Manager and Domain Servers.

In this section you will create a domain using the Configuration Wizard.

  1. Navigate to the ORACLE_HOME/oracle_common/common/bin directory and start the WebLogic Server Configuration Wizard.

    $ cd /scratch/u01/app/fmw1221_infra/oracle_common/common/bin
    $ ./config.sh

    The Configuration Wizard opens.

  2. On the Configuration Type page, provide the following information, and click Next:

    • Select Create a new domain.
    • Enter a location for the domain.
      In this tutorial, the location is /scratch/u01/domains/ohs_domain.

    Note: You can choose a different name and location for your domain.

    Configuration Type
    Description of this image
  3. On the Templates page, make the following selections, and click Next:

    • Create Domain Using Product Templates: Selected
    • All Templates: Selected for Template Categories
    • Under Available Templates:
      • Basic WebLogic Server Domain: Selected
        Basic WebLogic Server Domain cannot be deselected.
      • Oracle HTTP Server (Collocated) - 12.2.1 [ohs] : Selected
      • Oracle Enterprise Manager - 12.2.1 [em] : Selected
      • Oracle JRF - 12.2.1 [oracle_common] : Selected
      • WebLogic Coherence Cluster Extension - 12.2.1 [wlserver] : Selected
    Templates
    Description of this image
  4. On the Application Location page, provide the following information, and click Next:

    • Enter a location for the applications.

      In this tutorial, the location is /scratch/u01/applications/ohs_domain.

      Note: You can choose a different name and location for your applications.

    Application Location
    Description of this image
  5. On the Administrator Account page, enter a name and a password, confirm the password, and then click Next.

    In this tutorial, the username is weblogic and the password is welcome1.

    Important: Do not forget the username and password. You need them to perform every administrative task.

    Administrator Account
    Description of this image
  6. On the Domain Mode and JDK page, make the following selections, and then click Next:

    • Domain Mode: Production
    • JDK: Oracle HotSpot 1.8.0_60 /scratch/jdk1.8.0_60
      The version and location of your HotSpot JDK may be different.
    Domain Mode and JDK
    Description of this image
  7. On the Database Configuration Type page, enter or select the following and click Get RCU Configuration:

    Field Value
    Vendor Oracle
    Driver Default
    DBMS/Service orcl.example.com
    Host Name host01.example.com
    Port 1521
    Schema Owner DEV_STB
    Schema Password welcome1

    Important Note: Before performing this step you should have a database(Oracle Database 12c or later (Express Edition may work as well but has not been tested.) installed(Refer Installing Oracle Database Software and Creating a Database) and should have created Schemas as a User with Full SYS or SYSDBA Privileges using Repository Creation Utility(RCU). Refer Creating Schemas for detailed instructions.

    Once getting the RCU configuration is successfully done, click Next.

    Database Configuration Type
    Description of this image
  8. On the JDBC Component Schema page, click Next.

    JDBC Component Schema
    Description of this image
  9. On the JDBC Component Schema Test page, verify that all the Schema Tests are successful and click Next.

    JDBC Component Schema Test
    Description of this image
  10. On the Advanced Configuration page, select which domain resources that you want to configure, and click Next.

    In this tutorial, Administration Server, Node Manager, and Managed Servers, Clusters and Coherence are selected.

    As you select more options, more screens are listed on the left side of the wizard.

    Advanced Configuration
    Description of this image
  11. On the Administration Server page, accept the default values, and click Next:
    Administration Server
    Description of this image
  12. On the Node Manager page, enter the following information and click Next:

    • Node Manager Type: Per Domain Default Location
    • Username: weblogic
    • Password: welcome1
      You will use these credentials to communicate with Node Manager.
      Note: The credentials for Node Manager do not have to match the administrator account credentials.
    Node Manager
    Description of this image
  13. On the Managed Servers page, click Add to add servers as shown in the screenshot below and click Next:

    Managed Servers
    Description of this image
  14. On the Clusters page, click Add add to add a cluster cluster1 and click Next:

    Clusters
    Description of this image
  15. On the Assign Servers to Clusters page, perform the following steps:

    1. Under Clusters, ensure that cluster1 is selected.
    2. Under Servers, select server1 and click the right arrow button to move it under cluster1.
    3. Select server2 and click the right arrow button to move it under cluster1.
    4. Click Next.
    Assign Servers to Clusters
    Description of this image
  16. On the Coherence Clusters page, click Next.

    Coherence Clusters
    Description of this image
  17. On the Machines page, click Next.

    Machines
    Description of this image
  18. On the Assign Servers to Machines page:

    1. Shuttle server1 and server2 servers to Machines and make sure that both the servers are assigned to machine1.
    2. Click Next.
    Assign Servers to Machines
    Description of this image
  19. On the Configuration Summary page, click Create.

    Configuration Summary
    Description of this image

    Note: Ignore the warning.

  20. On the Configuration Progress page, click Next after the progress bar reaches 100%.

    Configuration Progress
    Description of this image
  21. On the Configuration Success page, make note of the domain location and the URL of the administration console, and then click Finish.

    Configuration Success
    Description of this image

Starting Node Manager and Domain Servers

To start the Node Manager and the Domains Servers, perform the following steps:

  1. Open a terminal and navigate to the following location:

    $ cd /scratch/u01/domains/ohs_domain/bin/
  2. Execute startNodeManager.sh script to start the Node Manager.

    $ ./startNodeManager.sh
    NODEMGR_HOME is already set to /scratch/u01/domains/ohs_domain/nodemanager
    CLASSPATH=/scratch/jdk1.8.0_60/lib/tools.jar:/scratch/u01/app/fmw1221_infra/wlserver/server/lib/weblogic.jar:/scratch/u01/app/fmw1221_infra/wlserver/../oracle_common/modules/net.sf.antcontrib_1.1.0.0_1-0b3/lib/ant-contrib.jar:/scratch/u01/app/fmw1221_infra/wlserver/modules/features/oracle.wls.common.nodemanager.jar::/scratch/u01/app/fmw1221_infra/wlserver/..
    .
    .
    Domain name mappings:
    
    ohs_domain -> /scratch/u01/domains/ohs_domain
    
      <12.2.1.0.0>
      
    
  3. In the same terminal window, open a tab and execute startWebLogic.sh script to start Administration Server.

    $ ./startWebLogic.sh 
    .
    .
         
        
    
  4. Repeat the above step to start the servers server1 and server2 using the startManagedWebLogic.sh script.

    $ ./startManagedWebLogic.sh server1
    .
    .
         
        
    
    $ ./startManagedWebLogic.sh server2
    .
    .
         
        
    

Apply JRF Template to the Cluster

Oracle JRF (Java Required Files) consists of those components not included in the Oracle WebLogic Server installation and that provide common functionality for Oracle business applications and application frameworks.

Oracle JRF consists of several independently developed libraries and applications that are deployed into a common location. The components that are considered part of Java Required Files include Oracle Application Development Framework shared libraries and ODL logging handlers.

Perform the following steps to apply JRF Template to the Cluster cluster1:

  1. To display Fusion Middleware Control:

    1. Enter the URL, http://host01.example.com:7001/em in your Web browser.
    2. Enter weblogic as User Name and welcome1 as Password and click Login.
    3. FMW Control Login Screen
      Description of this image
  2. On the ohs_domain home page, click on the arrow mark in the Clusters tile.

    Clusters Tile
    Description of this image
  3. Next, click on the cluster1 cluster in the Clusters table.

    Clusters
    Description of this image
  4. In the Change Center, click Lock & Edit.
    Change Center
    Description of this image
  5. Click Apply JRF Template button in the Information section.

    Information region
    Description of this image
  6. A confirmation message gets displayed:

    Confirmation Message
    Description of this image
  7. Click Activate Changes in the Change Center to activate the changes.

    Chnage Center
    Description of this image
  8. Restart the cluster cluster1:

    1. On the cluster1 page, click Shutdown.
      cluster1
      Description of this image
    2. Click Shutdown in the confirmation popup window.
    3. Click Close.
    4. On the cluster1 page, click Startup.
      cluster1
      Description of this image
    5. A processing pop up window appears which shows the progress of cluster start process. Click Close on the Confirmation pop up window.

Want to Learn More?

Credits

  • Lead Curriculum Developers: Tom Eliason, Veerabhadra Rao Putrevu