Powered By Blogger

Wednesday, July 28, 2010

Requesting VeriSign Cert on Apache

Go to APACHE/bin Home directory

cd $APACHIE_HOME\bin

$ openssl genrsa -out server.key 1024

$ OpenSSL req -new -key server.key -out server.csr -config openssl_default.cnf

Enter values (as per the requirement)

Send server.csr contens to VerSign for Signed cert.

Tuesday, July 13, 2010

Setup SCP between hosts

1) Make sure id is created/available on both hosts (For following example Server names are "Ahost" and "Bhost" and the user is "test").
2) Login to Server Ahost and execute following commands with the user test if .ssh directory is not available
--> ssh-keygen -t rsa
Select default values
--> cd .ssh
scp id_rsa.pub Bhost:~test/.ssh/authorized_keys
scp id_rsa.pub Ahost:/apps/sasavr/.ssh/authorized_keys
(Note: if .ssh directory is not available on destination servers, create this directory on Ahost and Bhost)

Login to Ahost and Bhost with test user
--> chmod 700 .ssh
--> cd .ssh
--> chmod 600 authorized_keys

After executing all commands, we can scp from Ahost to Bhost without password for test user.

Friday, July 9, 2010

Remove a weblogic from windows service

Paste following contents in new file, change variables according to the domain and execute it

@echo off
SETLOCAL

set WL_HOME=C:\bea\weblogic91
set PROD_NAME=BEA Products
set BAR_WL_HOME=C_bea_weblogic91
set SERVER_NAME=SERVER_NAME
set DOMAIN_NAME=DOMAIN_NAME


rem *** Uninstall the service
"%WL_HOME%\server\bin\beasvc" -remove -svcname:"beasvc %DOMAIN_NAME%_%SERVER_NAME%"

ENDLOCAL
Welcome to the UNIX world