What's the fastest way to install and set up TYPO3 locally?

房东的猫 提交于 2019-12-23 09:39:28

问题


I want to install and set up TYPO3 on my local machine. What's the best practice and fastest way to do so?


回答1:


For running TYPO3 on a local machine you need a web server running on your machine.

This can be done in different ways:

  1. Native Web Server, PHP and database on a Linux based machine
  2. Virtual Machine (VirtualBox, VMWare, Parallels, etc.)
  3. Vagrant
  4. 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.

  1. Install Docker and ddev, see https://ddev.readthedocs.io/en/stable/
  2. Create a folder for your installation, e.g. ~/Websites/my-website/ or C:\Websites\my-website\ and go into it.
  3. Run ddev config and set these three options in the dialog:
    1. Project name (default is your folder name): Whatever you like
    2. Docroot location: public and say yes for creating
    3. Project type: typo3
  4. Run ddev start to start the Docker containers and add your root password to set the hosts entry (for accessing it via local domain)
  5. Run ddev composer create typo3/cms-base-distribution ^9 and say yes for overwriting
  6. Run ddev config again and just hit enter for every dialog to create a file which provides the DB credentials for your TYPO3 installation
  7. 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.local in your browser, in our example it should be http://my-website.ddev.local. To get into the TYPO3 backend you only need to put the credentials admin:password on http://my-website.ddev.local/typo3.

For troubleshooting go to:

  • https://ddev.readthedocs.io/en/stable/users/troubleshooting/
  • https://docs.typo3.org/typo3cms/InstallationGuide/Troubleshooting/Index.html
  • https://docs.typo3.org/typo3cms/ContributionWorkflowGuide/Appendix/SettingUpTypo3Ddev.html


来源:https://stackoverflow.com/questions/55949302/whats-the-fastest-way-to-install-and-set-up-typo3-locally

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!