Linux menu

Thursday, September 18, 2014

Installing Oracle WebLogic Server 12c and Oracle HTTP Server Part II

In previous part we’ve covered installation of Oracle Weblogic Server 12c Installing Oracle WebLogic Server 12c and Oracle HTTP Server Part I. In this, second part we will continue with installation of an Oracle HTTP Server 12c.
Oracle HTTP Server is the web server component for Oracle Fusion Middleware. It provides a listener for Oracle WebLogic Server and the framework for hosting static pages, dynamic pages, and applications over the Web.
In this demo we will install an Oracle HTTP Server in a Standalone Domain.
WLS12c_OHS_infra_part2
Prerequisites for this tutorial:
  • a virtual Linux server has been started and configured
  • hostname, IP address and /etc/hosts entries example:
    • hostname: ohs12c-node1.zion.local
    • IP Address: 192.168.2.116
  • OHS installation package has been uploaded on OHS server in /tmp dir
    • ofm_ohs_linux_12.1.2.0.0_64_disk1_1of1.zip (Latest version here)

1. Installing OHS software and creating OHS domain

  • Connect to the OHS server (using putty), make sure Xming is running. 
  • unzip OHS installation package and run the installer:
  • install patches:
2014-03-22_000109
  • create new OHS domain
2. Starting OHS server instance ohs1
  • start node manager
  • start Oracle HTTP Server Instance: ohs1
Hint: You can avoid having to enter your Node Manager password every time you launch the server with startComponent.sh by starting it with the storeUserConfig option for the first time. Do the following: At the prompt, enter the following command:
$DOMAIN_HOME/bin/startComponent.sh componentName storeUserConfig
The system will prompt for your Node Manager password.
  • stop Oracle HTTP Server Instance: ohs1
  •  start Oracle HTTP Server Instance: ohs1 storeUserConfig
  •  Open Oracle HTTP Server 12c welcome page: http://<server_IP>:7777
2014-03-22_000090
At this moment we have OHS server up and running. Now we will configure it to redirect our requests to a WebLogic Server 12c domain which is running on wls12-node1 host.

 2. Routing requests to managed servers in a WebLogic Server domain

  •  Configuring the WebLogic Proxy Plug-In Manually
We configure the WebLogic Proxy Plug-In manually by specifying directives in the mod_wl_ohs.conf file. Edit mod_wl_ohs.conf
  •  add the following lines to the file. Save changes and restart ohs1 instance
 More configuration examples could be found here: Configuring the WebLogic Proxy Plug-In Manually
 
  •  Restart ohs1 instance and test routing requests
  •  In our example we would test the following URLs:
    • http://192.168.2.116:7777/console (Admin Console on wsl12c-node1)
    • http://192.168.2.116:7777/Hello (sample appl. on wls12c-node1)
    • https://192.168.2.116:4443/Hello (over SSL)
  • Next to that we have the following URLs available (over SSL demo certificates):
    • https://192.168.2.116:4443
    • https://192.168.2.115:7004/Hello
    • https://192.168.2.115:7002/console
We have just completed basic installation of Oracle WebLogic Server in configuration with Oracle HTTP Server 12c.

No comments: