How to Install Dolibarr ERP on Ubuntu 22.04



How to Install Dolibarr ERP on Ubuntu 22.04

How to Install Dolibarr ERP on Ubuntu 22.04

Dolibarr is an open-source ERP and CRM system written in PHP. It is designed for small and medium businesses to manage customers, invoices, orders, products, inventories, etc. It provides a simple, and easy-to-use web interface that allows you to manage your ERP application via a web browser. If you are looking for open-source ERP and CRM solutions for your organization, then Dolibarr is the best choice for you.

In this Video, we will learn how to install Dolibarr on Ubuntu 22.04 server.

Useful Links
VPS/VDS – https://www.mivocloud.com/
Dolibarr – https://www.dolibarr.org/

Commands Used
apt-get install software-properties-common -y
add-apt-repository ppa:ondrej/php -y
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 unzip git -y
nano /etc/php/7.4/apache2/php.ini
systemctl start apache2
systemctl enable apache2
systemctl start mariadb
systemctl enable mariadb
mysql_secure_installation
mysql -u root -p
CREATE DATABASE dolibarrdb;
CREATE USER dolibarr;
GRANT ALL PRIVILEGES ON dolibarrdb.* TO ‘dolibarr’@’localhost’ IDENTIFIED BY ‘password’;
FLUSH PRIVILEGES;
EXIT
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
tar -xvzf 16.0.5.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/
nano /etc/apache2/sites-available/dolibarr.conf

VirtualHost *:80
ServerAdmin [email protected]
DocumentRoot /var/www/html/dolibarr/htdocs
ServerName dolibarr.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
a2enmod rewrite
systemctl restart apache2
systemctl status apache2