{"id":14245,"date":"2025-02-13T13:44:30","date_gmt":"2025-02-13T08:14:30","guid":{"rendered":"https:\/\/www.skynats.com\/?p=14245"},"modified":"2025-02-13T13:44:32","modified_gmt":"2025-02-13T08:14:32","slug":"how-to-install-dolibarr-on-ubuntu-24-04","status":"publish","type":"post","link":"https:\/\/www.skynats.com\/blog\/how-to-install-dolibarr-on-ubuntu-24-04\/","title":{"rendered":"How to Install Dolibarr on Ubuntu 24.04"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">Dolibarr is an open-source ERP and CRM solution designed for small and medium-sized businesses (SMBs). It offers a variety of modules to manage sales, purchases, inventory, invoices, accounting, projects, and more. If you&#8217;re looking to Install Dolibarr on Ubuntu 24.04 system, this blog will guide you through the full installation process step by step.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"h-update-system-packages\" style=\"font-size:18px\"><strong>Update System Packages<\/strong><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">First, update the system\u2019s package list to ensure all installed packages are up to date.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo apt update\nsudo apt upgrade -y<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"h-install-apache-mysql-and-php\" style=\"font-size:18px\"><strong>Install Apache, MySQL, and PHP<\/strong><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Dolibarr requires a web server (like Apache), a database server (like <a href=\"https:\/\/www.mysql.com\/\" target=\"_blank\" rel=\"noopener\">MySQL<\/a> or MariaDB), and PHP to run.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Install Apache<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>apt install apache2 -y<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Install MySQL<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>apt install mysql-server -y<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">You can check if MySQL is running with:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>systemctl status mysql<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Install PHP and Required PHP Extensions<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Dolibarr needs PHP along with certain extensions. Install PHP and necessary extensions with the following command:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>apt install php php-mysqli php-curl php-mbstring php-xml php-zip php-json php-gd php-soap php-ldap -y<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Check your PHP version:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>php -v<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-create-a-database-for-dolibarr\" style=\"font-size:18px\"><strong>Create a Database for Dolibarr<\/strong><\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Now, you need to create a database for Dolibarr in MySQL.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Log into MySQL as the root user:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>mysql -u root -p<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Create a new database for Dolibarr:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>CREATE DATABASE dolibarr;<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Create a new MySQL user for Dolibarr and grant privileges:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>CREATE USER 'dolibarr_user'@'localhost' IDENTIFIED BY 'your_password';\nGRANT ALL PRIVILEGES ON dolibarr.* TO 'dolibarr_user'@'localhost';\nFLUSH PRIVILEGES;\nEXIT;<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-download-and-install-dolibarr\" style=\"font-size:18px\"><strong>Download and Install Dolibarr <\/strong>\u00a0<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Download the latest stable version of Dolibarr from the official website or GitHub.\u00a0 First, navigate to the \/var\/www\/html directory where the web files are stored:\u00a0 cd \/var\/www\/html\u00a0 Download Dolibarr:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>wget https:\/\/github.com\/Dolibarr\/dolibarr\/archive\/refs\/tags\/20.0.2.tar.gz<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Replace the link with the latest version if needed.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Extract the Dolibarr archive:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>tar -xvzf 20.0.2.tar.gz\nmkdir \/var\/www\/html\/dolibarr<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Rename the extracted folder (optional, but recommended for easier access):<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>mv 20.0.2.tar.gz  \/var\/www\/html\/dolibarr\/<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Set the proper permissions for Dolibarr:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>chown -R www-data:www-data \/var\/www\/html\/dolibarr\nchmod -R 755 \/var\/www\/html\/dolibarr<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-configure-apache-for-dolibarr\" style=\"font-size:18px\"><strong>Configure Apache for Dolibarr<\/strong><\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Now, you need to configure Apache to serve Dolibarr.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Create an Apache configuration file for Dolibarr:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo nano \/etc\/apache2\/sites-available\/dolibarr.conf<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Add the following configuration to the file:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&lt;VirtualHost *:80>\n    ServerAdmin webmaster@localhost\n    DocumentRoot \/var\/www\/html\/dolibarr\/htdocs\n    ServerName your_domain_or_IP\n\n    &lt;Directory \/var\/www\/html\/dolibarr\/htdocs>\n        AllowOverride All\n        Require all granted\n    &lt;\/Directory>\n\n    ErrorLog ${APACHE_LOG_DIR}\/error.log\n    CustomLog ${APACHE_LOG_DIR}\/access.log combined\n&lt;\/VirtualHost><\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Replace your_domain_or_IP with the actual domain or IP address of your server.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Enable the site and restart Apache:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>a2ensite dolibarr.conf\nsystemctl restart apache2<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Enable the mod_rewrite module for Apache:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>a2enmod rewrite\nsystemctl restart apache2<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"h-install-dolibarr-via-the-web-interface\" style=\"font-size:18px\"><strong>Install Dolibarr via the Web Interface<\/strong><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">&nbsp;Open a browser and navigate to http:\/\/your_domain_or_IP or http:\/\/localhost\/dolibarr if you&#8217;re on the server directly.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">&nbsp;If you&#8217;re prompted to install Dolibarr, click Start the installation.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">&nbsp;Follow the installation wizard:<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">&nbsp;Language: Choose your preferred language.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">&nbsp;Database Connection: Use the database settings created earlier (database name, user, password).<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">&nbsp;Admin user: Set up the Dolibarr admin user (username, password, etc.).<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Finish Installation<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Once you complete the installation wizard, you can log into Dolibarr with the admin user credentials.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img fetchpriority=\"high\" decoding=\"async\" width=\"1024\" height=\"506\" sizes=\"(max-width: 1024px) 100vw, 1024px\" src=\"https:\/\/www.skynats.com\/blog\/wp-content\/uploads\/2025\/02\/dolibar-1024x506.png\" alt=\"Install Dolibarr\" class=\"wp-image-14246\" srcset=\"https:\/\/www.skynats.com\/blog\/wp-content\/uploads\/2025\/02\/dolibar-1024x506.png 1024w, https:\/\/www.skynats.com\/blog\/wp-content\/uploads\/2025\/02\/dolibar-300x148.png 300w, https:\/\/www.skynats.com\/blog\/wp-content\/uploads\/2025\/02\/dolibar-768x380.png 768w, https:\/\/www.skynats.com\/blog\/wp-content\/uploads\/2025\/02\/dolibar.png 1119w\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">If you encounter any issues while trying to install Dolibarr on Ubuntu 24.04 or need further assistance, feel free to contact our <a href=\"https:\/\/www.skynats.com\/blog\/\">support team<\/a>. We&#8217;re here to help ensure a smooth installation process and provide expert guidance. Reach out today!<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><br><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Dolibarr is an open-source ERP and CRM solution designed for small and medium-sized businesses (SMBs). It offers a variety of modules to manage sales, purchases, inventory, invoices, accounting, projects, and more. If you&#8217;re looking to Install Dolibarr on Ubuntu 24.04 system, this blog will guide you through the full installation process step by step. Update [&hellip;]<\/p>\n","protected":false},"author":12,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[5],"tags":[965],"class_list":["post-14245","post","type-post","status-publish","format-standard","hentry","category-blog","tag-install-dolibarr-on-ubuntu-24-04"],"_links":{"self":[{"href":"https:\/\/www.skynats.com\/blog\/wp-json\/wp\/v2\/posts\/14245","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.skynats.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.skynats.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.skynats.com\/blog\/wp-json\/wp\/v2\/users\/12"}],"replies":[{"embeddable":true,"href":"https:\/\/www.skynats.com\/blog\/wp-json\/wp\/v2\/comments?post=14245"}],"version-history":[{"count":0,"href":"https:\/\/www.skynats.com\/blog\/wp-json\/wp\/v2\/posts\/14245\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.skynats.com\/blog\/wp-json\/wp\/v2\/media?parent=14245"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.skynats.com\/blog\/wp-json\/wp\/v2\/categories?post=14245"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.skynats.com\/blog\/wp-json\/wp\/v2\/tags?post=14245"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}