Installing TYPO3 with DDEV¶
This is a step-by-step guide detailing how to install TYPO3 using DDEV, Docker and Composer.
DDEV is used for local development only.
Install Docker - Visit docker.com to download and install the recommended version of Docker for your operating system.
Install DDEV - Follow the DDEV installation guide to install DDEV.
DDEV and Docker need to be installed on your local machine before TYPO3 can be installed. If you need help installing DDEV, support can be found on the DDEV Discord server.
Create the Installation Directory¶
Create an empty directory to install TYPO3 in and then change into that directory:
mkdir t3example cd t3example
Create a new DDEV Project¶
ddev config command will prompt for information about your project. TYPO3 is in the list
of preconfigured projects.
ddev config # Give the following answers when prompted: Project name (t3example): Docroot Location (current directory): public Create docroot at /home/myuser/projects/t3/t3example/public? [Y/n] (yes): Y Project Type [php, typo3, ...] (php): typo3
Should always be "typo3"
Is the folder in which all files that have to be reached by the browser. This folder is commonly called
As the directory does not exist yet, this allows DDEV to create it for you.
Alternatively you can skip the prompt by supplying all of the required parameters in a single command:
ddev config --project-type=typo3 --docroot=public --create-docroot
Start the project¶
The webserver is now running but TYPO3 is not installed.
ddev composer create "typo3/cms-base-distribution:^11"
As we just created the project and have no, answer yes when prompted if it is ok to overwrite files in this directory.
You now have a Composer-based TYPO3 installation.
Run the Installation Setup Tool¶
Via the Console¶
ddev typo3cms install:setup
When prompted enter a username and password for you main admin user (they will also be a system maintainer).
Enter a name for the site that will be displayed in the backend.
You can set up a basic site
site displaying "Hello World"
or have an empty installation by selecting
Via the GUI:¶
Create a file called
FIRST_INSTALL in your webroot
ddev exec touch public/FIRST_INSTALL
Open the installer
ddev launch typo3/install.php
Go to the TYPO3 backend:
ddev launch typo3
And login with the credentials you just provided.
Managing the Database¶
ddev config DDEV automatically created a database for
you. DDEV also created a file called
in which it stored the database credentials for you.
During the installation setup process TYPO3 created all the tables it needed. If you want to have a look at the database, you can run the following command:
ddev launch -p
to fake sending mails. You can see what mails have been sent here:
ddev launch -m
Stopping a DDEV Instance¶
If you want to stop all projects from running you can call:
The projects will stay configured and databases will be persisted.
Deleting a DDEV Instance¶
If you want to delete the project you just created you can remove it by calling the following command in your new projects root folder:
ddev delete --omit-snapshot
This will remove all containers from the project and delete the database.
Afterwards you can safely delete the project's root folder.