Skip to content

Instantly share code, notes, and snippets.

@ziadabdulhai
Last active March 4, 2020 11:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ziadabdulhai/39b8d982cdc6e318e0d784a9ba95dbad to your computer and use it in GitHub Desktop.
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
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
Copy link

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
Copy link
Author

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