Last active
March 4, 2020 11:46
-
-
Save ziadabdulhai/39b8d982cdc6e318e0d784a9ba95dbad to your computer and use it in GitHub Desktop.
TYPO3 Meetup München 03.03.3020 - Sicheres TYPO3-Webverzeichnis mit helhum/typo3-secure-web
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
mkdir private && | |
ddev composer config extra.typo3/cms.root-dir private && | |
ddev composer config extra.typo3/cms.web-dir public && | |
ddev composer require helhum/typo3-secure-web && | |
mv public/typo3conf/{AdditionalConfiguration.php,LocalConfiguration.php,PackageStates.php} private/typo3conf && | |
cp -r public/fileadmin/ private/fileadmin && rm -rf public/fileadmin/ && cd public && ln -s ../private/fileadmin fileadmin && cd .. && | |
rm -rf public/typo3temp/* && cd public/typo3temp && ln -s ../../private/typo3temp/assets assets && cd ../.. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
mkdir no-secure-web && cd no-secure-web && mkdir public && ddev config --docroot public --project-name no-secure-web --project-type typo3 && ddev start && ddev composer require typo3/minimal ^9.5 typo3/cms-introduction ^4.0 helhum/typo3-console in2code/powermail ^7.4 && ddev exec touch /var/www/html/public/FIRST_INSTALL && ddev exec vendor/bin/typo3cms install:setup --no-interaction --admin-user-name=admin --admin-password=password && ddev exec /var/www/html/vendor/bin/typo3cms extension:activate introduction && rm -fr ~/Library/Caches/Google/Chrome/Default/Cache && ddev launch |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
mkdir no-secure-web && | |
cd no-secure-web && mkdir public && | |
ddev config --docroot public --project-name no-secure-web --project-type typo3 && | |
ddev start && | |
ddev composer require typo3/minimal ^9.5 typo3/cms-introduction ^4.0 helhum/typo3-console in2code/powermail ^7.4 && | |
ddev exec touch /var/www/html/public/FIRST_INSTALL && | |
ddev exec vendor/bin/typo3cms install:setup --no-interaction --admin-user-name=admin --admin-password=password && | |
ddev exec /var/www/html/vendor/bin/typo3cms extension:activate introduction && | |
ddev launch |
Meine Gedanke war, dass wenn beim Verschieben etwas schiefgehen, vielleicht werden paar Dateien kapput :) dann sicherer kopieren und dann löschen, oder braucht man hier keine Sorgen?
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Kurze Frage zur Konvertierung: warum kopieren & löschen statt einfach verschieben?
cp -r public/fileadmin/ private/fileadmin && rm -rf public/fileadmin/
stattmv public/fileadmin/ private/