|
This page last changed on Nov 14, 2005.
- Download update
- Stop LAMS and make a full backup
- Copy over new files and update database
- Need the updated lams-package directory, which is distributed in the lams-server-1.0.2-{build_date}.[zip|tar.gz] LAMS Server Package.
- LAMS 1.0.2 Server Package
- by stopping the service
- Windows: Control Panel->Administrative Tools->Computer Management->Services, then right-click the LAMS service and select Stop.
- Unix: '/etc/init.d/lams stop'; replace 'lams' with whatever your service name is.
- alternate way:
- Windows: $JBOSS_HOME/bin/shutdown.bat
- Unix: $JBOSS_HOME/bin/shutdown.sh
- alteralternate way:
- Unix: 'ps -ef | grep java', 'kill $PID' where $PID is the pid of the LAMS server.
- remember to inform users of downtime
- Copy lams-1.0.jar, lams-hibernate.sar and lams.war to a backup location. These files live in $JBOSS_HOME/server/default/deploy.
- Copy $JBOSS_HOME/server/default/lib to a backup location.
- Copy $LAMS_HOME/chat, $LAMS_HOME/reports, $LAMS_HOME/simpleassessment to a backup location.
- Copy $JBOSS_HOME/server/default/deploy/upload.war directory to a backup location.
- Backup the MySQL database
- 'mysqldump -c -a --add-drop-table -B $DATABASE_NAME -r /path/to/backups/lams-101-backup.sql -u $MYSQL_USER_NAME -p'
- You will be prompted for the password of the MySQL user.
- The database name, user and password will have been specified during the initial installation and configuration of the LAMS server.
- Copy /path/to/lams-package/deploy/lams-1.0.jar, lams-hibernate.sar, and lams.war to $JBOSS_HOME/server/default/deploy.
- Copy /path/to/lams-package/lib/*.jar to $JBOSS_HOME/server/default/lib
- Make sure your lib folder contains these files (delete anything else that does not appear here - they are outdated):
- Update the database:
- Enter the mysql client 'mysql -u lams -p'
- Type 'use lams' (change to whatever your LAMS database is called)
- Type '\. /path/to/lams-package/sql/update_from101_to102.sql;'
- If your version of LAMS was installed before the release of 1.0.1, LAMS may not start properly.
- In this case, reinstall LAMS from scratch. Once that is done, replace the fresh database with the old one, and run the update script on it.
|