Table of Contents
-
Introduction
-
Why You Should Keep Dolibarr Up to Date
-
Understanding Dolibarr’s Release Cycle
-
Checking Your Current Dolibarr Version
-
Pre-Update Considerations
-
Backing Up Your Installation
-
Evaluating Customizations and Compatibility
-
Preparing a Staging Environment
-
Choosing the Right Update Method
-
Method 1: Manual Update via File Replacement
-
Method 2: Using Git for Updates
-
Method 3: Using Softaculous or Installer Tools
-
Running the Dolibarr Update Wizard
-
Common Errors During Update and How to Fix Them
-
Verifying Database Schema and Integrity
-
Post-Update Configuration Steps
-
Updating Custom Modules and Themes
-
Testing After the Update
-
Keeping Track of Future Updates
-
Conclusion
1. Introduction
Dolibarr is an open-source ERP/CRM solution used by businesses around the world. As with any software platform, staying on the latest version is critical for accessing new features, improved performance, bug fixes, and security enhancements. This guide walks you through every step of updating your Dolibarr installation to the latest stable version, whether you're running a small business instance or a large-scale deployment.
2. Why You Should Keep Dolibarr Up to Date
-
Security: Patches close vulnerabilities that may expose data.
-
Features: New versions include expanded capabilities.
-
Compatibility: Updated integrations and libraries ensure ongoing support.
-
Bug Fixes: Critical fixes are bundled in every new release.
-
Community Support: Most forums and developers refer to the latest version.
Running outdated versions risks data loss, feature limitations, and integration failures.
3. Understanding Dolibarr’s Release Cycle
Dolibarr follows a predictable versioning pattern:
-
Major versions (e.g., 17.0.0) bring structural changes.
-
Minor updates (e.g., 17.0.3) include bug fixes and patches.
New stable versions are released roughly every 6 to 12 months. Stay informed via www.dolibarr.org or GitHub.
4. Checking Your Current Dolibarr Version
Log in as an admin and go to Home > About Dolibarr. You’ll find the installed version and build details. Alternatively, check the top of the htdocs/filefunc.inc.php
file for the $dolibarr_version
variable.
5. Pre-Update Considerations
Before proceeding:
-
Review release notes to understand changes
-
List custom modules and overrides you’ve implemented
-
Confirm server requirements match the new version (PHP, MySQL, etc.)
-
Notify users about potential downtime
Treat updates with the same seriousness as system migrations.
6. Backing Up Your Installation
Always backup:
-
Database using
mysqldump
or your control panel -
Files and directories, especially:
-
/htdocs/
-
/documents/
-
/conf/
-
Example command:
mysqldump -u root -p dolibarr_db > dolibarr_backup.sql
zip -r dolibarr_files.zip /var/www/html/dolibarr/
Store backups securely and verify they can be restored.
7. Evaluating Customizations and Compatibility
-
Review any modified files under
/core/
or module folders -
Test if custom modules are compatible with the new version
-
Consider using the
/custom/
directory to avoid conflicts -
Check community forums for known issues with third-party themes or modules
8. Preparing a Staging Environment
Best practice is to:
-
Clone your live site to a staging server
-
Perform the update there first
-
Validate all workflows and integrations
This minimizes risk and allows full testing before affecting production.
9. Choosing the Right Update Method
You can update Dolibarr via:
-
Manual file replacement (recommended for most users)
-
Git repository (for developers and contributors)
-
Softaculous/Installatron (if installed via cPanel)
The method depends on how you originally installed Dolibarr.
10. Method 1: Manual Update via File Replacement
-
Download the latest stable version from www.dolibarr.org
-
Extract the archive to a temporary folder
-
Delete these folders in your old instance:
-
/htdocs
-
(except
/documents
and/conf
)
-
-
Copy the new
/htdocs
files over the old location -
Retain
/documents/
and/conf/
-
Browse to
http://yourdomain/install/
Follow the wizard to complete the update.
11. Method 2: Using Git for Updates
If you cloned Dolibarr from GitHub:
cd /var/www/dolibarr
git pull origin develop
Then run:
php htdocs/install/upgrade.php
Ensure you switch to a tagged release or stable branch before deployment.
12. Method 3: Using Softaculous or Installer Tools
If Dolibarr was installed via Softaculous:
-
Log into cPanel > Softaculous
-
Locate Dolibarr and click Upgrade
-
Follow the prompts
Note: Softaculous may delay support for the latest versions. Manual backups are still essential.
13. Running the Dolibarr Update Wizard
After file replacement:
-
Navigate to
/install/
-
The update wizard will detect your previous version
-
Run the upgrade script step-by-step
-
Remove or rename the
/install/
directory when finished
Monitor for any schema changes or alerts.
14. Common Errors During Update and How to Fix Them
Blank page after update:
-
Check file permissions
-
Clear cache/browser cookies
Access denied errors:
-
Verify
conf.php
and database credentials
Update wizard not launching:
-
Ensure
/install/
folder is present -
Check
.htaccess
rewrite rules
15. Verifying Database Schema and Integrity
Post-update, verify:
-
All modules are still active
-
Data tables exist and load properly
-
No duplicate or missing rows
Use phpMyAdmin or database admin tools to check table status.
16. Post-Update Configuration Steps
-
Check Setup > Modules to re-enable disabled modules
-
Test PDF generation, email sending, and external integrations
-
Confirm cron jobs are running (for recurring invoices, tasks)
-
Clear browser and Dolibarr caches
17. Updating Custom Modules and Themes
-
Copy updated templates to
/custom/modules/
-
Review changes in core structure that might break themes
-
Test visual elements and layout on all devices
Some third-party modules may require new versions to be compatible.
18. Testing After the Update
Thoroughly test:
-
User logins and permissions
-
Invoice creation and payment recording
-
Product and stock management
-
Custom reports or dashboards
-
API endpoints and webhooks
Validate every core function and business-critical process.
19. Keeping Track of Future Updates
-
Subscribe to Dolibarr newsletters or RSS feeds
-
Follow GitHub releases and changelogs
-
Schedule quarterly review and update cycles
-
Assign update responsibility to an admin or IT team
Stay proactive to ensure performance and security.
20. Conclusion
Updating Dolibarr to its latest version is essential for maintaining a secure, stable, and feature-rich ERP/CRM environment. By following this comprehensive guide—backing up, testing, and verifying every step—you can execute a smooth upgrade that enhances system performance without disrupting your business.