Tuesday, March 12, 2013

Weblogic patching using off line updater



Weblogic  patching  using off line updater  - linux 64 bit

1) copy patch to weblogic cache directory  (/apps/oracle/wls11g/utils/bsu/cache_dir)
           cp *.jar /apps/oracle/wls11g/utils/bsu/cache_dir/
           cp *.xml /apps/oracle/wls11g/utils/bsu/cache_dir/

2) Check the patch status on current system

           cd /apps/oracle/wls11g/utils/bsu/
           sh bsu.sh  -prod_dir=/apps/oracle/wls11g/wlserver_10.3 -patch_download_dir=/apps/oracle/wls11g/utils/bsu/cache_dir/ -status=downloaded -view -verbose

3) Install the patch
             cd /apps/oracle/wls11g/utils/bsu/
             ./bsu.sh -patch_download_dir=/apps/oracle/wls11g/utils/bsu/cache_dir/ -   prod_dir=/apps/oracle/wls11g/wlserver_10.3/ -patchlist=9ZW7 -install -verbose

4)Verify the current patch

cd /apps/oracle/wls11g/utils/bsu/;
sh bsu.sh -prod_dir=/apps/oracle/wls11g/wlserver_10.3 -status=applied -view -verbose


sample script .

killall java
killall -9 java
sleep 1
cd /apps/oracle/wls11g/utils/bsu/

./bsu.sh -patch_download_dir=/apps/oracle/patch/p10076424/  -prod_dir=/apps/oracle/wls11g/wlserver_10.3/ -patchlist=VJPE -install -verbose;

./bsu.sh -patch_download_dir=/apps/oracle/patch/p10166432/  -prod_dir=/apps/oracle/wls11g/wlserver_10.3/ -patchlist=H3QP -install -verbose;

./bsu.sh -patch_download_dir=/apps/oracle/patch/p10276172/  -prod_dir=/apps/oracle/wls11g/wlserver_10.3/ -patchlist=8IWX -install -verbose;

./bsu.sh -patch_download_dir=/apps/oracle/patch/p9324911/  -prod_dir=/apps/oracle/wls11g/wlserver_10.3/ -patchlist=Y3IR -install -verbose;

./bsu.sh -patch_download_dir=/apps/oracle/patch/p9412909/  -prod_dir=/apps/oracle/wls11g/wlserver_10.3/ -patchlist=R4P6 -install -verbose;

Saturday, April 28, 2012

DNS server configuration on REDHAT ENTERPRISE LINUX 6


ADD THE BELOW ENTRY IN TO THE RESPECT FILES
SERVER NAME = server6.linux.com
IP ADDRESS = 192.168.1.222

1)/etc/resolve 
search linux.com
nameserver 192.168.1.222

2)/etc/hosts
192.168.1.222 server6.linux.com server6

3)/etc/sysconfig/network
NETWORKING=yes
HOSTNAME=server6.linux.com

4)check the bind package installations 
yum list bind*
       or
rpm -qa bind*

bind
bind-utils
bind-chroot
bind-libs
bind-dyndb

5)add zone configuration files details in /etc/sysconfig/named
ROOTDIR=/var/named

6)add these lines into /etc/named.conf 

 options {
    listen-on port 53 { 127.0.0.1; 192.168.1.222; };
    listen-on-v6 port 53 { ::1; };
    directory     "/var/named";
    dump-file     "/var/named/data/cache_dump.db";
        statistics-file "/var/named/data/named_stats.txt";
        memstatistics-file "/var/named/data/named_mem_stats.txt";
    allow-query     { localhost; all; };
    recursion yes;

    dnssec-enable yes;
    dnssec-validation yes;
    dnssec-lookaside auto;

    /* Path to ISC DLV key */
    bindkeys-file "/etc/named.iscdlv.key";
};

logging {
        channel default_debug {
                file "data/named.run";
                severity dynamic;
        };
};

zone "." IN {
    type hint;
    file "named.ca";
};

zone "server6.linux.com" {
    type master;
    file "forward.zone";
    };

zone "1.168.192.in-addr.arpa" IN {
    type master;
    file "reverse.zone";
};
//include "/etc/named.rfc1912.zones";

7) forward zone configuraion file /var/named/forward.zone 

$TTL 1D
@       IN SOA  server6.linux.com. root.server6.linux.com. (
                                        0       ; serial
                                        1D      ; refresh
                                        1H      ; retry
                                        1W      ; expire
                                        3H )    ; minimum
                        IN      NS      server6.linux.com.
server6.linux.com.      IN      A       192.168.1.222
host1                   IN      CNAME   www1.linux.com.

8) reverse zone configuration file /var/named/reverse.zone 

$TTL 1D
@       IN SOA  server6.linux.com.      root.server6.linux.com.  (
                                        0       ; serial
                                        1D      ; refresh
                                        1H      ; retry
                                        1W      ; expire
                                        3H )    ; minimum
        IN      NS      server6.linux.com.
222     IN      PTR     server6.linux.com.

9) named configuration file and zone configuration files syntax checking 

#named-checkconfig named.conf

#named-checkzone server6.linux.com forward.zone 


zone server6.linux.com/IN: loaded serial 0
OK

#named-checkzone 192.168.1.222 reverse.zone 


zone 192.168.1.222/IN: loaded serial 0
OK

10) start the named service 

#service named start
#chkconfig named on

11) Check the dns name 

#nslookup server6.linux.com

Server:         192.168.1.222
Address:        192.168.1.222#53

Name:   server6.linux.com
Address: 192.168.1.222

# nslookup 192.168.1.222

Server:         192.168.1.222
Address:        192.168.1.222#53

222.1.168.192.in-addr.arpa      name = server6.linux.com.

Local yum repository configuration on REDHAT ENTERPRISE LINUX 6


configure you local yum repository on REDHAT ENTERPRISE LINUX 6

1)mount REDHAT EL6 DVD IN TO /mnt

#mount /dev/cdrw /mnt

2) copy rpms from Packages directory into /opt/repo

#cd /mnt/Packages
#mkdir -p /opt/repo
#cp *.* /opt/repo

3)verify reporcrete utility  rpm installation 

#rpm -qa repocreate*

if not installed then install it with its dependancies

#rpm -ivh  createrepo-0.9.8-4.el6.noarch.rpm deltarpm* python-deltarpm*


4)create repository under /opt/repo

#createrepo `pwd`

5) add your repo configuration details in  yum configuration file /etc/yum.conf 

add the below line under this  /etc/yum.conf

"# PUT YOUR REPOS HERE OR IN separate files named file.repo
# in /etc/yum.repos.d"

[base-local]
name=RHEL6 $releasever - $basearch
failovermethod=priority
baseurl=file:/opt/repo
enabled=1
gpgcheck=0

6)check your current local repository 

#yum repolist
Loaded plugins: product-id, refresh-packagekit, subscription-manager
Updating Red Hat repositories.
repo id                        repo name                                  status
base-local                     RHEL6 6Server - x86_64                     3,544
repolist: 3,544

Friday, March 23, 2012

Tomcat 6.0.35 Installation on RedHat Enterprise Linux 6

1) Download Tomcat server from apache repository

2) Untar the compressed zip file in to installation location.

3)set java home directory and catalina home directory.

Thursday, December 22, 2011

SSL Configuration for Apache 2.2.15-5 in Redhat EL6 64 bit


Stage 1:

1) Create a self signed certificate by using openssl command

#mkdir -p /etc/httpd/conf/ssl

#cd /etc/httpd/conf/ssl

#openssl req -new -x509 -days 365 -sha1 -newkey rsa:1024 -nodes -keyout server.key -out server.crt  -subj '/O=Company/OU=Department/CN=vhost'

2) create seprate directory for ssl access

#mkdir /www/ssl

3) create index.html file in side /www/ssl folder with the below contend .

<html>
<body>
<h3> i am ssl </h3>
</body>
</html>


Stage 2 : SSL configuration on apache httpd.conf file

1) Add the below line to Load the mod_ssl module for ssl configuration in httpd.conf file .

LoadModule ssl_module modules/mod_ssl.so

tip : rename the default configuration file other wise httpd take the default ssl configuration file .
#mv /etc/httpd/conf.d/ssl.conf  /etc/httpd/conf.d/ssl_bk

2) copy the mod_ssl.so file in to the modules directory.

#cp mod_ssl.so /etc/httpd/modules

3) Add the below line to Enable the ssl port "443" in apache configuration file httpd.conf

Listen 443

4)add the virtualhost entry to enable the virtual host for ssl communication in httpd.conf

 NameVirtualHost *:443

<VirtualHost *:443>

    DocumentRoot "/www/ssl"

    SSLEngine on
    SSLOptions +StrictRequire

    <Directory />
        SSLRequireSSL
    </Directory>

    SSLCertificateFile    /etc/httpd/conf/ssl/server.crt
    SSLCertificateKeyFile /etc/httpd/conf/ssl/server.key

    SSLVerifyClient none
    SSLProxyEngine off

</VirtualHost>

5) check the virtual configuration in httpd.conf file syntax

#service httpd configtest

6)start the httpd service


#service httpd start

7)check the ssl port "443" enabled in system

# netstat -vatn |grep 443

8) Access the ssl url in the browse

https://localhost -> you will get the ssl page .

Wednesday, December 21, 2011

Apache 2.2.15-5 virtual host configuration on linux machine

Step 1 : create the following  directories
 
 mkdir -p /www/docs
 mkdir -p /www/docs/site
 mkdir -p /www/docs/vhost

Step 2: add the virtual host name into the host file 

vi /etc/hosts
127.0.0.1 localhost     localdomain
127.0.0.1 vhost     vdomain


Step 3: Enable the port listening  /etc/httpd/conf/httpd.conf file


Listen 80 // default server port
Listen 8080 //another port




Step 4: Enable the Name based virtual port

NameVirtualHost *:80      // Default port for  vitual host
NameVirtualHost *:8080   //  Additional port for virtual Host


Step 5: Virtual host Directory Entry

# Default port custom document path
<VirtualHost *:80>
    ServerName virtualhost
    DocumentRoot /www/docs
    <Directory /www/docs>
    Options Indexes FollowSymLinks
    </Directory>
</VirtualHost>
#Additional port with custom Document Path
<VirtualHost *:8080>
    DocumentRoot /www/docs/site
    ServerName virtualhost
    <Directory /www/docs/site>
    Options Indexes FollowSymLinks
   </Directory>
</VirtualHost>
#Additional hostname with custom document path
<VirtualHost *:80>
    ServerName vhost
    DocumentRoot /www/docs/vhost
</VirtualHost>

Step 6: configuration verification

#service httpd configtest

[root@localhost vhost]# service httpd configtest
Syntax OK

Step 7 : start the httpd server

#service httpd start

Step 8: browse the virtual host

default port
#links http://localhost 
additional port
#links http://localhost:8080
additional virtual name
#links http://vhost


Step 9 : check the port listinng 

#netstat -vatn












Wednesday, August 31, 2011

apache server weblogic plug in configuration


LoadModule weblogic_module modules/mod_wl_22.so



<IfModule mod_weblogic.c>
    WebLogicCluster 127.0.0.1:7002,127.0.0.1:7003
    MatchExpression /*
</IfModule>
<Location /weblogic>
    SetHandler weblogic-handler
    WebLogicCluster 127.0.0.1:7002,127.0.0.1:7003
    PathTrim /weblogic
</Location>