Skip to content

DDEV: Project setup

ddev config

Customize

.ddev/config.yaml

php_version: "8.3"
webserver_type: apache-fpm
database:
    type: mariadb
    version: "10.5"
timezone: Europe/Rome
webimage_extra_packages: [php-ast]

.ddev/php/99-custom.ini

; Custom php configuration

; Log all errors
error_reporting = E_ALL
; But do not display them in the frontend
display_errors = Off

.ddev/docker-compose.mounts.yaml

  • Note: make sure the directory p exists in the home path.
services:
  web:
    volumes:
      - type: bind
        # source = path on host
        source: $HOME/p
        # target = path in container
        target: $HOME/p