Dolibarr is an open-source enterprise resource planning (ERP) and customer relationship management (CRM) software that can be used for managing businesses. Dolibarr can be installed on various systems like Linux, Windows, and macOS. In this tutorial, we will show you how to install Dolibarr on Manjaro, a Linux operating system.
Before installing Dolibarr, make sure that your Manjaro system is updated by running the following command:
sudo pacman -Syu
Dolibarr is a web application and requires a web server and PHP to run. To install Apache and PHP on Manjaro, run the following command in the terminal:
sudo pacman -S apache php php-apache mariadb
During the installation process, you will be prompted to enter a password for the MariaDB root user.
After the installation process has finished, start the Apache web server and enable it to run in the background using the following commands:
sudo systemctl start httpd
sudo systemctl enable httpd
After installing Apache and PHP, the next step is to download and install the latest version of Dolibarr from the official website - https://www.dolibarr.org/download. You can choose the version compatible with your server environment. In this tutorial, we will use version 13.0.3 as an example.
Run the following commands to download and extract Dolibarr:
wget https://github.com/Dolibarr/dolibarr/archive/13.0.3.tar.gz
tar -xvzf 13.0.3.tar.gz
After extracting the Dolibarr archive, copy the contents of the extracted folder to the Apache web server root directory:
sudo cp -R dolibarr-13.0.3/* /srv/httpd/htdocs/
Note: The web server root directory on Manjaro is /srv/httpd/htdocs/
.
Set the permissions of the Dolibarr directory and its contents to the Apache user, which is http
.
sudo chown -R http:http /srv/httpd/htdocs
Dolibarr software requires a database to store and manage data. We need to create a new database and a user for Dolibarr for the software to function correctly.
Log in to the MariaDB server as the root user by running the following command:
sudo mysql -u root -p
Enter the password you set for the MariaDB root user during installation.
Once logged in, create a new database and user for Dolibarr by running the following commands:
CREATE DATABASE dolibarr;
CREATE USER 'dolibarruser'@'localhost' IDENTIFIED BY 'password';
GRANT ALL PRIVILEGES ON dolibarr.* TO 'dolibarruser'@'localhost';
FLUSH PRIVILEGES;
Note: Replace the 'password' above with your desired password.
Exit the MariaDB shell by running the following command:
exit
The final step is to configure Dolibarr to use the database we created. Open your web browser and navigate to the Dolibarr installation page by entering the following URL:
http://your_server_IP/dolibarr
Note: Replace your_server_IP
with the IP address of your Manjaro system.
On the Dolibarr installation page, proceed to the database configuration section and enter the following details:
Click the 'Create Database' button and wait for a few seconds for the database to be created.
Once the database is created, you will be taken to the Dolibarr login page. Enter the default username and password for Dolibarr, which is admin and admin respectively.
Note: After logging in, you should change the default password and create a new user with administrative privileges.
You have successfully installed and configured Dolibarr on your Manjaro system. You can now use Dolibarr to manage your business.
If you want to self-host in an easy, hands free way, need an external IP address, or simply want your data in your own hands, give IPv6.rs a try!
Alternatively, for the best virtual desktop, try Shells!