- You have Windows 10 Pro (if not buy it!)
- Git installed on Windows
sh
installed on Windows and added to the PATH (C:\Program Files\Git\bin
)- Docker installed on Windows
- DDEV installed on Windows
Press WIN
+ X
then A
-
mkdir <projectname>
-
cd <projectname>
-
ddev config --project-type php --php-version 7.2 --docroot public --create-docroot
-
ddev start
-
ddev auth ssh
Note: You may need to restart Docker on Windows if you are getting an error, after restarting Docker the problem should not occur anymore. Simply restart the command.
Example:
ERROR: for ddev-project-db Cannot start service db: driver failed programming external connectivity on endpoint ddev-project-db (7044e9fd1a97d702155ca50b7a706704e9e5afa38c075a3b25a5e5edd6279b7b): Error starting userland proxy: mkdir /port/tcp:0.0.0.0:32859:tcp:172.18.0.9:3306: input/output error
-
Open frontend with urls shown in commandline. The format is always
http://<projectname>.ddev.local
Note: The hosts file on windows can only contain a certain amount of hosts per line, if the provided url cannot be resolved please break the automaticly added hostnames into multiple lines. The hosts file is usually located in
C:\Windows\System32\drivers\etc\hosts
Before
127.0.0.1 project1.ddev.local project2.ddev.local
After
127.0.0.1 project1.ddev.local 127.0.0.1 project2.ddev.local
ddev composer init --name vendorname/project --type project
ddev composer config bin-dir bin
ddev composer require typo3/cms-about typo3/cms-adminpanel typo3/cms-backend typo3/cms-belog typo3/cms-beuser typo3/cms-core typo3/cms-extbase typo3/cms-extensionmanager typo3/cms-feedit typo3/cms-felogin typo3/cms-filelist typo3/cms-filemetadata typo3/cms-fluid typo3/cms-fluid-styled-content typo3/cms-form typo3/cms-frontend typo3/cms-impexp typo3/cms-indexed-search typo3/cms-info typo3/cms-install typo3/cms-linkvalidator typo3/cms-lowlevel typo3/cms-opendocs typo3/cms-recordlist typo3/cms-recycler typo3/cms-redirects typo3/cms-reports typo3/cms-rsaauth typo3/cms-rte-ckeditor typo3/cms-scheduler typo3/cms-seo typo3/cms-setup typo3/cms-sys-action typo3/cms-sys-note typo3/cms-t3editor typo3/cms-taskcenter typo3/cms-tstemplate typo3/cms-viewpage typo3/cms-workspaces
Note: this is the full TYPO3 Package you may want to customize it to your own needs. Please check https://get.typo3.org/misc/composer/helper.
ddev composer require vlucas/phpdotenv
ddev exec curl https://gist.githubusercontent.com/benjaminkott/04453f795f659b26778f8e3339f725a6/raw/0eded45de81b086b854cfa020ca734aefaba55ba/.env.dist --output .env.dist
ddev exec mkdir public/typo3conf
ddev exec touch public/typo3conf/AdditionalConfiguration.php
ddev exec curl https://gist.githubusercontent.com/benjaminkott/04453f795f659b26778f8e3339f725a6/raw/0eded45de81b086b854cfa020ca734aefaba55ba/AdditionalConfiguration.php --output public/typo3conf/AdditionalConfiguration.php
ddev exec touch public/FIRST_INSTALL
- Open frontend, if you forgot the urls use
ddev describe
to get the hostname - Follow install instructions
ddev exec bin/typo3 extension:activate filemetadata
ddev exec bin/typo3 extension:activate indexed_search
ddev exec bin/typo3 extension:activate recycler
ddev exec bin/typo3 extension:activate scheduler
ddev exec bin/typo3 extension:deactivate sys_note
ddev composer require bk2k/bootstrap-package
ddev exec vendor/typo3/cms-cli/typo3 extension:deactivate fluid_styled_content
ddev exec vendor/typo3/cms-cli/typo3 extension:activate bootstrap_package
For further customizing we need to create a Sitepackage to have a deployable package with all additional configuration and assets included.
Sitepackages for the Bootstrap Package can be easily generated by heading to https://sitepackagebuilder.com
.
- Select Version
9.5
- Select
Bootstrap Package
as Base - Fill out the other form fields required and click
Create Sitepackage
ddev exec mkdir extensions
ddev exec mkdir extensions/<sitepackagename>
- Extract sitepackage into this directory
ddev composer config repositories.extensions path extensions/*
ddev composer require <vendor>/<packagename>
Note: The package name can be cound in the composer.json in the directory you just extractedddev exec curl https://gist.githubusercontent.com/ohader/f4b792e0bb99e79efe75605008ce4a0d/raw/89119a77ade100f92b4775c2b2d62dc1c6d63166/use-native-symlinks.bat --output file-use-native-symlinks.bat
.\file-use-native-symlinks.bat
ddev exec bin/typo3 extension:activate <sitepackagename>
- Create Page on Rootpage
- Edit Page and set the following options
Behaviour > Miscellaneous > Use as Root Page = true Access > Visibility > Page visible = true
- Go to
Template
Module - Select the Root Page you just created
- Create template for a new site -> Save
- Select
Info/Modify
in document header dropdown - Click
Edit the whole template record
and set the following optionsGeneral > Website Title -> Set the string that should be displayed in the title after the name of the current page General > Setup -> Clear this field, it should be empty Includes > Include static (from extensions) -> only include the tempalte from the Sitepackage you created
- Go to
Sites
Module - Click
Add new site configuration for this site
and set the following optionsGeneral > Site Identifier = <sitepackagename> General > Entry Point -> set the frontend url Languages -> Configure the languages as reuired