Zum Hauptinhalt springen Skip to page footer

Clone Typo3 Installation - "Toolbox"

Sammlung wiederkehrender Unix commands, wie z.B. Verpacken, File permissions setzen.

I.  Die Schritte - grobe Anleitung

 

  1. Im Typo3 Backend alle Caches leeren, Kompatibilität und Aktualität aller Extensions prüfen. 
  2. DB: global reference index prüfen und ggf. aktualisieren
  3. Datenbank Dump
  4. Neue leere DB anlegen und Dump importieren.
  5. Typo3 Installation tar.zip im Testverzeichnis entpacken,  htaccess,  Sites-Settings und conf-File anpassen
  6. Prüfen ob die Seite im Testverzeichnis fehlerfrei läuft, dann Update.

 

 

II. Die Commands

 

1. Verpacken:

tar -czvf archiv.tar.gz inhalt1 inhalt2

c = compress
z = komprimieren mit gzip
v = verbose
f = file

 

2. Entpacken:

tar xzf archiv.tar.gz inhalt1

 

3. Fix executable permissions on files/ directories:

find public -type f -exec chmod 0664 {} \;

z.B.:

find typo3_src-12.4.14 -type f -exec chmod 0664 {} \;

oder

find . -type f -exec chmod 0664 {} \;
find . -type d -exec chmod 2775 {} \;

 

3.b 

# Empfohlen bei TYPO3:
find -type d -print0 | xargs -0 chmod 2770 && find -type f -print0 | xargs -0 chmod 0660

# Bei Mittwald:
find -type d -print0 | xargs -0 chmod 2775 && find -type f -print0 | xargs -0 chmod 0664