Before we start installation, there is this little subtlety that we need to address. If you execute the command “ls -al `which sh`” you will see that the /bin.sh is actually pointing to a binary called ‘dash’.
~# ls -al `which sh` lrwxrwxrwx 1 root root 4 Jun 7 20:49 /bin/sh -> dash
We need to re-link the/bin/sh to /bin/bash as the default symbolic link of sh in Ubuntu is pointing to dash. There are numerous posts on the internet talked about this. Won’t worry about why it is so, just interested to install the IBM WAS. Fix the sh sym link issue.
cd /bin
unlink sh
ln -s /bin/bash sh
unlink sh
ln -s /bin/bash sh
Installation Steps:
1) Go to directory containing WAS archive and then untar the IBM Websphere Application Server 7 archive using following commands:-
tar -xzvf was.cd.70011.trial.base.opt.linux.ia32.tar.gz
2) we need to create a response file named “response.txt” for silent installation in directory in the WAS directory in the expanded installation archive.
vi response.txt
Add following entries in response.txt file.
-OPT silentInstallLicenseAcceptance=”true”
-OPT disableOSPrereqChecking=”true”
-OPT installType=”installNew”
-OPT profileType=”standAlone”
-OPT feature=”noFeature”
-OPT PROF_enableAdminSecurity=”true”
-OPT PROF_adminUserName=”wasadmin”
-OPT PROF_adminPassword=”password”
-OPT PROF_profileName=”appsvr01″
-OPT PROF_defaultPorts=”true”
-OPT installLocation=”/home/was_home”
-OPT traceLevel=”INFO”
-OPT allowNonRootSilentInstall=”true”
-OPT disableOSPrereqChecking=”true”
-OPT installType=”installNew”
-OPT profileType=”standAlone”
-OPT feature=”noFeature”
-OPT PROF_enableAdminSecurity=”true”
-OPT PROF_adminUserName=”wasadmin”
-OPT PROF_adminPassword=”password”
-OPT PROF_profileName=”appsvr01″
-OPT PROF_defaultPorts=”true”
-OPT installLocation=”/home/was_home”
-OPT traceLevel=”INFO”
-OPT allowNonRootSilentInstall=”true”
3) It is not necessary to pre-create the installation directory. As long as the installation process has the privilege to create the folder. Otherwise create a directory “was_home” in “/home/”
4) execute the install.sh from “WAS” directory with the following arguments
4) execute the install.sh from “WAS” directory with the following arguments
./install -options response.txt -silent
5) Now You can start the default server ‘server1′ of our profile appsvr01.
cd /home/was_home/profiles/appsvr01/bin
./startServer.sh server1
The application server instance server1 is now started.
Before starting the server make sure no other instance of server is running.
Before starting the server make sure no other instance of server is running.
6) To stop the server
cd /home/was_home/profiles/appsvr01/bin
./stopServer.sh server1
7) To check logs go to “was_home/profiles/appsvr01/logs/server1” location.