How it helps your business
Key Benefits
- Extreme Modularity: The UI remains clean and fast because you only activate the specific business units you actually use.
- Unified Data Model: Quoting a prospect inherently links to inventory stock levels, which inherently generates accounting ledger entries, eliminating data silos.
- Low-Code Customization: The "Module Builder" allows non-developers to click together custom database tables, API endpoints, and UI screens for unique business requirements.
- Easy Upgrades: Dolibarr is famous for its painless upgrade paths. Migrating from version N to N+1 rarely breaks the system, a common pain point in open-source ERPs.
Production Architecture Overview
- Web Server: Apache or Nginx.
- Language Environment: PHP. The codebase is heavily optimized for compatibility, running smoothly on older PHP versions but supporting the latest PHP 8.x releases for maximum execution speed.
- Relational Database: MySQL, MariaDB, or PostgreSQL. This database is the absolute heart of the company; it requires rigorous backup strategies.
- Storage: Local or external storage mounts for housing generated PDF documents (Invoices, Quotes) and uploaded attachments.
How we deploy this for you
Security Hardened
Firewalls, SSL, and hardened kernels out of the box.
Performance Tuned
Optimized for speed with cache and DB fine-tuning.
Automated Backups
Daily off-site backups so you never lose your data.
Private Cloud
You own the server and the data. No middleman.
Implementation Blueprint
Prerequisites
sudo apt update && sudo apt upgrade -y
# Install Apache, MariaDB, and PHP
sudo apt install apache2 mariadb-server php libapache2-mod-php php-mysql php-curl php-gd php-intl php-mbstring php-xml php-zip unzip -yDatabase Provisioning
sudo mysql -u root
CREATE DATABASE dolibarrdb CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;
CREATE USER 'dolibarruser'@'localhost' IDENTIFIED BY 'highly_secure_erp_password';
GRANT ALL PRIVILEGES ON dolibarrdb.* TO 'dolibarruser'@'localhost';
FLUSH PRIVILEGES;
EXIT;Application Installation
cd /tmp
wget https://github.com/Dolibarr/dolibarr/archive/refs/tags/20.0.0.zip -O dolibarr.zip
unzip dolibarr.zip
# The actual web application is inside the htdocs/ folder
sudo mv dolibarr-20.0.0/htdocs /var/www/html/dolibarr
# Dolibarr securely stores generated PDFs in a separate, non-web-accessible folder
sudo mkdir /var/www/dolibarr_documents
# Set permissions
sudo chown -R www-data:www-data /var/www/html/dolibarr
sudo chown -R www-data:www-data /var/www/dolibarr_documents
sudo chmod -R 755 /var/www/html/dolibarrConfiguring the Web Server (Apache)
/etc/apache2/sites-available/dolibarr.conf<VirtualHost *:80>
ServerName erp.mycompany.com
DocumentRoot /var/www/html/dolibarr
<Directory /var/www/html/dolibarr>
Options FollowSymLinks
AllowOverride All
Require all granted
</Directory>
ErrorLog ${APACHE_LOG_DIR}/dolibarr_error.log
CustomLog ${APACHE_LOG_DIR}/dolibarr_access.log combined
</VirtualHost>sudo a2ensite dolibarr.conf
sudo a2enmod rewrite
sudo systemctl restart apache2The Web Installation Process
- Navigate to
http://erp.mycompany.comin a browser. - The installation wizard will check PHP prerequisites.
- Configure the directory paths:
- Web directory:
/var/www/html/dolibarr - Document directory:
/var/www/dolibarr_documents(crucial for security)
- Enter the database credentials (
dolibarrdb,dolibarruser). - Set up the SuperAdmin username and password.
Security Locking
sudo chmod 400 /var/www/html/dolibarr/conf/conf.phpinstall.lock file in the document root to completely disable the web installer route.sudo touch /var/www/dolibarr_documents/install.lockModule Deployment Strategy
Scheduled Tasks (Cron)
sudo crontab -e -u www-data*/5 * * * * /usr/bin/php /var/www/html/dolibarr/scripts/cron/cron_run_jobs.php securekey=YOUR_CRON_SECURITY_KEY_FROM_UI_HERE admin > /dev/null 2>&1Includes Security & performance standards
Best place to host Dolibarr ERP CRM
We recommend Hostinger for its reliability and low cost. It's the perfect home for your new apps, featuring easy setup and 24/7 support.
Get Started on Hostinger