Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
TYPO3 Meetup München 03.03.3020 - Sicheres TYPO3-Webverzeichnis mit helhum/typo3-secure-web
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 ../..
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
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
@julianhofmann

This comment has been minimized.

Copy link

julianhofmann commented Mar 4, 2020

Kurze Frage zur Konvertierung: warum kopieren & löschen statt einfach verschieben?
cp -r public/fileadmin/ private/fileadmin && rm -rf public/fileadmin/ statt mv public/fileadmin/ private/

@ziadabdulhai

This comment has been minimized.

Copy link
Owner Author

ziadabdulhai commented Mar 4, 2020

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
You can’t perform that action at this time.