Hi Mario,
It's actually not too hard.
What you've got to do is to copy the database and all the repository and uploaded files from the old server to the new one.
Here's the breakdown:
In the old server and assuming that you installed it also in there via apt-get, create a database dump of the LAMS db:
$ mysqldump --hex-blob -u lams -plamsdbpasswd lams > /tmp/lams-dump.sql
Then copy this dump file and the entire content of the following folders to the new server:
Uploaded content
/usr/share/jboss-5.1/server/default/deploy/lams.ear/lams-www.war
and
Repository files
/var/lib/lams/repository
On the new server, make sure that LAMS is stopped.
Then start by dropping the existing db and creating a new one.
$ mysql -u lams -plamsdbpasswd lams
Then in the mysql prompt drop the lams database:
mysql> drop database lams;
Now, create the DB again:
mysql> CREATE DATABASE lams DEFAULT CHARACTER SET utf8 COLLATE utf8_unicode_ci;
Now exit mysql and import the db dump from the old server:
$ mysql -u lams -plamsdbpasswd lams < lams-dump.sql
Copy the folders that you moved from the old server to the exact same paths in the new server.
Restart LAMS and that should do it.
Let me know if you have any questions
Posted by Ernie Ghiglione