问题描述
我想在本地计算机上安装并设置TYPO3。最佳做法和最快方法是什么?
I want to install and set up TYPO3 on my local machine. What's the best practice and fastest way to do so?
推荐答案
要在本地计算机上运行TYPO3,您需要运行Web服务器您的机器。
For running TYPO3 on a local machine you need a web server running on your machine.
这可以通过不同的方式完成:
This can be done in different ways:
- 本地网站基于Linux的计算机上的服务器,PHP和数据库
- 虚拟机(VirtualBox,VMWare,Parallels等)
- Vagrant
- Docker
- Native Web Server, PHP and database on a Linux based machine
- Virtual Machine (VirtualBox, VMWare, Parallels, etc.)
- Vagrant
- Docker
在我看来,当前非超级用户最快的方法是ddev。
ddev是一种用户友好的方法,可以在docker base上为TYPO3运行完美的环境。它可以在Linux,Mac和Windows(最低版本10,建议使用hyper-v)上运行,并提供了获得最佳体验所需的所有技术。
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.
- 安装Docker和ddev,请参见
- 为您的安装创建一个文件夹,例如
〜/网站/ my-site /
或C:\网站\my-网站\
并进入 - 运行
ddev config
并在对话框中设置以下三个选项:
- 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:
- 项目名称(默认为您的文件夹名称):随便
- Docroot位置:
public
然后说是用于创建 - 项目类型:
typo3
- Project name (default is your folder name): Whatever you like
- Docroot location:
public
and say yes for creating - Project type:
typo3
ddev start
以启动Docker容器并添加您的root密码来设置主机项(用于通过本地域访问) ddev作曲家,创建typo3 / cms-base-distribution ^ 9
并说是以覆盖 ddev config
,然后在每个对话框中都按回车以创建一个文件,该文件为您的TYPO3安装提供数据库凭据 ddev exec供应商/ bin / typo3cms install:setup --no-interaction --admin-user-name = admin --admin-password = password --site-setup-type = site
ddev start
to start the Docker containers and add your root password to set the hosts entry (for accessing it via local domain)ddev composer create typo3/cms-base-distribution ^9
and say yes for overwritingddev config
again and just hit enter for every dialog to create a file which provides the DB credentials for your TYPO3 installationddev exec vendor/bin/typo3cms install:setup --no-interaction --admin-user-name=admin --admin-password=password --site-setup-type=site
仅此而已,您在本地计算机上有一个正在运行的TYPO3实例。
您可以通过在浏览器中使用< project-name> .ddev.local
来访问它,在我们的示例中,它应该为。要进入TYPO3后端,您只需将凭据 admin:password
放在。
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
这篇关于在本地安装和设置TYPO3的最快方法是什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!