How to Install Dolibarr ERP CRM on Ubuntu 20.04

How to Install Dolibarr ERP CRM on Ubuntu 20.04. In this tutorial we will introduce Dolibarr ERP with it’s advantages and following that we will move onto installation phase.

Dolibarr is a cross platform ERP and CRM solution used by small businesses to large enterprises. If you are looking for an open source and self hosted ERP solution then Dolibarr is the right option for you.

What Is Dolibarr ERP?

Are you looking for a comprehensive ERP solution? Then, Dolibarr ERP is what you need to have. This popular solution is available for Windows, macOS, and Linux systems for free. It is an open source ERP solution that can be used by businesses of all types. It provides its users with a wide range of features that covers everything ranging from accounting to HR. Furthermore, it is easy to use and is installed within a few minutes.

Features of Dolibarr

The features it offers to its users are as follows:

  • CRM and Sales – Its CRM and sales features include options like prospectus/customers, opportunities, proposals, sales orders, contracts/subscriptions, and Help desk/Tickets.
  • Marketing – Its marketing features enables the users to send or receive emails and conduct surveys.
  • Human Relationship Management – The Human Relationship Management features provide options that include employees, expense reports, leave requests, time sheets, recruitment, and membership.
  • Finance and Billing – Finance and billing options take care of billing and payments, double entry accounting and bank reconciliation.
  • CMS, Website, eCommerce and Point of Sale – It enables users to use all the features of CMS, website, eCommerce and Point of Sale.
  • Product and Stock – Product and Stock features provide options, such as products, services, stocks, purchase, supply, shipments and manufacturing.
  • ProductivityProductivity offers projects, tasks, interventions, and agendas.
  • Integration, Development – Integration, Development offer API, connectivity with internal tools, Import/Export, and module builder for developers.

Benefits Of Dolibarr ERP

Dolibarr ERP provides its users with the following benefits:

Easy To Configure

The last thing businesses want while buying or setting up system applications is complications. It is because systems with complex configurations waste a lot of your time and money. That is why you need to choose Dolibarr ERP as it eliminates all of the worry and potential configuration complications.

Highly Customizable

Dolibarr ERP provides an extensive list of features that can be enabled and disabled at any time. It matches your system’s need, thereby eliminating unnecessary and confusing clutter on the dashboard that distracts you from getting things done.

Web Based Application

Dolibarr ERP is a web based application that enables you to interact with the remote server through a web browser. It also allows you to use it from anywhere and on any device, making you and your employees more mobile. And mobility is a crucial factor in increasing productivity.

Highly Independent

Dolibarr restricts you from depending on anyone else to secure, upgrade, install and add extensions and features without having to wait for the provider to do it for you. It mitigates all the usual meeting times, making you much more efficient and productive.

Large Community

Dolibarr ERP has a community forum for its users, where a group of developers or other users helps you by answering your queries. Therefore, you can ask any question you have relating to the software and help others users as well.

Highly Affordable

Sometimes, you have to pay a hefty amount for an ERP solution. It makes them less affordable for small businesses. However, using Dolibarr ERP keeps the problem of pricing away as it provides you with both paid and unpaid options.

Follow this post, we will explain How to Install Dolibarr ERP CRM on Ubuntu 20.04.

Install Dolibarr ERP CRM on Ubuntu 20.04

Prerequisites

  • A root user or a user with sudo privileges.

Install Apache and PHP

First, you will need to install Apache web server, PHP and other required PHP extensions on your server. You can install all of them by running the following command:

				
					apt install apache2 php libapache2-mod-php php-cli php-mysql php-common php-zip php-mbstring php-xmlrpc php-curl php-soap php-gd php-xml php-intl php-ldap -y
				
			

After installing all those packages, edit the PHP configuration file and change the default settings:

				
					nano /etc/php/7.4/apache2/php.ini
				
			

Change the following settings as per your requirements:

				
					date.timezone = UTC
memory_limit = 256M
upload_max_filesize = 64M
display_errors = On
log_errors = Off
				
			

Save and close the file then restart the Apache service to apply the changes:

				
					systemctl restart apache2
				
			

Install and Configure MariaDB Database

Dolibarr uses a MariaDB as a database backend so you will need to install MariaDB on your server. First, install the MariaDB package using the following command:

				
					apt install mariadb-server -y
				
			

Once the MariaDB package is installed, start the MariaDB service using the following command:

				
					systemctl start mariadb
				
			

You can check the status of the MariaDB using the following command:

				
					systemctl status mariadb
				
			

You will get the following output:

				
					● mariadb.service - MariaDB 10.3.34 database server
     Loaded: loaded (/lib/systemd/system/mariadb.service; enabled; vendor preset: enabled)
     Active: active (running) since Sat 2022-06-25 05:32:56 UTC; 13s ago
       Docs: man:mysqld(8)
             https://mariadb.com/kb/en/library/systemd/
   Main PID: 14338 (mysqld)
     Status: "Taking your SQL requests now..."
      Tasks: 31 (limit: 2348)
     Memory: 63.8M
     CGroup: /system.slice/mariadb.service
             └─14338 /usr/sbin/mysqld

Jun 25 05:32:56 ubuntu2004 mysqld[14338]: 2022-06-25  5:32:56 0 [Note] /usr/sbin/mysqld (mysqld 10.3.34-MariaDB-0ubuntu0.20.04.1) starting as>
Jun 25 05:32:56 ubuntu2004 systemd[1]: Started MariaDB 10.3.34 database server.
Jun 25 05:32:56 ubuntu2004 /etc/mysql/debian-start[14373]: Upgrading MySQL tables if necessary.

				
			

Next, login to MariaDB with the following command:

				
					mysql
				
			

Once you are log in, create a database and user for Dolibarr:

				
					CREATE DATABASE dolibarr;
CREATE USER 'dolibarr'@'localhost' IDENTIFIED BY 'password';
				
			

Next, grant all the privileges to the Dolibarr database:

				
					GRANT ALL PRIVILEGES ON dolibarr.* TO 'dolibarr'@'localhost';
				
			

Next, flush the privileges and exit from the MariaDB shell with the following command:

				
					FLUSH PRIVILEGES;
EXIT;
				
			

Download Dolibarr

Next, you will need to download the latest version of Dolibarr from the Git repository. You can download it using the following command:

				
					release_tag=$(curl -s https://api.github.com/repos/Dolibarr/dolibarr/releases/latest | grep tag_name | cut -d '"' -f 4)
wget https://github.com/Dolibarr/dolibarr/archive/${release_tag}.tar.gz
				
			

Once the Dolibarr is downloaded, extract the downlaoded file with the following command:

				
					tar xvf ${release_tag}.tar.gz
				
			

Next, move the extracted directory to the Apache web root directory using the following command:

				
					mv dolibarr-${release_tag} /var/www/html/dolibarr
				
			

Next, change the ownership and permission of the Dolibarr directory:

				
					chown -R www-data:www-data /var/www/html/dolibarr
chmod -R 775 /var/www/html/dolibarr
				
			

Configure Apache for Dolibarr

Next, you will need to create an Apache virtual host configuration file for Dolibarr. You can create it with the following command:

				
					nano /etc/apache2/sites-available/dolibarr.conf
				
			

Add the following configurations:

				
					<VirtualHost *:80>
     ServerAdmin admin@example.com
     ServerName dolibarr.example.com
     DocumentRoot /var/www/html/dolibarr/htdocs/

     <Directory /var/www/html/dolibarr/htdocs>
        Options +FollowSymlinks
        AllowOverride All
        Require all granted
     </Directory>

     ErrorLog /var/log/apache2/dolibarr_error.log
     CustomLog /var/log/apache2/dolibarr_access.log combined
</VirtualHost>

				
			

Save and close the fiel then verify the Apache configuration using the following command:

				
					apachectl -t
				
			

You should get the following output:

				
					Syntax OK
				
			

Next, activate the Apache virtual host with the following command:

				
					a2ensite dolibarr.conf
				
			

Next, restart the Apache service to apply the configuration changes:

				
					systemctl restart apache2
				
			

To check the status of the Apache, run the following command:

				
					systemctl status apache2
				
			

You should see the following output:

				
					● apache2.service - The Apache HTTP Server
     Loaded: loaded (/lib/systemd/system/apache2.service; enabled; vendor preset: enabled)
     Active: active (running) since Sat 2022-06-25 05:36:32 UTC; 3s ago
       Docs: https://httpd.apache.org/docs/2.4/
    Process: 15325 ExecStart=/usr/sbin/apachectl start (code=exited, status=0/SUCCESS)
   Main PID: 15345 (apache2)
      Tasks: 6 (limit: 2348)
     Memory: 13.5M
     CGroup: /system.slice/apache2.service
             ├─15345 /usr/sbin/apache2 -k start
             ├─15346 /usr/sbin/apache2 -k start
             ├─15347 /usr/sbin/apache2 -k start
             ├─15348 /usr/sbin/apache2 -k start
             ├─15349 /usr/sbin/apache2 -k start
             └─15350 /usr/sbin/apache2 -k start

Jun 25 05:36:32 ubuntu2004 systemd[1]: Starting The Apache HTTP Server...

				
			

Next in this guide about how to Install Dolibarr ERP CRM on Ubuntu 20.04 is to follow the steps in Web Installation Wizard.

Access Dolibarr Web Installation Wizard

At this point, Dolibarr is installed and configured with Apache. Now, perform the following steps to complete the Dolibarr installation via web browser.

Step 1 – Open your web browser and access the Dolibarr web installation using the URL http://dolibarr.example.com. You should see the Dolibarr language selection screen:

Step 2 – Select your language and click on the Next step. You should see the prerequisites check screen:

Step 3 – Click on the Next step. You should see the Web server and database configuration screen:

Step 4 – Define your webserver and database configuration then click on the Next step. You should see the generate configuration screen:

Step 5 – Click on the Next step. You should see the object creation screen:

Step 6 – Click on the Next step. You should see the admin creation screen:

Step 7 – Define your admin username, password and click on the Next step. You should see the intallation completed screen:

Step 8 – Click on the Go to Dolibarr. You should see the Dolibarr login screen:

Step 9 – Provide your Dolibarr admin username, password and click on the LOGIN. You should see the Dolibarr dashboard:

Great! We have learned today about How to Install Dolibarr ERP CRM on Ubuntu 20.04. Let’s summarize. 

How to Install Dolibarr ERP CRM on Ubuntu 20.04 Conclusion

In this guide, we explained how to install Dolibarr ERP and CRM with Apache and MariaDB on Ubuntu 20.04 server. Dolibarr is the right ERP solution for businesses and individuals who need to host their own self hosted ERP solution. Dolibarr allows you to customize the ERP system to include only the features you need so that you get the most optimal experience.

Avatar for Hitesh Jethva
Hitesh Jethva

I am a fan of open source technology and have more than 10 years of experience working with Linux and Open Source technologies. I am one of the Linux technical writers for Cloud Infrastructure Services.

0 0 votes
Article Rating
Subscribe
Notify of
0 Comments
Most Voted
Newest Oldest
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x