August 14, 2022

Worldnewspedia.com

News and Update

The way to Set up Dolibarr ERP/CRM Platform on Ubuntu Server 22.04

If your enterprise has grown to the purpose of needing assist with planning and organizing particulars like contacts, suppliers, invoices, buy orders, stock, and schedules, you want ERP Instruments. You possibly can swap to a third-party platform, or you possibly can deploy an in-house answer to your information heart or third-party cloud internet hosting.

Observe this step-by-step course of to put in the Dolibarr ERP/CRM answer, which is ideal for organizations of all sizes in addition to for freelancers.

What it is advisable set up Dolibarr

I’ll display the implementation on Ubuntu Server 22.04, however Dolibarr could be put in on any Linux distribution. In case you are utilizing a non-Ubuntu server distribution, you’ll need to change some set up instructions. Additionally, you will want a consumer with sudo privileges.

UNDERSTAND: 9 must-do tricks to safe Ubuntu Server (TechRepublic Premium)

The way to set up dependencies

The very first thing we are going to do is set up the required dependencies, beginning with the net server and database.

Log in to your Ubuntu Server occasion and set up the Apache net server with the command:
sudo apt-get set up apache2 -y
As soon as the set up is full, begin and activate the server with:

sudo systemctl allow --now apache2

Allow the rewrite module with:

See also  Spotify pronounces Supergrouper permitting customers to take heed to customized playlists primarily based on their alternative of artists: Particulars

sudo a2enmod rewrite

Subsequent, set up the required PHP dependencies with:

sudo apt-get set up 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 libapache2-mod-php -y

As soon as PHP is put in, you’ll need a fast configuration. Open the PHP configuration file with the command:

sudo nano /and so forth/php/*/apache2/php.ini

In that file, discover the next and alter them to the values ​​proven, the place TIMEZONE is your particular time zone:

  • date.timezone = TIMEZONE
  • memory_limit = 256 million
  • upload_max_filesize = 64 million
  • display_errors = On
  • log_errors = Off

We’ll set up the MariaDB database utilizing the command:

sudo apt-get set up mariadb-server mariadb-client -y

As soon as the set up is full, it is advisable safe the MariaDB database server with the command:

sudo mysql_secure_installation

Make certain to set a robust/distinctive password for the admin consumer.

The way to create a database

Log in to the database console with:

sudo mysql -u root -p

Create the Dolibarr database and consumer utilizing the next instructions, the place PASSWORD is the sturdy/distinctive password:

CREATE USER 'dolibarr'@'localhost' IDENTIFIED BY 'PASSWORD';
CREATE DATABASE dolibarr;
GRANT ALL PRIVILEGES ON dolibarr.* TO 'dolibarr'@'localhost';
FLUSH PRIVILEGES;
exit

The way to configure Apache

Let’s create an Apache digital host file with:

sudo nano /and so forth/apache2/sites-enabled/dolibarr.conf

In that file, paste the next:


  ServerAdmin [email protected]
  ServerName erp.instance.com
  ServerAlias www.erp.instance.com
  DocumentRoot /var/www/html//dolibarr/htdocs/

  Listing /srv/dolibarr/htdocs>
  Choices +FollowSymlinks
  AllowOverride All
  Require all granted
  

  ErrorLog /var/log/apache2/dolibarr_error.log
  CustomLog /var/log/apache2/dolibarr_access.log mixed



Save and shut the file. Restart Apache with:

sudo systemctl restart apache2

The way to obtain and extract Dolibarr

We’ll set a variable to the most recent model out there for Dolibarr with the command:

release_tag=$(curl -s https://api.github.com/repos/Dolibarr/dolibarr/releases/newest | grep tag_name | reduce -d '"' -f 4)

Now we will use release_tag to ensure we’re loading and utilizing the most recent model. Obtain Dolibarr with:

wget https://github.com/Dolibarr/dolibarr/archive/${release_tag}.tar.gz

Extract Dolibarr with:

sudo mv dolibarr-${release_tag} /var/www/html/dolibarr

Give the brand new listing the suitable permissions with:

sudo chown -R /var/www/html/dolibarr

The way to full the set up

Open an internet browser and level it to http://SERVER/dolibarr/htdocs the place SERVER is the host’s IP handle and you may be greeted by the Dolibarr net installer (Image A).

Image A

Dolibarr ERP/CRM Web Installer.
Dolibarr Net Installer.

Click on Subsequent after which, within the ensuing window, click on Begin (Determine BUG).

Determine BUT

Dolibarr ERP/CRM prerequisite check passed and ready to go.
Prerequisite take a look at handed and able to go.

On the configuration web page (SIZE), it is advisable configure the database choices. In our set up, the database identify is dolibarr, the consumer is dolibarr and the password is what you set within the MariaDB console. You’ll additionally need to scroll to the underside of that web page, create a premium consumer account, after which click on Subsequent Step.

SIZE

Dolibarr web-based configuration page.
Dolibarr web-based configuration web page.

When prompted, click on Subsequent Step once more to launch the set up. This step will take some time to finish, because it has to populate the database and save the configuration choices you chose. As soon as this course of is over, you possibly can log in to Dolibarr together with your superuser account and begin utilizing your new ERP/CRM options.

Earlier than you full the set up of Dolibarr, you’ll want to add an set up lock file to forestall anybody from maliciously utilizing the set up software. To try this, challenge the command:

sudo contact /var/www/html/dolibarr/paperwork/set up.lock

Congratulations on taking your enterprise to the following stage of effectivity.

Subscribe to TechRepublic’s The way to make expertise work on YouTube for all the most recent tech recommendation for enterprise professionals from Jack Wallen.