[英]TYPO3 setup issue with Composer + Distribution Package + helhum/typo3-secure-web
我們正面臨分發程序包編寫器的問題。 我們的目標是實現DDEV + Composer +分發包+ helhum / typo3-secure-web(對於如此出色的安全解決方案,每噸@helhum)。
問題/發行
嘗試訪問后端時,它不起作用,請使用CSS / JS檢查此屏幕快照https://i.imgur.com/lI5IGCE.png不可訪問,似乎是某些目錄結構(私有/公共)引起問題。
設置方法
步驟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,設置專用和公用文件夾
"extra": {
"typo3/cms": {
"root-dir": "private",
"web-dir": "public"
}
}
步驟4:使用私有和公共文件夾結構保護您的TYPO3
ddev composer require helhum/typo3-secure-web
步驟5:建立FIRST_INSTALL檔案
touch private/FIRST_INSTALL
步驟6:TYPO3安裝向導(成功)
作曲家
由typo3 / cms-base-distribution ^ 9生成的作曲者代碼
{
"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一起正常運行都需要typo3 / minimal:^ 9,這只會導致發行包出現問題。
分發程序包可能有什么問題? 非常感謝您的反饋。 非常感謝您的寶貴時間!
華友世紀,剛剛解決了這個問題! 只需按以下步驟更改/遵循訂單即可:
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解決方案:)
干杯,
桑傑
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.