You are here:>>Oracle HTTP Server 12c (12.2.1) – Standalone and Collocated Mode Installation and Configuration

Oracle HTTP Server 12c (12.2.1) – Standalone and Collocated Mode Installation and Configuration

Video Tutorial

In this post I will show you how to install and configure Oracle HTTP Server in both Standalone & Collocated modes on Oracle Linux 6.7.

Please watch the video for detailed explanation and demo of installation and configuration steps.

Software Required

  • fmw_12.2.1.0.0_infrastructure.jar (Required only for Collocated Mode)
  • fmw_12.2.1.0.0_ohs_linux64.bin (Required for both Standalone & Collocated Mode)

Prerequisite Linux OS Packages

  • binutils-2.20.51.0.2-5.11.el6-x86_64
  • compat-libcap1-1.10-1-x86_64
  • compat-libstdc++-33-3.2.3-69.el6-x86_64
  • compat-libstdc++-33-3.2.3-69.el6-i686
  • libgcc-4.4.4-13.el6-i686
  • libgcc-4.4.4-13.el6-x86_64
  • libstdc++-4.4.4-13.el6-x86_64
  • libstdc++-4.4.4-13.el6-i686
  • libstdc++-devel-4.4.4-13.el6-x86_64
  • sysstat-9.0.4-11.el6-x86_64
  • gcc-4.4.4-13.el6-x86_64
  • gcc-c++-4.4.4-13.el6-x86_64
  • glibc-2.12-1.7.el6-i686
  • glibc-2.12-1.7.el6-x86_64
  • glibc-devel-2.12-1.7.el6-x86_64
  • glibc-devel-2.12-1.7.el6
  • libaio-0.3.107-10.el6-x86_64
  • libaio-devel-0.3.107-10.el6-x86_64

Standalone OHS Installation

  • Navigate to software directory and execute Oracle HTTP Server BIN file

  • Follow the steps as per the screenshots
  • Installation parameters
    • Standalone OHS Middleware Home : /u01/app/oracle/product/fmw/sohsfmw
    • Installation Type : Standalone HTTP Server (Managed Independently of Weblogic Server)

Standalone OHS Configuration

  • Navigate to Oracle common and execute configuration script

  • Configuration parameters
    • Create New Domain
    • Domain Location : /u01/app/oracle/product/sohsfmw/user_projects/domains/SOHSDomain
    • Domain Template : Oracle HTTP Server (Standalone)
    • System Component : ohs1
    • Component Type : OHS
    • Admin Host : 127.0.0.1
    • Admin Port : 9999
    • Listen Address : Your Host Name
    • Listen Port : 7777
    • SSL Listen Port : 4443
    • Server Name : http://hostname:7777
    • Per Domain Node Manager
  • Refer below screenshot for configuration steps
  • Navigate to Domain Home, Bin and execute below command to start Node Manager

  • Execute below commands to start OHS component. Provide Node Manager password when prompted

  • Access OHS Home page using below URL

Fusion Middleware Infrastructure Installation

  • Oracle Weblogic Server is required for setting up OHS in Collocated Mode
  • Make sure JAVA_HOME is set and JAVA executable is added in the PATH environment variable
  • Navigate to software directory and execute Infrastructure installer

  • Follow the steps as per below screenshots
    • Middleware Home : /u01/app/oracle/product/cohs_fmw

Collocated Mode OHS Installation

  • OHS installation for Collocated mode is exactly same as mentioned above except selecting Collocated Mode & FMW Homes as per the screenshots below

Collocated Mode OHS Configuration

In 12c, it is mandatory to have OPSS schema in database to create a Weblogic Domain. But there is a little trick to create a 12c Weblogic Domain (with EM & JRF) without a Database. Basically we will be creating a Quick Start Domain and extend it to include OHS.
  • Set QS_TEMPLATES environment variable to point to wls_jrf.jar as below

  • Navigate to Oracle Common and execute Quick Start Domain creation as below and follow the screenshots

  • Extend the new Quick Start Domain to include Oracle HTTP Server by executing the normal configuration script from Oracle Common

  • Follow the steps as per the below screenshots
  • Navigate to Domain Home and start Weblogic Admin Server

  • Navigate to Domain Home, Bin and execute below command to start Node Manager

  • Access EM Console using below URL

  • Navigate to Weblogic Domain – Administration – Create/Delete OHS and start OHS component by clicking on the Start button
  • Access OHS Home Page using below URL

Thats It !! You now have Oracle HTTP Server installed and configured in Standalone & Collocated modes.

Hope you found this post helpful. If you have any questions please post in the comments section. Please watch my video for detailed explanation and demo.

2016-12-08T18:20:42+00:00

About the Author:

I am a Senior Cloud Professional specialized in AWS Cloud with 11 years of IT experience. I am enthusiastic about Serverless Architecture. I am an expert in Oracle Fusion Middleware.

9 Comments

  1. guarda il video July 24, 2016 at 9:09 PM - Reply

    I am sure this post has touched all the internet visitors, its really really good
    piece of writing on building up new weblog.

  2. Pokecoins August 5, 2016 at 2:08 PM - Reply

    Wow, awesome blog layout! How long have you been blogging
    for? you make blogging look easy. The overall look of your website
    is fantastic, as well as the content!

  3. lifeline job August 19, 2016 at 12:28 AM - Reply

    Hola! I’ve been reading your blog for a while now and
    finally got the courage to go ahead and give you a shout
    out from Austin Texas! Just wanted to mention keep up the
    good work!

  4. Himanshu Sharma September 29, 2016 at 6:34 PM - Reply

    Hi Pdomala,

    Your blogs are great, I installed and configured Oracle Identity and Access Management, OUD and OHS successfully.

    At one place I stuck and this is the last step, can you help me?

    I am facing an issue while starting OHS component. Log is below:

    [oracle@genx bin]$ ./startComponent.sh ohs1
    Starting system Component ohs1 …

    Initializing WebLogic Scripting Tool (WLST) …

    Welcome to WebLogic Server Administration Scripting Shell

    Type help() for help on available commands

    Reading domain from /home/oracle/Oracle/Middleware/Oracle_OHS/user_projects/domains/OHSDomain

    Please enter Node Manager password:
    Connecting to Node Manager …
    Successfully Connected to Node Manager.
    Starting server ohs1 …
    This Exception occurred at Thu Sep 29 14:27:32 IST 2016.
    weblogic.nodemanager.NMException: Received error message from Node Manager Server: [Processing for OHS server ‘ohs1’ failed due to: [Plugin not found for system component type ‘OHS’, plugin type ‘PROCESS’]. Please check Node Manager log and/or server ‘ohs1’ log for detailed information.]. Please che​​ck Node Manager log for details.
    Error: Error occurred while performing nmStart : Error Starting server ohs1 : Received error message from Node Manager Server: [Processing for OHS server ‘ohs1’ failed due to: [Plugin not found for system component type ‘OHS’, plugin type ‘PROCESS’]. Please check Node Manager log and/or server ‘ohs1’ log for detailed information.]. Please check Node Manager log for details.
    Use dumpStack() to view the full stacktrace :

    Exiting WebLogic Scripting Tool.

    • pdomala October 9, 2016 at 9:19 PM - Reply

      Thanks.
      Your issue looks like the issue with Node Manager Ports. Make sure that NM port is not used by any other process. Try changing the Port in /nodemanager/nodemanager.properties. Let me know how it goes.

  5. Ajay February 6, 2017 at 4:11 PM - Reply

    can you show how to communicate weblogic server with IBM MQ

  6. Ajay February 6, 2017 at 4:12 PM - Reply

    how to configure the weblogic server with IBM MQ

  7. Abhinav February 8, 2017 at 12:59 PM - Reply

    Hi Pdomala,

    i am getting an error while configuring the ohs as below

    Starting server ohs1 …
    This Exception occurred at Tue Feb 07 23:31:18 IST 2017.
    weblogic.nodemanager.NMException: Received error message from Node Manager Server: [Processing for OHS server ‘ohs1’ failed due to: [Plugin not found for system component type ‘OHS’, plugin type ‘PROCESS’]. Please check Node Manager log and/or server ‘ohs1’ log for detailed information.]. Please check Node Manager log for details.
    Error: Error occurred while performing nmStart : Error Starting server ohs1 : Received error message from Node Manager Server: [Processing for OHS server ‘ohs1’ failed due to: [Plugin not found for system component type ‘OHS’, plugin type ‘PROCESS’]. Please check Node Manager log and/or server ‘ohs1’ log for detailed information.]. Please check Node Manager log for details.
    Use dumpStack() to view the full stacktrace :

    the node manager props file is as below:-
    #Node manager properties
    #Tue Feb 07 20:03:14 IST 2017
    DomainsFile=/u01/app/oracle/Middleware/OHS_Home/user_projects/domains/base_domain/nodemanager/nodemanager.domains
    LogLimit=0
    PropertiesVersion=12.2.1
    AuthenticationEnabled=true
    NodeManagerHome=/u01/app/oracle/Middleware/OHS_Home/user_projects/domains/base_domain/nodemanager
    JavaHome=/u01/app/oracle/product/java/jdk1.7.0_80/jre
    LogLevel=INFO
    DomainsFileEnabled=true
    StartScriptName=startWebLogic.sh
    ListenAddress=oel71.deliverycentric.com
    NativeVersionEnabled=true
    ListenPort=7777
    LogToStderr=true
    SecureListener=true
    LogCount=1
    StopScriptEnabled=false
    QuitEnabled=false
    LogAppend=true
    StateCheckInterval=500
    CrashRecoveryEnabled=false
    StartScriptEnabled=true
    LogFile=/u01/app/oracle/Middleware/OHS_Home/user_projects/domains/base_domain/nodemanager/nodemanager.log
    LogFormatter=weblogic.nodemanager.server.LogFormatter
    ListenBacklog=50

  8. chetan February 17, 2017 at 4:01 PM - Reply

    Hi Prasad

    Your blog is well designed. I am new to OHS configuration , however, I was able to configure it with the steps you have provided.
    In my case , I have WLS, SOA, OSB already installed and configured and I had to setup OHS on top of it in collocated mode. I setup the OHS as per your blog and started, but how to configure existing SOA with OHS or OSB with OHS . Do I need to create Virtual hosts for that ? can you provide the detailed steps please?

    Thanks

Leave A Comment