Configure Apache (Oracle HTTP Server) with Stellent Content Server (UCM) – Part II

Yesterday We saw Oracle Content Server (Repository and Core Services for Universal Content Management) installation, We used Apache (Oracle HTTP Server) as Web Server and Oracle as Database.
  We selected configuration to Web Server and database with Content Server Installation so lets try to login into Oracle Content Server.

Use http ://serverName:webPort/server_alias  where
–ServerName (WebServer Hostname) – innowave03.com
–WebPort (Web Server Listen Port) – 7780
–ServerAlias (During CS installation) – idc
On typing this URL I got page not found. I checked and found that CS (Content Server) related files were missing in httpd.conf (Web Server Configuration File).

Looked at Content Server documentation carefully and found this line hidden some where deep in installation document 🙁

Since Apache cannot be configured automatically by the Content Server installer, you need to do it manually

So time to configure Web Server Manually

.
Attempt 1. Configure Web Server (Oracle HTTP Server) with UCM Content Server 

1.
Add following lines at end of httpd.conf (I was using Web Server from Oracle Application Server version 10.1.3.1 )

LoadModule IdcApacheAuth [Webserver_Filters_Path]/IdcApache2Auth.so
IdcUserDB [Master_Instance] “[User_Data_Dir_Path]/userdb.txt”
Alias /[Rel_URL_To_Master] “[Path_To_Master_Webl.]”
<Location /[Rel._URL_To_Master]>
Order allow,deny
Allow from all
DirectoryIndex portal.htm
IdcSecurity [Master_Instance] </Location>

In my case

LoadModule IdcApacheAuth /oracle/apps/ucm/mid/content/103/shared/os/linux/lib/Idc
Apache2Auth.so
   
IdcUserDB idc “/oracle/apps/ucm/mid/content/103/data/users/userdb.txt”
Alias /idc “/oracle/apps/ucm/mid/content/103/weblayout”
<Location /idc>
Order allow,deny
Allow from all
DirectoryIndex portal.htm
IdcSecurity idc
</Location>

2. Bounce Apache like
(I was using Web Server from Oracle Application Server version 10.1.3.1 )

opmnctl stopproc ias-component=HTTP_Server
opmnctl startproc ias-component=HTTP_Server

3. OPMN failed to start HTTP Server  ($OH/opmn/logs/HTTP_Server~1.log) with below error message

Cannot load /oracle/apps/ucm/mid/content/103/shared/os/linux/lib/IdcApache2Auth.so into server: /oracle/apps/ucm/mid/content/103/shared/os/linux/lib/IdcApache2Auth.so: undefined symbol: apr_bucket_type_pipe

This was because Content Server is certified on Apache 2.0 and higher where as HTTP Server shipped with Oracle AS 10.1.3.1 is using Apache 1.3.1.
     
Thanks to  Guide here , HTTP Server in Oracle Application Server 10.1.3 Companion CD is build on Apache 2.0.

.
(I don’t know why I was in favour of using Oracle HTTP Server)

.
Attempt 2. Install Oracle HTTP Server with Apache 2

1. I downloaded Oracle AS 10g R3 Companion CD from Here 

 


and did HTTP Server install in new ORACLE_HOME

 

Added following lines in httpd.conf (In this version httpd.conf is in$OH/ohs/conf)

LoadModule IdcApacheAuth /oracle/apps/ucm/mid/content/103/shared/os/linux/lib/IdcApache2Auth.so

IdcUserDB idc “/oracle/apps/ucm/mid/content/103/data/users/userdb.txt”
Alias /idc “/oracle/apps/ucm/mid/content/103/weblayout”
<Location /idc>
Order allow,deny
Allow from all
DirectoryIndex portal.htm
IdcSecurity idc
</Location>

I was able to start HTTP Server (opmnctl startproc ias-component=HTTP_Server) but on accessing login page http://innowave03.com:7780/idcpage not found.

 error_log in $OH/ohs/logs  dumping   “segmentation fault

[Wed Sep 24 21:44:00 2008] [notice] child pid 5245 exit signal Segmentation fault (11)
[Wed Sep 24 21:44:20 2008] [notice] child pid 5246 exit signal Segmentation fault (11)
[Wed Sep 24 21:44:40 2008] [notice] child pid 5247 exit signal Segmentation fault (11)


 On commenting below two lines in httpd.conf, I could see login page but page not found on clicking Login Lock
IdcUserDB idc “/oracle/apps/ucm/mid/content/103/data/users/userdb.txt”
IdcSecurity idc

.

 .
On searching Metalink, I found this Bug # 7171250 INCORPORATING SUPPORTED FILTER FILES FOR INSTALLING CS WITH ORACLE HTTP SERVER

.

It was time to go back to basic Apache here .

.

Attempt 3. Configure Content Server with Standalone Apache 2.0  (Successful) Configured Apache with Linux (/etc/httpd) to connect to Content Server. Default Apache (under linux) uses port 80, whereas I defined port 7780 during Content Server installation so changed Listen Directive in httpd.conf(/etc/httpd/conf) from 80 to 7780

Added below lines in httpd.conf for Content Server

LoadModule IdcApacheAuth /oracle/apps/ucm/mid/content/103/shared/os/linux/lib/IdcApache2Auth.so

IdcUserDB idc “/oracle/apps/ucm/mid/content/103/data/users/userdb.txt”
Alias /idc “/oracle/apps/ucm/mid/content/103/weblayout”
<Location /idc>
Order allow,deny
Allow from all
DirectoryIndex portal.htm
IdcSecurity idc
</Location>

Bounced Apache
/usr/sbin/httpd -k stop
/usr/sbin/httpd -k start


.
Access Content Server

Access Oracle Content Server using URL  http://webserver_host:webserver_port/server_alias
.

Try UserName/Password as   sysadmin/idc

Start / Stop Oracle Content Server (UCM), Security in Content Server , Configuration of Web Module (Web Content Management, Records Management …) coming soon….

About the Author Masroof Ahmad

Leave a Comment:

13 comments
Add Your Reply