Webcenter Sites Installation Linux

Webcenter sites installation on red hat linux (fedora os)

This blog would help one to setup Webcenter Sites (formerly a Fatwire Product) on Linux Operating system such as Fedora 17 (Red Hat Linux), running Oracle 11g Database and Tomcat as its App server.

Softwares required

The following Softwares are to be downloaded

apache-tomcat-6.0.35.zip (from http://projects.apache.org/projects/tomcat.html)


ofm_sites_generic_11. (from http://www.oracle.com/technetwork/middleware/webcenter/sites/downloads/index.html)

SQL Developer (Optional from http://www.oracle.com/technetwork/developer-tools/sql-developer/downloads/index.html)

Assumption : Fedora 17 (http://fedoraproject.org/get-fedora) is already installed and Oracle 11g Database (http://www.oracle.com/technetwork/database/enterprise-edition/downloads/index.html) is running with orcl service under port 1521 (Installation of database itself is out of scope in the current blog)

Note : the paths are relative to my system and my installation it might slightly differ on different systems , those marked in bold fonts are important commands to be run under linux for various operations such as startup or configurations,

setting up database

1. Start Database

[[email protected] ~]$ 
cd /home/james/app/james/product/11.2.0/dbhome_1/bin
[[email protected] bin]$ 
export ORACLE_HOME=/home/james/app/james/product/11.2.0/dbhome_1
[[email protected] bin]$ 
export ORACLE_SID=orcl
[[email protected] bin]$ ./sqlplus /nolog
SQL*Plus: Release Production on Wed Aug 1 18:49:32 2012
Copyright (c) 1982, 2011, Oracle.  All rights reserved.
SQL> conn /as sysdba
Connected to an idle instance.
SQL> startup
ORACLE instance started.
Total System Global Area 2471931904 bytes
Fixed Size		    2230872 bytes
Variable Size		  587204008 bytes
Database Buffers	 1862270976 bytes
Redo Buffers		   20226048 bytes
Database mounted.
Database opened.
SQL> quit
Disconnected from Oracle Database 11g Release - 64bit 
[[email protected] bin]$ ./lsnrctl start
LSNRCTL for Linux: Version - Production on 01-AUG-2012 
Copyright (c) 1991, 2011, Oracle.  All rights reserved.
Starting /home/james/app/james/product/11.2.0/dbhome_1/bin/tnslsnr:

2. Open SQL Worksheet in SQL Developer connect as SYS user

login to database as sys create user csuser
GRANT CREATE session, CREATE table, CREATE view, 
CREATE synonym, CREATE Trigger, Create Sequence TO csuser ;

Setting up tomcat

1. Unzip Tomcat. eg /home/james/Oracle/apache-tomcat-6.0.35/

2. Edit /home/james/Oracle/apache-tomcat-6.0.35/conf/server.xml file

3. Add the following lines above end of host tag </Host>

<Context path="/cs" docBase="cs" reloadable="true" 
<Resource name="csDataSource" auth="Container" 
type="javax.sql.DataSource" maxActive="100" 
maxIdle="30" username="csuser" password="welcome1" 

4. Copy paste ojdbc6.jar under lib folder of Tomcat that is.


5. Edit catalina.sh file under bin of tomcat directory


add the following lines above resolve links block. (you can find these in the Catalina.sh file)

 # lines taken from Holy Book by James Smith :-)  
export JUMPHOME="/home/james/Oracle/webcenter/sites/wem"
export CATALINA_HOME="/home/james/Oracle/apache-tomcat-6.0.35"
export JAVA_HOME="/home/james/Oracle/jdk1.6.0_30"
export CLASSPATH="/home/james/Oracle/jdk1.6.0_30/lib/tools.jar:
export JAVA_OPTS="-Xms1024M -Xmx1024M 
-XX:PermSize=256M -XX:MaxPermSize=256M 
export PATH="/home/james/Oracle/jdk1.6.0_30/lib/tools.jar:
export CATALINA_PID="$CATALINA_HOME"/tomcat.pid
# lines taken from Holy Book by James Smith

Important comment this below line in the catalina.sh file using # before classpath

# CLASSPATH= must be commented

start and stop tomcat – test configurations

tomcat can be started and stopped with following commands

[[email protected] bin]$ ./shutdown.sh -force
Using CATALINA_BASE:   /home/james/Oracle/apache-tomcat-6.0.35
Using CATALINA_HOME:   /home/james/Oracle/apache-tomcat-6.0.35
Using CATALINA_TMPDIR: /home/james/Oracle/apache-tomcat-6.0.35/temp
Using JRE_HOME:        /home/james/Oracle/jdk1.6.0_30
Using CLASSPATH:       /home/james/Oracle/jdk1.6.0_30/lib/tools.jar:
Killing Tomcat with the PID: 1913
[[email protected] bin]$ ./startup.sh
Using CATALINA_BASE:   /home/james/Oracle/apache-tomcat-6.0.35
Using CATALINA_HOME:   /home/james/Oracle/apache-tomcat-6.0.35
Using CATALINA_TMPDIR: /home/james/Oracle/apache-tomcat-6.0.35/temp
Using JRE_HOME:        /home/james/Oracle/jdk1.6.0_30
Using CLASSPATH:       /home/james/Oracle/jdk1.6.0_30/lib/tools.jar:

Open the Browser and try http://localhost:8080/ you should be able to see the homepage

Installation of Webcenter Sites

Unzip ofm_sites_generic_11. , it creates Webcenter sites directory, go to

Edit csInstall.sh add the following line

Your Java Home Directory might differ please change accordingly,

export JAVA_HOME="/home/james/Oracle/jdk1.6.0_30"
sh ./Sun/common/jvcheck.sh csInstall $*

Launch the installer

ensure that tomcat directory has read/write permissions

chmod 777 *

Next change to installation directory

and launch csInstall.sh and follow these screens

In our case we have configured for Oracle Database 11gR1

Click on Installation Button , Test Button if needed.

Post Installation Check

Use SQL Developer login with username as csuser/welcome1 , service name as orcl and port as 1521 (this might change in your installation)

check if new tables have been created.

Start Tomcat and Acccess the following URL http://localhost:8080/cas/login

login as admin / welcome1


Select AdminSite

AVI Sports site that was setup during Installation

Click on View -> Preview in New Window you can see the sport site as shown

Oracle Enterprise Linux Disable Firewall

If you wish to access the URLs of your Machine from another Machine or VM,  then you may need to disable the firewall settings as shown below. if not you will not be able to access URLs such as http://ipaddr:8080/cs/wem/fatwire/wem/Welcome

[[email protected] wc_domain]$ su root
Password: ******
[[email protected] wc_domain]# service iptables save
iptables: Saving firewall rules to /etc/sysconfig/iptables:[ OK ]
[[email protected] wc_domain]# service iptables stop
iptables: Flushing firewall rules: [ OK ]
iptables: Setting chains to policy ACCEPT: filter [ OK ]
iptables: Unloading modules: [ OK ]

What next

Changing look and feel of a Website as an User >> , We will now convert the sample Avi Sports Site into a Health care Portal without writing a single line of code.

Author Profile

About Author

Leave a Reply

Your email address will not be published. Required fields are marked *