Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  1. Backup the JBoss directory that contains your current LAMS installation
  2. Backup you repository directories. These are the directories specified by the $LAMS_DIR variable in lams.properties
  3. Backup /etc/lams2 if it exists
  4. Dump the LAMS database by using the following MySql command, filling in the fields inside the brackets.
    > $sqldir/ mysqldump -u(database username) -p(password) (lams database name) > (backup dir)/lams.dump

...

The lams.properties file outlines where and how you will install LAMS, It  also configures some of the settings you want for the install. If you have an existing lams.properties file from a previous LAMS installation or update you can re-use it by simply copying it to the root directory of the installer/updater package. It will most likely be kept in the /etc/lams2 folder.

Most of the default configurations in lams.properties can be left, but you will need to change some to suit the setup of your personal machine. The lams.properties file comes with directions on what you need to alter and what needs to be left unchanged. Pay particular attention to "Essential Settings" section because LAMS will not install or run properly if these are incorrect. Below is the skeleton for the lams.properties file.

...

Language       

Locale   

Locale-Direction

English    (Australia)                  

en_AU

LTR

Español    (Spanish)

es_ES

LTR

Deutsch    (German)

de_DE

LTR

???? (Chinese Simplified)

zh_CN

LTR

Français (French)

fr_FR

LTR

Italiano (Italian)

it_IT

LTR

Norsk (Norwegian)

no_NO

LTR

Svenska    (Swedish)

sv_SE

LTR

??? (Korean)

ko_KR

LTR

Polski (Polish)

pl_PL

LTR

Português (Portuguese Brazil)

pt_BR

LTR

Ti?ng Vi?t (Vietnamese)

vi_VN

LTR

Chinese (Taiwan)

zh_TW

LTR

Arabic (????) (Jordan)

ar_JO

RTL

???????? (Greek)

el_GR

LTR

Running the Installer

Before you run the script, you need to ensure that your $JAVA_HOME is set to your java 1.5 or higher directory, also you will need to set the $PATH variable
to include the path to the java binaries. The steps to do this are listed below.
> JAVA_HOME="(path to java installation directory)"
> export JAVA_HOME
> PATH="(path to java bin directory):$PATH"
> export PATH

Once you have finished editing lams.properties file you are ready to run the
update script. Go to the root directory of the package and type:
> sudo ./install-lams.sh

The installer will ask you if you wish to set up lams as a service, this will make lams start automatically each timeyou boot your machine. The installer will attempt to detect the wrapper jar that is suitable for you, if it cannot you can choose the wrapper that is the closest to suiting your architecture

You can find out your architecture types by typing
> uname -a    to get all the inforamtion
> uname -m    to get the architecture type

wrapper-linux-ppc-64-3.2.3    Linux    PPC
wrapper-linux-x86-32-3.2.3    Linux    i386    
wrapper-linux-x86-64-3.2.3    Linix     IA64

More information about setting the wrapper up in unix can be found here.

Running the Updater

Before you run the script, you need to ensure that your $JAVA_HOME is set to your java 1.5 or higher directory, also you will need to set the $PATH variable
to include the path to the java binaries. The steps to do this are listed below.
> JAVA_HOME="(path to java installation directory)"
> export JAVA_HOME
> PATH="(path to java bin directory):$PATH"
> export PATH

...