Install OHS and config it for WebCenter Spaces and WebCenter Content

By W.ZH Apr 2013

I met one issue of rendering the PDF from UCM by Spaces. Error 404- Not found issue for the PDF rendering in the web center Spaces. So solution is to install the OHS server, put it in front of the Spaces and UCM. Client just need to access the spaces from OHS server. Yannick has an article also show how to do this, but he is based on a cluster environment. Yannick setup steps http://www.yonaweb.be/enable_ucm_check_in_profiles_webcenter_ps3_0 .

My version is a dev environment, so no node manager and cluster setup.First to read the install guide for the fusion middle web tier. Here I suppose you have installed the DB and WLS and Webcenter Portal and Webcenter Content.

How to install the OHS

1.       As we want to link the OHS with the WLS domain, so we need to start the admin server of the Download the installer file (ofm_webtier_linux_11.1.1.6.0_64_disk1_1of1.zip)

2.       Unzip it

3.       Execute runInstaller under folder (DISK1/) with following command (runInstaller)

4.       Select Install & Configure option

5.       For the Dev environment , you can deselect Oracle WebCache, but we need to associtate to the web logic domain.

6.       Auto Configure Ports

7.       Just follow the step to the do it. All setting can use default.

8.       After install the, there will be a webtier is created under the domain, inside EM, so you can go to EM to start/stop the OHS. You also can use the opmnctl to start and stop the OHS, which is under the , <OHS INSTALL HOME>/instances/instance1/bin

opmnctl startproc process-type=OHS

opmnctl startproc ias-component=ohs1

opmnctl startall

opmnctl status

opmnctl stopproc process-type=OHS

opmnctl stopproc ias-component=ohs1

opmnctl restartproc process-type=OHS

opmnctl restartproc ias-component=ohs1

 

How to config OHS for the Spaces and also the WC Content(UCM)

1.     Please read the admin guide of the webcenter portal, “B Oracle HTTP Server Configuration for WebCenter” http://docs.oracle.com/cd/E21764_01/webcenter.1111/e12405/wcadm_app_http.htm

2.     It gives a good example to enable the OHS as the proxy to let you can access from a single entry of OHS to all the wencenter/content related URL.

3.     Open the module config file for the WLS module in the OHS,    <OHS INSTALL HOME>/instances/instance1 /config/OHS/ohs1/mod_wl_ohs.conf

Edit the file to like this:

# NOTE : This is a template to configure mod_weblogic.

 LoadModule weblogic_module   “${ORACLE_HOME}/ohs/modules/mod_wl_ohs.so”

 # This empty block is needed to save mod_wl related configuration from EM to this file when changes are made at the Base Virtual Host Level

<IfModule weblogic_module>

#      WebLogicHost <WEBLOGIC_HOST>

#      WebLogicPort <WEBLOGIC_PORT>

#      Debug ON

#      WLLogFile /tmp/weblogic.log

#      MatchExpression *.jsp

 

      WebLogicHost localhost

      WebLogicPort 7001

</IfModule>

 

# WebCenter Spaces

  <Location /webcenter>

    SetHandler weblogic-handler

    WeblogicHost webcenter.example.com

    WeblogicPort 8888

  </Location>

  <Location /webcenterhelp>

    SetHandler weblogic-handler

    WeblogicHost webcenter.example.com

    WeblogicPort 8888

  </Location>

  <Location /rss>

    SetHandler weblogic-handler

    WeblogicHost webcenter.example.com

    WeblogicPort 8888

  </Location>

  <Location /rest>

    SetHandler weblogic-handler

    WeblogicHost webcenter.example.com

    WeblogicPort 8888

  </Location>

# Discussions

  <Location /owc_discussions>

    SetHandler weblogic-handler

    WeblogicHost discuss.example.com

    WeblogicPort 8890

  </Location>

# SES Search

  <Location /rsscrawl>

    SetHandler weblogic-handler

    WeblogicHost ses.examplet.com

    WeblogicPort 7777

  </Location>

  <Location /sesUserAuth>

    SetHandler weblogic-handler

    WeblogicHost ses.example.com

    WeblogicPort 7777

  </Location>

# Portlets

  <Location /portalTools>

    SetHandler weblogic-handler

    WeblogicHost webcenter.example.com

    WeblogicPort 8889

  </Location>

  <Location /wsrp-tools>

    SetHandler weblogic-handler

    WeblogicHost webcenter.example.com

    WeblogicPort 8889

  </Location>

# Personalization

  <Location /wcps>

    SetHandler weblogic-handler

    WeblogicHost webcenter.example.com

    WeblogicPort 8891

  </Location>

# Activity Graph

  <Location /activitygraph-engines>

    SetHandler weblogic-handler

    WeblogicHost webcenter.example.com

    WeblogicPort 8891

  </Location>

# UCM

#  Web server context root for Oracle Content Server

   <Location /cs>

     SetHandler weblogic-handler

     WeblogicHost ucm.example.com

     WeblogicPort 16200

  </Location>

#  Enables Oracle Content Server authentication

   <Location /adfAuthentication>

     SetHandler weblogic-handler

     WeblogicHost ucm.example.com 

     WeblogicPort 16200           

  </Location>

#  SAML SSO

   <Location /samlacs/acs>>

     SetHandler weblogic-handler

     WeblogicHost ucm.example.com

     WeblogicPort 16200

  </Location>

# BPEL Server

  <Location /workflow>

    SetHandler weblogic-handler

    WeblogicHost soa.example.com

    WeblogicPort 8001

  </Location>

# Virtual Hosts – Pagelet Producer

  <VirtualHost *:7777>

     ServerName pagelet-producer.example.com

       <Location />

         SetHandler weblogic-handler

         WeblogicHost webcenter.example.com

         WeblogicPort 8889

       </Location>

  </VirtualHost>

# Virtual Hosts – Sharepoint

  <VirtualHost *:7777>

     ServerName webtier-spaces.example.com

       <Location />

         SetHandler weblogic-handler

         WeblogicHost webcenter.example.com

         WeblogicPort 8888

       </Location>

       <Location /webcenter>

              Deny from all

       </Location>

       <Location /webcenterhelp>

             Deny from all

       </Location>

       <Location /rest>

             Deny from all

       </Location>

  </VirtualHost>

Delete unneeded part of your servers, Setup the correct host name and port in this config file. , such as for my case, most case is localhost.

Then we can save it, restart the OHS server to pick up config.

For Cluster envorment, setup will be different

After OHS working, we do not need to go to http://hostname:8888/webcenter to access the webcenter, and  to this settings, http://hostname:16200/cs no need either. We can directly go to thse two on the OHS:

http://hostname:7777/webcenter

http://hostname:7777/cs

and this will solve the PDF display issue in the Document exploer of the Spaces to access the UCM content!

A cluster env setup example:  Link

 

Advertisements