fbpx

Technical Architecture

Installation Guide

api

This installation guide pertains to the latest version of the ERP. For earlier versions, please feel free to visit the forum.

As an Open Source publisher, this installation guide is intended for Open Source environments. For users of proprietary solutions, you will find the technical prerequisites in our dedicated documentation.

However, Tomcat is required to deploy the web application.

sync Flow

From To Visibility / Protocol Port
Client Application Server: Apache/Nginx Internet / HTTPS 433
Application Server: Apache/Nginx Application Server: Apache Tomcat Intranet / HTTP ( ou AJP ) 8080 (8009)
Application Server: Tomcat Database Server: PostgreSQL Intranet / TCP 5432

download Software Installation

The following commands allow you to install the necessary tools. They may need to be adapted depending on the target environment (Ubuntu 22.04/ubuntu/suse/..) and specific configurations.

Database server

PostgreSQL Installation

Ubuntu 22.04

Installation of the default version of PostgreSQL, which is version 14 on Ubuntu Server 22.04.

$ sudo apt install postgresql
$ sudo su postgres && cd
$ createuser --no-superuser --username postgres --pwprompt axelor
$ psql template1 -q -c 'CREATE EXTENSION unaccent;'
$ createdb --owner=axelor axelor
$ exit

A database named ‘Axelor’ and a user named ‘Axelor’ will be created. Verify that the cluster is UP with the command “pg_lsclusters”

Ver Cluster Port Status Owner Data directory Log file
14 main 5432 online postgres /var/lib/postgresql/14/main /var/log/postgresql/postgresql-14-main.log

Java Installation

Ubuntu 22.04

Installation of the default version of Java, which is version 11, on Ubuntu Server 22.04.

$ sudo apt install default-jdk

Verify that Java is installed correctly with the command “java -version”

$ openjdk version "11.0.16" 2022-07-19
$ OpenJDK Runtime Environment (build 11.0.16+8-post-Ubuntu-0ubuntu122.04)
$ OpenJDK 64-Bit Server VM (build 11.0.16+8-post-Ubuntu-0ubuntu122.04, mixed mode, sharing)

Installation of the client environment

Ubuntu 22.04

$ mkdir src && mkdir opt

Installation of Apache Tomcat (version 9)

Ubuntu 22.04

⚠ The second instruction line allows you to retrieve version 9.0.72. If you want a more recent version, visit the Tomcat version 9 site to get the correct URL.

$ cd ~/opt
$ wget https://dlcdn.apache.org/tomcat/tomcat-9/v9.0.72/bin/apache-tomcat-9.0.72.tar.gz --no-check-certificate
$ tar -xzf apache-tomcat-9.0.72.tar.gz 
$ ln -s /home/axelor/opt/apache-tomcat-9.0.72 /home/axelor/opt/default-tomcat 
$ rm apache-tomcat-9.0.72.tar.gz 
$ rm -rf default-tomcat/webapps/*
$ sed -z -r -i 's/(<Valve className="org.apache.catalina.valves.AccessLogValve".*\/>)/<!--\1-->/' /home/axelor/opt/default-tomcat/conf/server.xml
$ sed -i 's/<Connector port="8080" protocol="HTTP\/1.1"/<Connector port="8080" protocol="HTTP\/1.1" \n\t\taddress="127.0.0.1" \n\t\tproxyPort="443" secure="true" scheme="https"/' /home/axelor/opt/default-tomcat/conf/server.xml
$ sudo nano /etc/systemd/system/axelor-tomcat.service
$ sudo nano /etc/logrotate.d/axelor-tomcat 
$ sudo systemctl daemon-reload
$ sudo systemctl enable axelor-tomcat
$ cd

Installation of Nginx (optional)

Ubuntu 22.04

$ sudo apt install nginx
$ sudo vi /etc/nginx/sites-available/exemple.axelor.com 
$ sudo ln -s /etc/nginx/sites-available/exemple.axelor.com /etc/nginx/sites-enabled/ exemple.axelor.com
$ sudo service nginx restart 

Install Axelor Open Suite

You can find the mentioned WAR files on our GitHub at this link.

Ubuntu 22.04

$ cd ~/src/
$ unzip %path_to_war_file% -d axelor-version_app 
$ # Update axelor-version_app/WEB-INF/classes/axelor-config.properties
$ cp -r /home/axelor/src/axelor-version_app /home/axelor/opt/default-tomcat/webapps/ROOT
$ sudo systemctl start axelor-tomcat

Discover how our ERP can help improve your company’s performance

An expert will contact you shortly to discuss your project.












    Axelor collects your data in order to respond to your request and possibly develop a business relationship with you. To learn more about the management of your personal data and to exercise your rights, please refer to our Privacy Policy.