In this tutorial, we will explain how to install Dolibarr on OpenSUSE, which is an open-source ERP and CRM software.
Before we begin, make sure you have the following:
It’s always a good practice to update your system to prevent any conflicts or errors during installation. Update your system by running the following command:
sudo zypper refresh
sudo zypper update
Before installing Dolibarr, we need to install some required packages. Run the following command in your terminal:
sudo zypper install apache2 mariadb mariadb-client mariadb-tools php php-mysql php-intl php-gd php-xmlwriter php-mbstring php-zip php-curl php-ldap
Now we are ready to install Dolibarr on our Open SUSE system. You can download the latest version of Dolibarr from its official website or use the following command to download the package directly:
wget https://sourceforge.net/projects/dolibarr/files/latest/download -O dolibarr.tar.gz
Now extract the downloaded package using the following command:
sudo tar -xvf dolibarr.tar.gz -C /srv/www/htdocs/
The above command will extract the package and create a new directory named dolibarr in /srv/www/htdocs/.
Next, move into the dolibarr directory:
cd /srv/www/htdocs/dolibarr
And rename the configuration file:
sudo cp /srv/www/htdocs/dolibarr/documents/conf/conf.php.install /srv/www/htdocs/dolibarr/documents/conf/conf.php
In this step, we will configure the MariaDB database for Dolibarr. By default, MariaDB is not configured with any password, so we need to set a password for the root user:
sudo mysql_secure_installation
Follow the wizard to set a new password.
Now, we need to create a new database and user for Dolibarr:
Log in to MariaDB:
sudo mysql -u root -p
Create a new database:
CREATE DATABASE dolibarr;
Create a new user and grant privileges:
GRANT ALL PRIVILEGES ON dolibarr.* TO 'dolibarruser'@'localhost' IDENTIFIED BY 'password';
Exit from the MariaDB shell:
exit;
In this step, we will configure the Apache web server for Dolibarr. We will create a new virtual host configuration file to serve Dolibarr:
sudo nano /etc/apache2/conf.d/dolibarr.conf
Add the following configuration to the file:
Alias /dolibarr /srv/www/htdocs/dolibarr
<Directory /srv/www/htdocs/dolibarr/>
Options Indexes FollowSymLinks
AllowOverride All
Require all granted
</Directory>
Save and close the file.
Next, enable the required Apache modules:
sudo a2enmod rewrite
sudo systemctl restart apache2
Now that everything is set up, we can run the Dolibarr installation script. Open your web browser and go to http://your_server_ip_address/dolibarr/install/.
Follow the instructions in the installation wizard, enter the database details, and set up your admin account.
Once you’ve completed the wizard, remove the install directory for security purposes:
sudo rm -rf /srv/www/htdocs/dolibarr/install/
That’s it! Dolibarr is now installed and ready to use.
In this tutorial, we’ve explained how to install Dolibarr on OpenSUSE. You can now use Dolibarr for all your ERP and CRM needs.
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!