Installing Dolibarr on Windows with XAMPP

Installing Dolibarr 24 on a Windows PC with XAMPP, tested end to end with XAMPP 8.4 and 8.5: the three PHP extensions XAMPP ships disabled, port 80 already taken, the setup wizard field by field and the install.lock file you must create yourself.

Want someone to look at your instance? Diagnosis, fixed price €90.

Versions concerned
Dolibarr 24.0.3 (official zip), XAMPP for Windows 8.4.27 and 8.5.12 (PHP 8.4.27 and 8.5.12, MariaDB 10.11.16)
What was checked (versions, tests, code read)

Tests on 14-15/11/2026 on Windows Server (GitHub test machines, windows-latest; Windows 10/11 not tested): XAMPP 8.4.27 and 8.5.12 installed with their official installer, shipped php.ini and loaded PHP modules read, Apache and MariaDB run as services, official Dolibarr 24.0.3 zip copied into htdocs, check page before and after enabling the extensions (French, English, German), setup wizard filled in a driven browser (10 s pause on the form), login, access to protected files checked over HTTP, effect of the install.lock file. Port 80 found in use on this machine (IIS) and worked around by moving Apache to 8080. Dolibarr 24.0.3 code read (install/check.php, install/step1.php).

XAMPP installs in one go on a Windows PC everything Dolibarr needs: the Apache web server, PHP and the MariaDB database. It is a simple way to try Dolibarr on your own computer. But as XAMPP ships, Dolibarr complains as soon as its check page, and Apache may refuse to start.

This guide was tested on 14-15 November 2026 on fresh Windows machines (Windows Server, the ones GitHub provides for testing), with XAMPP 8.4.27 and XAMPP 8.5.12 and the official Dolibarr 24.0.3 zip: installation, wizard filled in field by field, login. Both XAMPP versions behave the same way. XAMPP and Dolibarr are the same on Windows 10 and 11, but we did not repeat the test there.

What you need

  • XAMPP for Windows, from apachefriends.org. We tested versions 8.4.27 and 8.5.12 (PHP 8.4 and 8.5, MariaDB 10.11); with either one, Dolibarr 24 shows no warning about the PHP version.
  • Dolibarr, the dolibarr-24.0.3.zip file from the official download page (dolibarr.org).

Dolibarr also publishes DoliWamp, an all-in-one Windows installer (version 24.0.3 released on 10/11/2026). This guide did not test it: it is about XAMPP.

1. Install XAMPP

Run the installer and keep the suggested folder, C:\xampp. All paths in this guide start from there. Then open the control panel (C:\xampp\xampp-control.exe) and start Apache and MySQL.

If Apache does not start: port 80 is already taken

Apache needs port 80, and another program sometimes already holds it. That was the case on our test machine: Apache could not start, with this message from Apache:

(OS 10013)An attempt was made to access a socket in a way forbidden by its access permissions.
: AH00072: make_sock: could not bind to address 0.0.0.0:80
AH00451: no listening sockets available, shutting down

To find out what holds it, type in a command prompt:

netstat -ano | findstr ":80"

The last column gives the program number (PID). For us it was PID 4 (“System”), that is IIS, the Windows web server (“World Wide Web Publishing Service”).

The tested fix: make Apache listen on another port. Open C:\xampp\apache\conf\httpd.conf in Notepad and replace these two lines:

Original line Replace with
Listen 80 Listen 8080
ServerName localhost:80 ServerName localhost:8080

Save and restart Apache. Every address in this guide then takes :8080, for example http://localhost:8080/dolibarr/htdocs/. That is how our tests were run.

2. Enable three PHP extensions

This setting concerns everyone. The C:\xampp\php\php.ini file shipped with XAMPP 8.4 and 8.5 leaves three extensions that Dolibarr checks disabled: gd, intl and zip. Without them, the Dolibarr check page shows:

Dolibarr 24.0.3 check page under XAMPP: “Your PHP installation does not support functions GD, Intl, ZIP”

Open C:\xampp\php\php.ini in Notepad, find these three lines and remove the semicolon at the start:

In the shipped php.ini After the fix
;extension=gd extension=gd
;extension=intl extension=intl
;extension=zip extension=zip

In the same file, XAMPP sets the time zone to Germany: date.timezone=Europe/Berlin. Put yours, for example date.timezone=Europe/London.

Save, then stop and start Apache again: PHP only reads its file at startup. After that, the Dolibarr check page says “This PHP supports MBString, JSON, GD, Curl, Calendar, Xml, UTF8, Intl, ZIP functions”.

3. Copy Dolibarr

Unzip dolibarr-24.0.3.zip into C:\xampp\htdocs. You get a dolibarr-24.0.3 folder; rename it dolibarr. It contains in particular htdocs, the program. The documents folder, which will receive your files, is created by the installation.

Dolibarr is then at http://localhost/dolibarr/htdocs/ (or http://localhost:8080/dolibarr/htdocs/ if you changed the port).

4. The setup wizard

Open http://localhost/dolibarr/htdocs/install/. Choose the language, check that the check page no longer shows a warning, then click Start next to “Fresh install”.

On the settings page, Dolibarr suggests the right paths by itself:

Field Suggested value
Directory where web pages are stored C:/xampp/htdocs/dolibarr/htdocs
Directory to store uploaded and generated documents C:/xampp/htdocs/dolibarr/documents
URL Root http://localhost/dolibarr/htdocs
PHP Database Driver mysqli (MySQL or MariaDB >= 5.0.3)
Database server localhost

Next to the documents folder, Dolibarr points out that a directory outside the web pages is better, yet the value it suggests under XAMPP is inside them. We kept it and checked that it stays protected (see “What about security?” below).

The rest is to fill in:

  • Database name: dolibarr;
  • Login and Password of the database owner: for example dolibarr and a password of your choice (this is the account Dolibarr will use afterwards);
  • tick Create database and Create user account or grant user account permission on the Dolibarr database: both boxes are unticked by default;
  • Database server - Superuser access: login root, password empty. The MariaDB root account in XAMPP has no password; Dolibarr accepts it, while noting it is “NOT recommended”.

Click Next step: Dolibarr writes its configuration file, creates the database and its owner, then the tables. Finally choose the login and password of the Dolibarr administrator. The last screen confirms “This installation is complete.” and leads to the setup area.

5. Create the install.lock file

At the end, Dolibarr asks you to create an install.lock file for security reasons. It does not create it itself: checked after installation, the file did not exist and the install pages still answered, open to anyone who can reach your Dolibarr.

Create an empty file named exactly install.lock in C:\xampp\htdocs\dolibarr\documents. In Explorer, make sure it is not called install.lock.txt (show file name extensions). In a command prompt:

type nul > C:\xampp\htdocs\dolibarr\documents\install.lock

Tested: afterwards, every install page answers “The install/upgrade pages have been disabled for security (by the existence of a lock file install.lock in the dolibarr documents directory)”. For a future upgrade, you just remove it for the duration of the upgrade. More details: the install.lock file.

What about security?

The documents folder sits inside htdocs, so within reach of the web server. Dolibarr puts an .htaccess file in it that forbids access, and XAMPP honours it: on both our installations, a file placed in documents and the conf.php file both answered “403 Forbidden”.

Still, XAMPP is made for trying Dolibarr on one computer: root without a password, no automatic backup, and the PC must stay on for others to reach it. For a Dolibarr used every day by several people, a server is safer: on Ubuntu or Debian or with Docker Compose.

Common problems

What you see Verified cause What to do
“Your PHP installation does not support functions GD, Intl, ZIP” extensions disabled in XAMPP’s php.ini remove the ; before extension=gd, intl, zip, restart Apache
Apache does not start, “could not bind to address 0.0.0.0:80” port 80 in use (for us: IIS, PID 4) Listen 8080 and ServerName localhost:8080 in httpd.conf
The install pages still open after installation no install.lock file create it in documents

Summary

  1. Install XAMPP in C:\xampp, start Apache and MySQL (port 8080 if 80 is taken).
  2. In C:\xampp\php\php.ini: enable gd, intl, zip, set date.timezone, restart Apache.
  3. Unzip Dolibarr into C:\xampp\htdocs\dolibarr.
  4. Open /dolibarr/htdocs/install/, tick both creation boxes, root without a password.
  5. Create documents\install.lock.

Next

Once logged in, fill in your company and enable the modules you need. To keep your data: backing up and restoring Dolibarr. To move to a new version later: upgrading Dolibarr.

If your installation still gets stuck, the €90 diagnosis means looking at your situation with you for an hour, then giving you in writing what is blocking and how to fix it.

Frequently asked questions

Why does Dolibarr say "Your PHP installation does not support functions GD, Intl, ZIP" under XAMPP?

Because the php.ini shipped with XAMPP 8.4 and 8.5 leaves these three extensions disabled (lines ;extension=gd, ;extension=intl and ;extension=zip). Open C:\xampp\php\php.ini, remove the semicolon at the start of these three lines, save and restart Apache. Tested on 15/11/2026: the Dolibarr 24.0.3 check page no longer shows a warning.

Apache will not start in XAMPP: what can I do?

A cause seen on our test machine: port 80 was already in use, by IIS (PID 4, "System"). In a command prompt, netstat -ano | findstr ":80" shows what is listening. The tested fix: in C:\xampp\apache\conf\httpd.conf, replace Listen 80 with Listen 8080 and ServerName localhost:80 with ServerName localhost:8080, then open Dolibarr at http://localhost:8080/dolibarr/htdocs/.

Do I need to create the install.lock file after installing Dolibarr with XAMPP?

Yes. The Dolibarr 24.0.3 installation does not create it: at the end, the install pages are still reachable. Create an empty file named install.lock in the documents folder (C:\xampp\htdocs\dolibarr\documents with the settings in this guide). Tested: afterwards, the install pages say they are disabled.

DolibarrXAMPPWindowsinstallationinstalllocalhostphp.iniintlgdzipport 80install.lock

Did this guide help you?

A question about this guide, or a step that does not go as expected on your side? Write to support@dolix.fr.