LAMS 3.1 in Ubuntu

Skip to end of metadata
Go to start of metadata

Quick compile guide in Ubuntu 18.04

Required software

JDK 11

add-apt-repository ppa:linuxuprising/java
apt update
apt install oracle-java11-installer

MySQL 8

wget https://dev.mysql.com/get/mysql-apt-config_0.8.10-1_all.deb
dpkg -i  mysql-apt-config_0.8.10-1_all.deb
apt update
apt install mysql-server
mysql_secure_installation

Ant, sass, Git

apt install ant sass git

Wildfly 14.0.1 app server

cd ~
wget "http://download.jboss.org/wildfly/14.0.1.Final/wildfly-14.0.1.Final.tar.gz"
tar xzf ~/wildfly-14.0.1.Final.tar.gz
mv wildfly-14.0.1.Final wildfly-14.0.1
sudo mv wildfly-14.0.1 /usr/local/
sudo chown -R <<your-user:your-group>> /usr/local/wildfly-14.0.1

Get LAMS 3.1 source

LAMS 3.1 branch in GitHub is *v3.1*.
cd ~
mkdir code
cd code
git clone https://github.com/lamsfoundation/lams.git
# check out v3.1 branch
cd lams
git checkout v3.1
# Now we are ready to configure and compile

Configuration

Edit ~/code/lams/lams_build/common.properties
(default settings, please change accordingly)

db.host=localhost
db.port=3306
db.name=lams
db.username=lams
db.password=lamsdemo

Edit ~/code/lams/lams_build/unix.properties

contentrepository.base=/opt/lams-data/
#JBoss deploy directory (Unix)
server.home=/usr/local/wildfly-14.0.1/
#Sass executable. 
sass_exec_file=/usr/bin/sass

Create data file

sudo mkdir -p /opt/lams-data
sudo chown -R <<your-user:your-group>> /opt/lams-data

Compilation

cd ~/code/lams/lams_build
ant deploy-lams

Start LAMS

If compilation was all good, then start the Wildfly app server as follows:

cd /usr/local/wildfly-14.0.1/bin
./standalone.sh

Need help?

Just post a message in the Issues in GitHub

Labels:
None
Enter labels to add to this page:
Please wait 
Looking for a label? Just start typing.