How to install the Dolibarr ERP/CRM platform on Ubuntu Server 22.04


If your business has grown to the place it necessitates assist with arranging and arranging specifics these kinds of as contacts, suppliers, invoices, orders, stock and schedules, you want an ERP resource. You can possibly switch to a 3rd-occasion platform, or you can deploy an in-dwelling option to your facts middle or a third-occasion cloud host.

Abide by this step-by-stage approach of putting in the Dolibarr ERP/CRM resolution, which is perfectly suited for businesses of all dimensions as nicely as for freelancers.

What you will need to have to set up Dolibarr

I’ll demonstrate the deployment on Ubuntu Server 22.04, but Dolibarr can be installed on just about any Linux distribution. If you are working with a server distro other than Ubuntu, you will require to modify some of the installation commands. You are going to also have to have a user with sudo privileges.

SEE: 9 must-do strategies to protected Ubuntu Server (TechRepublic High quality)

How to install the dependencies

The first issue we’ll do is install the essential dependencies, starting off with the world-wide-web and databases servers.

Log in to your instance of Ubuntu Server and put in the Apache net server with the command:
sudo apt-get install apache2 -y
Once the set up completes, start off and permit the server with:

sudo systemctl help --now apache2

Help the rewrite module with:

sudo a2enmod rewrite

Up coming, let us set up the important PHP dependencies with:

sudo apt-get put in php php-cli php-mysql php-prevalent php-zip php-mbstring php-xmlrpc php-curl php-cleaning soap php-gd php-xml php-intl php-ldap libapache2-mod-php -y

Just after PHP is mounted, you will will need to do a brief configuration. Open the PHP config file with the command:

sudo nano /etcetera/php/*/apache2/php.ini

In that file, glimpse for the pursuing and change them to the values shown, the place TIMEZONE is your unique time zone:

  • day.timezone = TIMEZONE
  • memory_limit = 256M
  • add_max_filesize = 64M
  • show_errors = On
  • log_faults = Off

We’ll install the MariaDB databases with the command:

sudo apt-get set up mariadb-server mariadb-client -y

When the set up completes, you have to have to protected the MariaDB database server with the command:

sudo mysql_safe_set up

Make guaranteed to set a sturdy/exceptional password for the admin person.

How to produce the databases

Log into the database console with:

sudo mysql -u root -p

Produce the databases and the Dolibarr person with the subsequent instructions, in which PASSWORD is a strong/exceptional password:

Develop Person 'dolibarr'@'localhost' Identified BY 'PASSWORD'
Generate Databases dolibarr
GRANT ALL PRIVILEGES ON dolibarr.* TO 'dolibarr'@'localhost'

How to configure Apache

Let’s develop an Apache virtual host file with:

sudo nano /and many others/apache2/web pages-enabled/dolibarr.conf

In that file, paste the following:

  ServerName in
  ServerAlias in
  DocumentRoot /var/www/html//dolibarr/htdocs/

  Directory /srv/dolibarr/htdocs>
  Solutions +FollowSymlinks
  AllowOverride All
  Require all granted

  ErrorLog /var/log/apache2/dolibarr_mistake.log
  CustomLog /var/log/apache2/dolibarr_entry.log put together

Save and near the file. Restart Apache with:

sudo systemctl restart apache2

How to down load and unpack Dolibarr

We’re going to established a variable to the most up-to-date model readily available for Dolibarr with the command:

release_tag=$(curl -s current | grep tag_title | slice -d '"' -f 4)

We can now use launch_tag to assure we’re acquiring and utilizing the latest variation. Obtain Dolibarr with:


Unpack Dolibarr with:

sudo mv dolibarr-$launch_tag /var/www/html/dolibarr

Give the new listing the correct permissions with:

sudo chown -R /var/www/html/dolibarr

How to finish the set up

Open a world wide web browser and position it to http://SERVER/dolibarr/htdocs where SERVER is the IP deal with of the internet hosting server, and you’ll be greeted by the Dolibarr world wide web installer (Figure A).

Determine A

Dolibarr ERP/CRM web installer.
The Dolibarr world wide web installer.

Click Next and then, in the resulting window, click on Start out (Determine B).

Figure B

Dolibarr ERP/CRM prerequisite check has passed and is ready to go.
The prerequisite verify has handed and is all set to go.

On the configuration website page (Determine C), you want to configure the database possibilities. In our install, the databases identify is dolibarr, the person is dolibarr, and the password is what you set in the MariaDB console. You’ll also want to scroll to the bottom of that site, produce a tremendous user account, and then click on Subsequent Phase.

Determine C

Dolibarr web-based configuration page.
The Dolibarr website-dependent configuration web site.

When prompted, click Subsequent Action once more to launch the set up. This step will take awhile to full, as it will have to populate the databases and preserve the configuration alternatives you have selected. After this finishes, you can log into Dolibarr with your superuser account and get started making use of your new ERP/CRM options.

Before you finish the Dolibarr installation course of action be certain to insert an set up lock file to protect against any individual from maliciously applying the set up instruments. To do that, problem the command:

sudo contact /var/www/html/dolibarr/paperwork/set up.lock

Congratulations on taking your company to the following degree of performance.

Subscribe to TechRepublic’s How To Make Tech Perform on YouTube for all the hottest tech guidance for small business professionals from Jack Wallen.

Fibo Quantum