Dolibarr is a PHP-based open-source system that has both E-R-P and CRM functionalities for small and medium businesses. Its main purpose is to help manage various features of the business such as customers, invoices, orders, products, and inventory. The system provides a intuitive and user friendly web interface. It uses MariaDB as it’s database back-end to store all of it’s content. It could be a suitable solution for those seeking an ERP and CRM system
Requirements :
- 1GB RAM or More (The more the better performance)
- 1vCore CPU or more
- 5GB disk or more
- Ubuntu 22.04
Step 1: Update your server
First step is to update your server and look for newer packages and security releases your distribution
apt-get update -y
apt-get upgrade -y
Step 2: Configuring LAMP Stack
Second step is to configure a LAMP stack since this tool is based on PHP and uses MySQL/MariaDB as it’s database back-end!
apt-get install apache2 mariadb-server -y
Adding PPA Key to install PHP7 :
apt-get install software-properties-common -y
add-apt-repository ppa:ondrej/php
apt-get install apache2 mariadb-server php7.4 libapache2-mod-php7.4 php7.4-common php7.4-curl php7.4-intl php7.4-mbstring php7.4-mcrypt php7.4-json php7.4-xmlrpc php7.4-soap php7.4-mysql php7.4-gd php7.4-xml php7.4-cli php7.4-zip wget git unzip
nano /etc/php/7.4/apache2/php.ini
Edit the following lines :
memory_limit = 512M
upload_max_filesize = 200M
max_execution_time = 360
date.timezone = UTC
mysql_secure_installation
Copy the steps as shown in the picture or text :
Set root password? [Y/n] y
Remove anonymous users? [Y/n] y
Disallow root login remotely? [Y/n] n
Remove test database and access to it? [Y/n] y
Reload privilege tables now? [Y/n] y
mysql -u root -p
CREATE DATABASE dollibardb;
CREATE USER ‘dollibaruser’@’localhost’ IDENTIFIED BY ‘dollibarpassword’;
GRANT ALL ON dollibardb.* TO ‘dollibaruser’@’localhost’ WITH GRANT OPTION;
FLUSH privileges;
EXIT
Step 3 : Installing Dollibar ERP
We have everything setup for Dollibar ERP, Now we can simply download it from it’s repository link and install it:
Setting variable :
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
cp -r dolibarr-16.0.5 /var/www/html/dolibarr
chown -R www-data:www-data /var/www/html/dolibarr/
chmod -R 775 /var/www/html/dolibarr/
sudo chown -R /var/www/html/dolibarr
Create a virtual host :
nano /etc/apache2/sites-available/dolibarr.conf
<VirtualHost *:80>
ServerAdmin
DocumentRoot /var/www/html/dolibarr/htdocs
ServerName domain.example.com
<Directory /var/www/html/dolibarr/htdocs/>
Options +FollowSymlinks
AllowOverride All
Require all granted
</Directory>
ErrorLog ${APACHE_LOG_DIR}/dolibarr_error.log
CustomLog ${APACHE_LOG_DIR}/dolibarr_access.log combined
</VirtualHost>
a2ensite dolibarr
systemctl restart apache2
Access at your domain name which you configured above :
1 .
2.
3.
4.
Conclusion :
You have installed this tool on your Ubuntu 22.04 machine, This tutorial assumes you are root!