The articles explains How to install Dolibarr ERP/CRM platform on Ubuntu Server 22.04. The only Linux distribution that supports Azure Confidential VMs is Ubuntu. Ubuntu is tightly integrated into public clouds and has been optimized for performance, security, and usability.
Ubuntu Desktop is a Linux distribution developed by Canonical, which is one of the most popular distributions thanks to its ease of use. It is also one of the first choices for people starting with Linux. 22.04 (Ubuntu) Jammy Jellyfish has been released, and it is stunning. However, there are some problems that can’t be outweighed by its beauty. There are many Linux distributions for gaming that you may not even know about.
It is an open source and free software package designed for businesses, foundations and freelancers. You can install and use it as a standalone application or online on a mutualized or dedicated server to use it from anywhere. Dolibarr is also available as a ready-to-use cloud backup service
How to install Dolibarr ERP/CRM platform on Ubuntu Server 22.04
Install PHP on Ubuntu
- Install PHP and its extensions by running the commands below on your terminal:
sudo apt updatesudo apt install -y 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
- Also install libapache2-mod-php extension
sudo apt install -y libapache2-mod-php
- Configure PHP settings like below
sudo vim /etc/php/*/apache2/php.ini
date.timezone = Africa/Nairobimemory_limit = 256Mupload_max_filesize = 64Mdisplay_errors = Onlog_errors = Off
Install MariaDB and Create Database
- Dolibarr ERP needs a database store for its data. Install MariaDB in your Ubuntu using the following commands:
sudo apt install mariadb-server mariadb-client
- After the database server is installed, secure it by running the commands below:
sudo mysql_secure_installation
- Login to MySQL shell as root user and create a Database for Dolibarr ERP & CRM.
sudo mysql -u root -p
- Create a database and user for Dolibarr ERP:
CREATE USER ‘dolibarr’@’localhost’ IDENTIFIED BY ‘StrongPassword’;CREATE DATABASE dolibarr;GRANT ALL PRIVILEGES ON dolibarr.* TO ‘dolibarr’@’localhost’;FLUSH PRIVILEGES;QUIT
- Check if you can log in to Database shell as dolibarr user:
$ mysql -u dolibarr -p
Download Dolibarr ERP & CRM on Ubuntu 20.04|18.04
- The next step is to download the latest Dolibarr ERP & CRM version to your Ubuntu system using the wgetcommand.
- Check for the latest release of Dolibarr ERP & CRM on Github.
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 xvf ${release_tag}.tar.gz
- Move the directory created from extraction to /srv/dolibarr
sudo mv dolibarr-${release_tag} /srv/dolibarr
- Then set proper permissions
sudo chown -R www-data:www-data /srv/dolibarr
Install and Configure Apache2 Web Server
sudo apt -y download apache serversudo a2enmod rewrite
- Then create a Virtual Hosts file for vTiger
sudo vim /etc/apache2/sites-enabled/dolibarr.conf
<VirtualHost *:80>ServerAdmin [email protected] erp.example.comServerAlias www.erp.example.comDocumentRoot /srv/dolibarr/htdocs/
<Directory /srv/dolibarr/htdocs>Options +FollowSymlinksAllowOverride AllRequire all granted</Directory>
ErrorLog /var/log/apache2/dolibarr_error.logCustomLog /var/log/apache2/dolibarr_access.log combined</VirtualHost>
$ sudo apachectl -tSyntax OK
sudo systemctl restart apache2
Finish Dolibarr installation on browser
- Finish the installation by opening http://example.com in your web browser. The first page will ask you to select and use browser detected.
- Confirm all Installation prerequisites checks the click Start to begin the installation.
- Set Database Information.
- Database name: dolibarr
- Driver type: MySQL / MariaDB
- Database server: localhost
- Login: dolibarr
- Password: StrongPasswordConfirm settings then click Next
- Click “Next step” to save configurations and finish the installation. The last step is to set admin logins.
- Login as an admin user to Dolibarr ERP & CRM management dashboard.
Conclusion
Here is the end of our article on how to install Dolibarr ERP platform on Ubuntu Server 22.04. Ubuntu 22.04 LTS is now generally available, with significant advances in cloud computing, real-time kernel for industrial applications and enterprise Active Directory, PCI-DSS, HIPAA, FIPS and FedRAMP compliance – raising the bar for open source from cloud to edge, IoT and workstations. The article is complete and you now know how to install Dolibarr ERP/CRM platform on Ubuntu Server 22.04.
I hope you understand this article, How to install Dolibarr ERP/CRM platform on Ubuntu Server 22.04.