How to Create a Website with Dolibarr ERP Software

How to Create a Website with Dolibarr ERP Software Hero Image

Dolibarr is an open-source customer relationship management (CRM) and Enterprise Resource Planning (ERP) software that can manage every aspect of your business processes: 

Dolibarr is available for easy installation via the Softaculous Instant Installer.

A business looking to get the most from the ERP software can develop a website with the content management system (CMS), or Websites, Dolibarr module. This allows you to easily integrate data into a public-facing website via MySQL and PHP. It also eliminates the need to install and manage another CMS which would require more web server resources and time to configure.

Below we’ll cover how to:

Secure VPS HostingEnjoy high-performance, lightning-fast servers with increased security and maximum up-time with our Secure VPS Hosting!

check markLinux VPS check markcPanel or Control Web Panel check markScalable check markWebsite Migration Assistance

Linux VPS Hosting

Enable the Websites Dolibarr Module

Enable the Dolibarr Websites module
  1. Log into Dolibarr.
  2. On the left, under Setup, select Modules/Applications.
  3. At the bottom, under Websites and other frontal application, select the slider icon under WEBSITES. You’ll now see a Websites button in the upper-left corner with Home and Tools.

Add a Website in Dolibarr ERP Software

  1. At the top, select Websites.
  2. In the upper-left corner, select the drop-down menu and select + Add Website.
  3. Add a name for the website. This can be a domain name (e.g. example.com) or subdirectory for a subdomain (e.g. “site” for site.dolibarr.com). This will become the directory name for your website files. You’ll later connect this directory to an addon domain or subdomain for public access.
  4. Specify the primary language. You can add additional languages with the two-letter abbreviation divided by a comma (you can get this from the main language drop-down menu).
  5. Add what will later become the final URL for the website in the Virtualhost text box.
  6. Select Create. You’ll be redirected to a blank page to start developing your website.
Blank Website in Dolibarr ERP Software

Create a Dolibarr Website

There three ways to develop a website with the Dolibarr ERP software:

  • Build it from scratch with HTML, CSS, JavaScript, and PHP
  • Import a live website via URL to acquire a template to build on
  • Import a website template from the Dolibarr marketplace – DoliStore

We’re going to cover building a website from a free template available from DoliStore.com.

  1. Download Corporate web site template 11.0 to your computer. At the time of initially creating this guide, this is the only free template available from the website. You may find more through unofficial sources but you do so at your own risk.
  2. In your Dolibarr dashboard, select Import website template.
  3. Select Browse… and select the zip file from your computer.
  4. Select Upload. If this works, continue to Develop Your Dolibarr Website.
  5. If that doesn’t work (e.g. “file size is too large”), there are two options.
    1. Change your upload settings in Home > Security > Files (Upload) from 2048 KB (2.048 MB) to 5000 KB (5MB) or 10240 KB (10.24 MB). Then increase your upload_max_filesize in MultiPHP INI Editor (recommended for cPanel users) or directly in the PHP.ini. Managed VPS/Dedicated server administrators may need to check the phpinfo.php file to determine if there’s a need to modify the master value. Then repeat step 4.
    2. Upload the file manually. To do so, hover your cursor over the ? beside Templates for your skins directory. By default, it should be doctemplates/websites. This file path will be in your private Dolibarr data subdirectory. If you used the default Softaculous installation settings, this will be /dolibarrdata
  6. Upload the template file to your /doctemplates/websites directory. 
  7. When you refresh the Dolibarr page, you’ll see the template file listed under Templates. Click Load. You’ll be redirected to the website editing page.
Corporate Website Example in Dolibarr ERP Software

Develop Your Dolibarr Website

At this point, you’ll likely first want to know how to customize the website code (Edit HTML Source link) and preview the website in a new tab (binoculars button on the right). 

If you preview your page and only see text and unstyled buttons, it is probably the result of your Content Security Policy (CSP) HTTP header. Use the browser Inspect Element console to determine what needs to be whitelisted. In the screenshot below,  “https://cdnjs.cloudflare.com/ajax/libs/font-awesome/” needs to be whitelisted in style-src and font-src.

Dolibarr website preview with Content Security Policy errors in browser console

We won’t discuss coding but you can learn about web design and development within our Support Center. If you have specific questions about developing your Dolibarr website, check out our Community Forum.

Configure Your Dolibarr Website for Public Visibility

For info on showing your website publicly, select Test/deploy on web in the upper-right corner of your ERP software. A pop-up will share the info you’ll need to publish it with the URL (Virtualhost) at the top.

Configuring cPanel Servers

  1. On cPanel-managed servers, create a subdomain or addon domain connected to your website directory. If you used default Softaculous installation settings, the document root should be /dolibarrdata/website/WebsiteName (replacing “WebsiteName” with your specified name).
  2. Check your website in a private browsing session.
  3. If your website doesn’t work, you’ll need to edit some file permissions. Edit the .htaccess file in your /dolibarrdata directory.
  4. Comment out the two lines to disable usage:
    # Order allow,deny 
    # Deny from all

    For better security, you can add Options -Indexes to the bottom of the file. Users needing more privacy can make changes with the IP Deny Manager.

  5. Save your changes.
  6. Try viewing your website again. If anything doesn’t work, check your server logs in SSH or WebHost Manager (WHM) Terminal as user root for more information (replacing “WebsiteName” with your specific website directory):
    cat /var/log/apache2/error_log | grep WebsiteName
Public Corporate Website Example in Dolibarr ERP Software

Once your website is operational, upload a favicon.ico file to the website directory since this isn’t done automatically. You can use the free GIMP desktop application to create a favicon.

Configuring Unmanaged Servers

For unmanaged Linux servers, you’ll need to check your web server documentation (e.g. Apache, NGINX, etc.) for more information on modifying vhost files. The Dolibarr pop-up window shows required file and directory permissions.

Learn more about improving your business with our Managed VPS Hosting Product Guide.

InMotion Hosting Contributor
InMotion Hosting Contributor Content Writer

InMotion Hosting contributors are highly knowledgeable individuals who create relevant content on new trends and troubleshooting techniques to help you achieve your online goals!

More Articles by InMotion Hosting

4 thoughts on “How to Create a Website with Dolibarr ERP Software

  1. How do I enable SSL on sites created by dolibarr? Either it presents SSL certificate of the main dolibarr or ssl cert is presented which doesn’t match the Domain name created under modules/website
    Apache is configured correctly with the virtual host and shows the proper SSL certificate until I change the directive to read the website hosted under to the dolibarr web module folder.

      1. We are happy to help you further but would need some additional information such as a link to your site and steps to replicate the issues.

Was this article helpful? Join the conversation!