Tuesday, June 23, 2009

Upgrading from LAMS 2.2 to 2.3.1

The upgrade needs to be completed in two stages, from 2.2 to 2.3 and then from 2.3 to 2.3.1

1) Upgrading from 2.2 to 2.3

As the root user download lams-unix-updater-2.3.tar.gz into /root:

lynx http://wiki.lamsfoundation.org/display/lams/Downloads#Downloads-unix

Unpack the updater and run the update script:

tar -xzvf lams-unix-updater-2.3.tar.gz
cd lams-unix-updater-2.3
./update-lams.sh

Answer the questions below:

The LAMS updater has detected a lams.properties file in /etc/lams2.
Do you wish to use this file? (y)es (n)o (q)uit

y

Do you want to run the LAMS shutdown script before continuing? (Recommended)
(y)es I want to run the JBOSS shutdown script.
(n)o I have already shutdown LAMS. Continue with the upgrade.
(q)uit.

y

Do you wish to automatically backup lams before updating?
(Recommended. NOTE: Requires MySql to be installed at localhost)
Please check the below directories are correct before running this
backup. If they are not, quit the installer and backup LAMS manually.
The space required to backup your LAMS installation:
17M /var/opt/lams
407M /usr/local/jboss-4.0.2
423M total
(y)es I wish to backup LAMS.
(n)o I have already backed up LAMS, I am ready to update.
(q)uit.

y
Please enter the full path of where you wish to backup lams
> /root/lams2.3
Note that this directory will be created for you by the installer

Now start LAMS and your upgrade is complete:

service lams2 start


2) Upgrading from 2.3 to 2.3.1

As the root user download lams-unix-patch-2.3.1.tar.gz into /root:

lynx http://wiki.lamsfoundation.org/display/lams/Downloads#Downloads-unix

Unpack the patch and run the script:

tar -xzvf lams-unix-patch-2.3.1.tar.gz
cd lams-unix-patch-2.3.1
./install-lams-patch.sh

You will be asked all the same questions as above. Note that any existing backup directory will be overwritten if you use the same path as given above.

Now start LAMS and your upgrade is complete:

service lams2 start