Composer + Distribution Package + helhum/typo3-secure-web 的 TYPO3 设置问题
TYPO3 setup issue with Composer + Distribution Package + helhum/typo3-secure-web
我们遇到了分发包作曲家的问题。我们的目标是实现 DDEV + Composer + Distribution Package + helhum/typo3-secure-web(非常感谢@helhum 如此出色的安全解决方案)。
Problem/Issue
当尝试访问后端时它不起作用,请检查此屏幕截图 https://i.imgur.com/lI5IGCE.png 和 CSS/JS 无法访问,似乎某些目录结构 (private/public) 导致问题。
设置方法
第 1 步:创建项目文件夹
mkdir my-typo3-site
cd my-typo3-site
第 2 步:配置 PHP 版本
ddev config --project-type php --php-version 7.2
第 3 步:设置 TYPO3 最新版本
ddev composer create typo3/cms-base-distribution ^9 --no-interaction
ddev config --project-type typo3
ddev start
第 5 步:Composer.json,设置私人和 public 文件夹
"extra": {
"typo3/cms": {
"root-dir": "private",
"web-dir": "public"
}
}
第 4 步:使用文件夹结构保护您的 TYPO3 private 和 public
ddev composer require helhum/typo3-secure-web
第 5 步:创建 FIRST_INSTALL 文件
touch private/FIRST_INSTALL
第 6 步:TYPO3 安装向导(成功)
作曲家
typo3/cms-base-distribution^9
生成的composer代码
{
"repositories": [
{ "type": "composer", "url": "https://composer.typo3.org/" }
],
"name": "typo3/cms-base-distribution",
"description" : "TYPO3 CMS Base Distribution",
"license": "GPL-2.0-or-later",
"config": {
"platform": {
"php": "7.2"
}
},
"require": {
"helhum/typo3-console": "^5.5.5",
"typo3/minimal": "^9.5",
"typo3/cms-about": "^9.5",
"typo3/cms-adminpanel": "^9.5",
"typo3/cms-belog": "^9.5",
"typo3/cms-beuser": "^9.5",
"typo3/cms-felogin": "^9.5",
"typo3/cms-fluid-styled-content": "^9.5",
"typo3/cms-form": "^9.5",
"typo3/cms-impexp": "^9.5",
"typo3/cms-info": "^9.5",
"typo3/cms-redirects": "^9.5",
"typo3/cms-reports": "^9.5",
"typo3/cms-rte-ckeditor": "^9.5",
"typo3/cms-setup": "^9.5",
"typo3/cms-seo": "^9.5",
"typo3/cms-sys-note": "^9.5",
"typo3/cms-t3editor": "^9.5",
"typo3/cms-tstemplate": "^9.5",
"typo3/cms-viewpage": "^9.5",
"helhum/typo3-secure-web": "^0.2.8"
},
"scripts":{
"typo3-cms-scripts": [
"typo3cms install:fixfolderstructure",
"typo3cms install:generatepackagestates"
],
"post-autoload-dump": [
"@typo3-cms-scripts"
]
},
"extra": {
"typo3/cms": {
"root-dir": "private",
"web-dir": "public"
}
}
}
备注
ddev composer require 一切正常 typo3/minimal:^9 它只会导致分发包出现问题。
分发包可能有什么问题?感谢您的反馈。非常感谢您的宝贵时间!
万岁,刚刚解决了这个问题!这只是 changing/following 个订单的问题,如下所示:
Step 1: Create a project's folder
Step 2: Configure PHP version
Step 3: Composer distribution package
Step 4: Create FIRST_INSTALL file
Step 5: TYPO3 Installation Wizard
Step 6: Composer.json, Setup private and public folders
Step 7: Secure your TYPO3 with folder structure private and public
Step 7: ddev composer require helhum/typo3-secure-web
万岁!再次感谢@Helhum 提供如此安全的 TYPO3 解决方案:)
InspirePeopleToSecure
干杯,
桑杰
我们遇到了分发包作曲家的问题。我们的目标是实现 DDEV + Composer + Distribution Package + helhum/typo3-secure-web(非常感谢@helhum 如此出色的安全解决方案)。
Problem/Issue
当尝试访问后端时它不起作用,请检查此屏幕截图 https://i.imgur.com/lI5IGCE.png 和 CSS/JS 无法访问,似乎某些目录结构 (private/public) 导致问题。
设置方法
第 1 步:创建项目文件夹
mkdir my-typo3-site
cd my-typo3-site
第 2 步:配置 PHP 版本
ddev config --project-type php --php-version 7.2
第 3 步:设置 TYPO3 最新版本
ddev composer create typo3/cms-base-distribution ^9 --no-interaction
ddev config --project-type typo3
ddev start
第 5 步:Composer.json,设置私人和 public 文件夹
"extra": {
"typo3/cms": {
"root-dir": "private",
"web-dir": "public"
}
}
第 4 步:使用文件夹结构保护您的 TYPO3 private 和 public
ddev composer require helhum/typo3-secure-web
第 5 步:创建 FIRST_INSTALL 文件
touch private/FIRST_INSTALL
第 6 步:TYPO3 安装向导(成功)
作曲家
typo3/cms-base-distribution^9
生成的composer代码{
"repositories": [
{ "type": "composer", "url": "https://composer.typo3.org/" }
],
"name": "typo3/cms-base-distribution",
"description" : "TYPO3 CMS Base Distribution",
"license": "GPL-2.0-or-later",
"config": {
"platform": {
"php": "7.2"
}
},
"require": {
"helhum/typo3-console": "^5.5.5",
"typo3/minimal": "^9.5",
"typo3/cms-about": "^9.5",
"typo3/cms-adminpanel": "^9.5",
"typo3/cms-belog": "^9.5",
"typo3/cms-beuser": "^9.5",
"typo3/cms-felogin": "^9.5",
"typo3/cms-fluid-styled-content": "^9.5",
"typo3/cms-form": "^9.5",
"typo3/cms-impexp": "^9.5",
"typo3/cms-info": "^9.5",
"typo3/cms-redirects": "^9.5",
"typo3/cms-reports": "^9.5",
"typo3/cms-rte-ckeditor": "^9.5",
"typo3/cms-setup": "^9.5",
"typo3/cms-seo": "^9.5",
"typo3/cms-sys-note": "^9.5",
"typo3/cms-t3editor": "^9.5",
"typo3/cms-tstemplate": "^9.5",
"typo3/cms-viewpage": "^9.5",
"helhum/typo3-secure-web": "^0.2.8"
},
"scripts":{
"typo3-cms-scripts": [
"typo3cms install:fixfolderstructure",
"typo3cms install:generatepackagestates"
],
"post-autoload-dump": [
"@typo3-cms-scripts"
]
},
"extra": {
"typo3/cms": {
"root-dir": "private",
"web-dir": "public"
}
}
}
备注
ddev composer require 一切正常 typo3/minimal:^9 它只会导致分发包出现问题。
分发包可能有什么问题?感谢您的反馈。非常感谢您的宝贵时间!
万岁,刚刚解决了这个问题!这只是 changing/following 个订单的问题,如下所示:
Step 1: Create a project's folder
Step 2: Configure PHP version
Step 3: Composer distribution package
Step 4: Create FIRST_INSTALL file
Step 5: TYPO3 Installation Wizard
Step 6: Composer.json, Setup private and public folders
Step 7: Secure your TYPO3 with folder structure private and public
Step 7: ddev composer require helhum/typo3-secure-web
万岁!再次感谢@Helhum 提供如此安全的 TYPO3 解决方案:)
InspirePeopleToSecure
干杯,
桑杰