installing weblogic 12c plugins for apache 2.4.x with cluster configuration

Edit your hosts file;

[root@oracle-linux WLS-http-plugin]# more /etc/hosts
127.0.0.1   localhost localhost.localdomain localhost4 localhost4.localdomain4 oracle-linux cluster.test.wls
::1         localhost localhost.localdomain localhost6 localhost6.localdomain6
192.168.122.189	cluster.test.wls

Install apache web server;

[root@oracle-linux ]# yum install httpd
[root@oracle-linux ]# httpd -v
Server version: Apache/2.4.6 (Red Hat)
Server built:   Jul 23 2014 04:34:53

Download Oracle WebLogic Web Server Plug-Ins 12c from Oracle website : http://www.oracle.com/technetwork/middleware/webtier/downloads/index-jsp-156711.html
Extract the downloaded archive and find (correct file according to your architecture) mod_wl_24.so and copy into /etc/httpd/modules/ folder.

Create weblogic config file for apache;

more /etc/httpd/conf.d/httpd-weblogic.conf
LoadModule weblogic_module /etc/httpd/modules/mod_wl_24.so

  WebLogicCluster cluster.test.wls:7003,cluster.test.wls:7005
  Debug ON
 # WLLogFile             /home/wls/httpd-logs/WL.log
 # WLTempDir             /tmp/
  DebugConfigInfo       On
  KeepAliveEnabled ON
  KeepAliveSecs  15



  SetHandler weblogic-handler
  WebLogicCluster cluster.test.wls:7001


#PlanExampleWeb is a cluster example application, which can be downloaded from Oracle website.

  SetHandler weblogic-handler
  WebLogicCluster cluster.test.wls:7003,cluster.test.wls:7005

Check your apache configuration with apachectl;

[root@oracle-linux ]# apachectl configtest
[Fri Oct 03 17:27:30.221327 2014] [weblogic:warn] [pid 2593] The Debug directive is ignored.  The web server log level is used instead.
Syntax OK

If everything is fine, start your httpd and connect to your weblogic console without port definition;

http://cluster.test.wls/console/login/LoginForm.jsp

Weblogic 12.1.3 silent mode installation

First of all update your linux distribution to latest version, and create user/group which is required for installation.

[root@oracle-linux ~]# yum update
[root@oracle-linux ~]# groupadd wls
[root@oracle-linux ~]# useradd -g wls wls
[root@oracle-linux ~]# passwd wls
[root@oracle-linux ~]# su - wls
-bash-4.2$ umask 027

Download Weblogic installation file from Oracle website : http://www.oracle.com/technetwork/middleware/weblogic/downloads/wls-main-097127.html
Download jdk from Oracle website : http://www.oracle.com/technetwork/java/javase/downloads/index.html

Prepare oraInst.loc;

-bash-4.2$ more /etc/oraInst.loc 
inventory_loc=/home/wls/oraInventory/
inst_group=wls

Prepare Response File;

-bash-4.2$ more response.file.rsp 
[ENGINE]
#DO NOT CHANGE THIS.
Response File Version=1.0.0.0.0
[GENERIC]
#The oracle home location. This can be an existing Oracle Home or a new Oracle Home
ORACLE_HOME=/home/wls/12.1.3.0
#Set this variable value to the Installation Type selected. e.g. WebLogic Server, Coherence, Complete with Examples.
INSTALL_TYPE=WebLogic Server
#Provide the My Oracle Support Username. If you wish to ignore Oracle Configuration Manager configuration provide empty string for user name.
MYORACLESUPPORT_USERNAME=
#Provide the My Oracle Support Password
MYORACLESUPPORT_PASSWORD=
#Set this to true if you wish to decline the security updates. Setting this to true and providing empty string for My Oracle Support username will ignore the Oracle Configuration Manager configuration
DECLINE_SECURITY_UPDATES=true
#Set this to true if My Oracle Support Password is specified
SECURITY_UPDATES_VIA_MYORACLESUPPORT=false
#Provide the Proxy Host
PROXY_HOST=
#Provide the Proxy Port
PROXY_PORT=
#Provide the Proxy Username
PROXY_USER=
#Provide the Proxy Password
PROXY_PWD=
#Type String (URL format) Indicates the OCM Repeater URL which should be of the format [scheme[Http/Https]]://[repeater host]:[repeater port]
COLLECTOR_SUPPORTHUB_URL=

Check wls user settings and edit .bash_profile;

-bash-4.2$ id
uid=1001(wls) gid=1001(wls) groups=1001(wls) context=unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1023

-bash-4.2$ more .bash_profile 
export WL_HOME=/home/wls/12.1.3.0/wlserver/
export CONFIG_JVM_ARGS="-Djava.security.egd=file:/dev/./urandom"

Fix the file paths according to your system and Install Weblogic;

/usr/java/jdk1.8.0_20/bin/java -jar -d64 /home/wls/fmw_12.1.3.0.0_wls.jar -silent -invPtrLoc /etc/oraInst.loc -responseFile /home/wls/response.file.rsp

After successful installation create domain, following steps below using WLST;

-bash-4.2$ pwd
/home/wls/12.1.3.0/wlserver/common/bin
-bash-4.2$ ./commEnv.sh 
-bash-4.2$ ./wlst.sh 
Java HotSpot(TM) 64-Bit Server VM warning: ignoring option MaxPermSize=256m; support was removed in 8.0

Initializing WebLogic Scripting Tool (WLST) ...

Welcome to WebLogic Server Administration Scripting Shell

Type help() for help on available commands

wls:/offline> readTemplate('/home/wls/12.1.3.0/wlserver/common/templates/wls/wls.jar')
wls:/offline/base_domain>cd('Servers/AdminServer')
wls:/offline/base_domain/Server/AdminServer>set('ListenAddress','')
wls:/offline/base_domain/Server/AdminServer>set('ListenPort', 7001)
wls:/offline/base_domain/Server/AdminServer>create('AdminServer','SSL')
Proxy for AdminServer: Name=AdminServer, Type=SSL
wls:/offline/base_domain/Server/AdminServer>cd('SSL/AdminServer')
wls:/offline/base_domain/Server/AdminServer/SSL/AdminServer>set('Enabled', 'True')
wls:/offline/base_domain/Server/AdminServer/SSL/AdminServer>set('ListenPort', 7002)
wls:/offline/base_domain/Server/AdminServer/SSL/AdminServer>cd('/')
wls:/offline/base_domain>cd('Security/base_domain/User/weblogic')
wls:/offline/base_domain/Security/base_domain/User/weblogic>cmo.setPassword('weblogic1')
wls:/offline/base_domain/Security/base_domain/User/weblogic>setOption('OverwriteDomain', 'true')
wls:/offline/base_domain/Security/base_domain/User/weblogic>writeDomain('/home/wls/12.1.3.0/user_projects/domains/test')

closeTemplate()
exit()

After creating domain, you will have startup scripts ready. Run the scripts and follow the screen output;

 
cd ~/12.1.3.0/user_projects/domains/test/bin/
./startWebLogic.sh & 
./startNodeManager.sh &

Use your web browser to reach the admin console, after startup;
http://192.168.122.189:7001/console/

Enjoy!