Installing WebSphere v7.0 under Ubuntu 8.04

Filed under: WebSphere — lars @ 08:20:19 pm

Below are the steps I have used to install WebSphere Application Server (WAS) for Developers v7.0 on Ubunu 8.04 LTS Server.  This standalone version of WebSphere is a free download for development purposes.  I chose Ubuntu 8.04 LTS because it's the long-term-support version so it's repositories should be maintained for longer than Ubuntu 9.04's.  I chose the server version of Ubuntu as I didn't want to waste resources running a GUI/Desktop.

Here are the steps, assuming you've already downloaded the WebSphere installer archive from the link above, and it is sitting on your install of Ubuntu 8.04 Server.

  1. Override Ubuntu's default shell of 'dash' back to 'bash' - which the WAS v7.0 installation scripts need:
    $ sudo dpkg-reconfigure dash
    To check that this was done successfully, make sure /bin/sh is a symbolic link to 'bash' and not 'dash':

    $ ls -al /bin/sh
    lrwxrwxrwx 1 root root 4 2009-03-06 18:48 /bin/sh -> bash
  2. Create a responsefile.  This is configuration file that tells the WebSphere installer what options you want for the install.  Having this means you can run your install without using a graphical wizard (in fact, you don't even need to have X-Windows installed).  Here's the one I used:
    -OPT silentInstallLicenseAcceptance="true"
    -OPT allowNonRootSilentInstall="true"
    -OPT disableOSPrereqChecking="true"
    -OPT disableNonBlockingPrereqChecking="true"
    -OPT checkFilePermissions="true"
    -OPT installType="installNew"
    -OPT profileType="standAlone"
    -OPT feature="noFeature"
    -OPT PROF_enableAdminSecurity="false"
    -OPT installLocation="/app/websphere/was7"
    -OPT traceFormat=ALL
    -OPT traceLevel=INFO
    -OPT PROF_profilePath="/app/websphere/was7/profiles/AppSrv01"
    -OPT PROF_profileName="AppSrv01"
    -OPT PROF_isDefault="true"
    -OPT PROF_hostName="websphere"
    -OPT PROF_nodeName="node1"
    -OPT PROF_cellName="cell1"
    -OPT PROF_serverName="server1"
    -OPT PROF_isDeveloperServer="true"
    -OPT PROF_omitAction="samplesInstallAndConfig"
    -OPT PROF_defaultPorts="true"
    -OPT PROF_enableService="false"
  3. Create the directory /app/websphere.  Set the ownership of this directory to the linux user that websphere will be running as:
    $ mkdir /app
    $ mkdir /app/websphere
    $ chown wasuser /app/websphere
  4. Update/Install some required Ubuntu packages:
    $ sudo aptitude update
    $ sudo aptitude install apache2 bc xauth alien
  5. Finally, unpack and run the WebSphere install.  The below assumes you've put your responsefile from Step 3 in the folder /home/wasuser:
    $ tar -xvvzf was.cd.7000.wasdev.nocharge.linux.ia32.tar.gz
    $ WAS/install -options /home/wasuser/responsefile -silent
  6. If you wish, you can watch the logs to make sure everything runs smoothly:
    $ cd waslogs
    $ tail -F log.txt
    Note - log output may also appear in /app/websphere/was7/logs if there are problems early in the installation.

  7. That's it!  The whole process should only take a few minutes.

Comments

  • Federico Vela
    great stuff! helped a lot! thanks!!!!

    Comment by Federico Vela [Visitor] — 12/07/09 @ 17:03

Leave a comment

Allowed XHTML tags: <p, ul, ol, li, dl, dt, dd, address, blockquote, ins, del, span, bdo, br, em, strong, dfn, code, samp, kdb, var, cite, abbr, acronym, q, sub, sup, tt, i, b, big, small>


Options:
(Line breaks become <br />)
(Set cookies for name, email & url)




powered by  b2evolution