Has anyone successfully set up Dolibarr inside DDEV?

We are trying to install Dolibarr on both macOS and Ubuntu 22.04 LTS within DDEV and can’t get the Dolibarr conf.php file to generate because it’s not seeing the database (called db) or root user (username db with pass db). Anyone get past this? Able to set up several Drupal instances in the same manner without issue.

Even tried setting up Dolibarr the standard way you would with a LAMP stack on a server and hosted out of /var/www/html, exported the db from mqsql and tried to import into ddev and got the same error.

Tried to manually program the config and still had the same error with the installer.

Using 17.0.1.

Hello,

Yes I have successfully installed Dolibarr version 17using DDEV, these are the steps I’ve made:

I’am using php8.1 and Apache as my web server because I 've faced some errors With NGINX and RestAPI module.

Hope this helps you.

Kind Regards.

1 Like

DDEV is really great for setting up a Dolibarr environment for developing on Windows, I have done the following

ddev dolibarr

In the windows command prompt

wsl
cd ~
mkdir doli
cd doli
ddev config --php-version=8.1 --database=mysql:8.0 --webserver-type=apache-fpm --timezone=Asia/Tokyo --omit-containers=dba

Note: I omit the dba database administration, which I believe is phpadmin, because I prefer to use heidiSQL, which you can easily call via ddev heidisql.

git clone git@github.com:Dolibarr/dolibarr.git
nano .ddev/config.yaml

line 3 docroot is empty “” change as below and remove the “”

docroot: dolibarr/htdocs
ddev start
ddev mysql -e "CREATE DATABASE IF NOT EXISTS dolibarr CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci; GRANT ALL PRIVILEGES ON dolibarr.* TO 'db'@'%'; FLUSH PRIVILEGES;"

ddev launch

or browser to url https://doli.ddev.site and you are automatically redirected to http://doli.ddev.site/install/index.php

  • Database host: db
  • Database name: dolibarr
  • Database user: db
  • Database password: db