I want to install and set up TYPO3 on my local machine. What's the best practice and fastest way to do so?
For running TYPO3 on a local machine you need a web server running on your machine.
This can be done in different ways:
- Native Web Server, PHP and database on a Linux based machine
- Virtual Machine (VirtualBox, VMWare, Parallels, etc.)
- Vagrant
- Docker
Currently the fastest way to a "non power user" in my opinion is ddev. ddev is a user-friendly possibility to run a perfect environment for TYPO3 on a docker base. It runs on Linux, Mac and Windows (minimum version 10, hyper-v recommended) and it brings all technologies you need for best experience.
- Install Docker and ddev, see https://ddev.readthedocs.io/en/stable/
- Create a folder for your installation, e.g.
~/Websites/my-website/
orC:\Websites\my-website\
and go into it. - Run
ddev config
and set these three options in the dialog: - Project name (default is your folder name): Whatever you like
- Docroot location:
public
and say yes for creating - Project type:
typo3
- Run
ddev start
to start the Docker containers and add your root password to set the hosts entry (for accessing it via local domain) - Run
ddev composer create typo3/cms-base-distribution ^9
and say yes for overwriting - Run
ddev config
again and just hit enter for every dialog to create a file which provides the DB credentials for your TYPO3 installation - Run
ddev exec vendor/bin/typo3cms install:setup --no-interaction --admin-user-name=admin --admin-password=password --site-setup-type=site
That's all, you have a running TYPO3 instance on your local machine.
You can access it by using <project-name>.ddev.site
in your browser, in our example it should be http://my-website.ddev.site. To get into the TYPO3 backend you only need to put the credentials admin:password
on http://my-website.ddev.site/typo3.
For troubleshooting go to:
.local
, but in the meantime it changed. –
Photic © 2022 - 2024 — McMap. All rights reserved.