Oracle by Example brandingInstalling and Configuring Oracle HTTP Server

section 0Before You Begin

This tutorial shows you how to install and configure Oracle HTTP Server and WebGate 12c. It also shows you how to protect web pages with Oracle Access Management. This tutorial takes approximately 15 minutes to complete.

This is the sixth tutorial in the series Getting Started with Oracle Access Management 12c. Read them sequentially.

Background

Most organizations use Oracle HTTP Server as a front end to access web applications.

What Do You Need?

  • An environment with:
    • At least 16 GB of physical memory
    • Oracle Enterprise Linux 6.6 or later with access to the Internet
    •  oracle credentials
  • A basic understanding of Linux

section 1Download the Oracle HTTP Server 12c Software

In this section, you download all the relevant software required for Oracle HTTP Server (OHS) 12c. In this release, WebGate software is included in the Oracle HTTP Server installation.

  1. In a browser, go to the Oracle Technology Network download page for Web Tier 12cR2 (12.2.1.3.0): Accept the license agreement and download the Oracle Web Tier 12cR3 (12.2.1.3.0) software, highlighted in the illustration (fmw_12.2.1.3.0_ohs_linux64_Disk1_1of1.zip):
    Oracle Web Tier Downloads Page
    Description
  2. Move the file to /stage and unzip it.

section 2Install Oracle HTTP Server 12c

  1. Launch a terminal window as oracle and enter the following command to install OHS:
    cd /stage
    chmod +x fmw_12.2.1.3.0_ohs_linux64.bin
    ./fmw_12.2.1.3.0_ohs_linux64.bin
  2. Follow the table below to guide you through the installation screens:

    Step Window Choices or Values
    1. Welcome Click Next
    2. Auto Updates Click Next
    3. Installation Location Oracle Home: /u01/app/oracle/product/middleware/
    4. Installation Type Collocated HTTP Server (Managed through WebLogic Server)
    5, Prerequisite Checks Click Next
    6. JDK Selection JDK Home: /u01/app/oracle/product/jdk
    7. Prerequisite Checks Click Next
    8. Installation Summary Click Install.

    The installation screen will appear*
    9. Installation Complete Click Finish

  3. * Note: The Updating Inventory section of the installer may take a long time to complete.


section 3Configure HTTP Server

  1. Launch a terminal window as oracle and enter the following command to stop the WebLogic Admin Server:
    cd /u01/app/oracle/admin/domains/oam_domain/bin
    ./stopWebLogic.sh
  2. Run the following command to launch the Configuration Wizard:
    cd /u01/app/oracle/product/middleware/oracle_common/common/bin
    ./config.sh
  3. Follow the table below to guide you through the configuration screens:

    Step Window Choices or Values
    1. Create Domain Select Update an existing domain
    Domain Location: /u01/app/oracle/admin/domains/oam_domain
    2. Templates Oracle HTTP Server (Collocated)
    3. Database Configuration Type Get RCU Configuration
    Click Next
    4. Component Datasources Click Next
    5, JDBC Component Schema Test Click Next
    6. Advanced Configuration System Components
    7. System Components Click Add
    System Component: ohs1
    8. OHS Server Click Next
    9. Machine Click Next
    10. Assign System Components to Machines Select ohs1 and oam_machine and click the arrow to move ohs1 under oam_machine
    11. Configuration Summary Click Update
    12. Configuration Progress Click Next
    13. End of Configuration Click Finish


section 4Start the Servers

  1. Launch a terminal window as oracle and run the following command to start the WebLogic AdminServer. Enter weblogic/Welcome1 as the username and password when prompted:
    cd /u01/app/oracle/admin/domains/oam_domain/bin
    ./startWebLogic.sh
  2. In another terminal window run the following command to stop and start Node Manager:
    cd /u01/app/oracle/admin/domains/oam_domain/bin
    ./stopNodeManager.sh
    export LOG_DIR=/u01/app/oracle/admin/domains/oam_domain/nodemanager/logs
    cd /u01/app/oracle/admin/domains/oam_domain/bin
    nohup ./startNodeManager.sh > $LOG_DIR/nm.out&
  3. In the same terminal window run the following command to start Oracle HTTP Server. Enter Welcome1 as the password when prompted:
    cd /u01/app/oracle/admin/domains/oam_domain/bin
    ./startComponent.sh ohs1
    You should see the following to show OHS successfully started:
    Successfully Connected to Node Manager.
    Starting server ohs1 ...
    Successfully started server ohs1 ...
    Successfully disconnected from Node Manager.
    Exiting WebLogic Scripting Tool.
    Done
  4. Launch a browser and check the OHS is accessible by accessing the URL http://oam.example.com:7777.

 



next stepNext Tutorial

Creating and Configuring a WebGate