Typo3 - Installation: Unterschied zwischen den Versionen
| Zeile 1: | Zeile 1: | ||
| − | + | == Typo3 Autoinstallation == | |
| − | |||
| − | |||
Wünschenswert wäre ein Script, welches eine Typo3 Grundinstallation vollautomatisch durchführt. Als ersten Schritt einige Vorüberlegungen: | Wünschenswert wäre ein Script, welches eine Typo3 Grundinstallation vollautomatisch durchführt. Als ersten Schritt einige Vorüberlegungen: | ||
Die Installation sollte nach Angabe einer Datenbank die Typo3 Verzeichnisse hochladen, auspacken und das Konfigurationsfile mit den Datenbankwerten belegen. Weiterhin sollte die Datenbank bereits einen Admin-User einige Seiten und einige Grundtemplates enthalten. Typo3 enthält ja die Möglichkeit im DB Teil der installation ein eigenes .sql File zu benutzen, welches bereits die nötigen Werte enthält. | Die Installation sollte nach Angabe einer Datenbank die Typo3 Verzeichnisse hochladen, auspacken und das Konfigurationsfile mit den Datenbankwerten belegen. Weiterhin sollte die Datenbank bereits einen Admin-User einige Seiten und einige Grundtemplates enthalten. Typo3 enthält ja die Möglichkeit im DB Teil der installation ein eigenes .sql File zu benutzen, welches bereits die nötigen Werte enthält. | ||
| + | |||
| + | == Grundsätzliche Installation == | ||
=== Uploaden === | === Uploaden === | ||
Version vom 8. Dezember 2006, 14:07 Uhr
Typo3 Autoinstallation
Wünschenswert wäre ein Script, welches eine Typo3 Grundinstallation vollautomatisch durchführt. Als ersten Schritt einige Vorüberlegungen: Die Installation sollte nach Angabe einer Datenbank die Typo3 Verzeichnisse hochladen, auspacken und das Konfigurationsfile mit den Datenbankwerten belegen. Weiterhin sollte die Datenbank bereits einen Admin-User einige Seiten und einige Grundtemplates enthalten. Typo3 enthält ja die Möglichkeit im DB Teil der installation ein eigenes .sql File zu benutzen, welches bereits die nötigen Werte enthält.
Grundsätzliche Installation
Uploaden
- Typo3 - Dummy auf den Server laden
- Aus dem Installscript /typo3/install/index.php die die() Funktion auskommentieren
- Install Skript im Browser aufrufen (Standard Passwort ist joh316)
- Passwort ändern !! und neu einloggen (evt. Schreibrecht für /typo3/typo3conf/localconf.php setzten)
Basic Configuration
- Schreibrechte für die rot markierten Ordner ändern und den den fileadmin Ordner ebenfalls schreibbar machen.
- Datenbank Zugangsdaten eingeben. Host ist in der Regel 'localhost'
- Update localconf.php klicken dann click to continue
- Jetzt die Datenbank im neuen Dropdownfeld. Auswählen
- Encryption key: Generate Knopf klicken
Database Analyser
- Benötigte Tabellen anlegen: Compare klicken - dann write to database
- Dump static data IMPORT
- (Notwendig?) Tabellen füllen mit statischen Templates typo3conf/database.sql (1.1 M) ebenfalls Compare und write to database
- admin User erstellen damit man sich im Backend einloggen kann.
All Configuration
- [gdlib_2] auf 1 stellen Wenn GDlib Version 2 Verwendet wird
- [TTFdpi] muß auf 96 stehen wenn die Schrift im Bild bei 'Basic Configuration' nicht vollständig angezeigt wird.
- [noEdit] auf 0 stellen dann kann man vom Backend-Bereich Text-Dateien (z.B. CSS-Files) verändern.
- [warning_email_addr] setzten dann bekommt man eine Email wenn sich jemand viermal falsch einloggt
Wichtige ToDos im Typo Backend
- Passwort für Install Tool ändern
- Ab Typo4.x DB References Updaten
- Deutsche Sprachpakete im Extension Manage laden (für 3.8 die CSH Files)
- Standard Templates TS-Templates evt. HTML Template und CSS (für TV und Automaketemplate die Extensions nicht vergessen)
- Benutzer Konfiguration bzw. Page Konfiguration (UserTS und PageTS)
- Standard Extensions installieren
Typo3 auf Unix installieren
Wenn man einen Shell Zugang zum Server hat, bietet sich eine Installation mit den tar Paketen an. Das geht erstens schneller als per FTP und man hat die möglichkeit mit Symlinks zu arbeiten, die ein späteres Update erleichtern. So gehts:
- Remote Zugang z.B. mit Putty herstellen
- Entweder per FTP die tars (Source und Dummy) hochladen oder direkt vom Server mit
wget ... (siehe Typo3 Buch)
- jetzt beide Pakete auspacken
tar xzf dummy-4.0.2.tar.gz tar xzf typo3_src-4.0.2.tar.gz
- Es entstehen die Verzeichnisse
typo3_src-4.0.2 dummy-4.0.2
der Inhalt des Dummy Paket liegt später direkt auf dem Webspace.Der Quelltext der Source im src Verzeichnis damit man später drauf verweisen kann. Deshalb verschieben wir den Inhalt des Dummy Paket auf die unterste (aktuelle) Ebene:
mv dummy-4.0.2/* ./
- Jetzt machen wir einen Symlins der auf das src Verzeichnis zeigt und typo3_src heißt.
ln -s typo3_src-4.0.2 typo3_src (evt. ist schon ein Symlink da der vom dummyVerzeichnis nach unten zeigt evt. kann man nämlich auch das Dummy im Unterordner lassen - ToDo)Wenn man im Dummy Paket das typo3_src Symlink umbiegt kann man ganz schnell ein Update ausprobieren oder eine neue source testen
- Die Archive und den leeren Dummy Ordner kann man jetzt löschen:
rm -r dummy-4.0.2 rm dummy-4.0.3.tar.gz rm typo3_src-4.0.2.tar.gz
- Im Browser müßte jetzt schon was kommen (/typo3 oder /index.php)
- Mit dem vi Editor können wir die Die Funktion im Installer auskommentieren:
vi typo3_src-4.0.2/install/index.php
- Mit i kommt man in den Einfügemodus Esc verläßt ihn :wq! speichert und schließt den Editor.
- Jetzt kann man den Typo3 Installer starten
- Um die Rechte im Terminal anzupassen kann man den Befehl chmod benutzen
Beschreibung der Installation aus der Datei 'install.txt' der Typo3 4.0.2 Distribution
**************************
* UNIX ARCHIVES OF TYPO3 *
**************************
INTRODUCTION
============
As you have downloaded this package you seem to know already about TYPO3.
If you don't, visit http://typo3.org/ where you can find many useful
information.
This short guide lists the important steps to install this package.
By default TYPO3 installs into the folder:
http://[your.site.name]/<this_site_name>/
Read the additional instructions to install TYPO3 in the root folder:
http://[your.site.name]/
IMPORTANT NOTE
==============
Please be aware of the fact that the file transfer protocol (FTP) does not
support Symlinks. You cannot unpack these archives locally and copy them
to your server using FTP, even if the target server actually is a Unix
server.
So if you don't have shell access, try to use a terminal emulator instead.
(PHPshell to give you an example - Google knows all of them!)
If this doesn't work you'll have to stick back to the ZIP version :-(
NEWBIE INFORMATION ABOUT THE TYPO3 FILESYSTEM STRUCTURE
=======================================================
A Unix TYPO3 installation consists of two parts:
1) The "source" package
2) The "dummy" package
The dummy package contains the skeleton directory structure for a TYPO3
installation and a symlink ('typo3_src') to the location of the source
package which contains all the PHP files, images, JavaScript files, etc.
that TYPO3 needs to run.
In other words: You can have several TYPO3 installations with just one
source package. A typical directory structure looks like this:
/var/www/typo3_src-3.8.1/ # the untared 3.8.0 source package
/var/www/typo3_src-4.0/ # the untared 4.0 source package
/var/www/installation1/ # the untared dummy package of a TYPO3
# installation running on TYPO3 3.8.1
/typo3_src --> ../typo3_src-3.8.1/ # a symlink to the 3.8.1 source
/typo3conf/
/typo3temp/
/fileadmin/
/.../
/var/www/installation2/ # the untared dummy package of a TYPO3
# installation running on TYPO3 4.0
/typo3_src --> ../typo3_src-4.0/ # a symlink to the 4.0 source
/typo3conf/
/typo3temp/
/fileadmin/
/.../
As you see, the two TYPO3-installations (possibly with different domains)
can use the same TYPO3 source package. You can even change the source
package simply be changing the symlink inside the installation directory.
STEP BY STEP
============
1 Get the TYPO3 source package and the TYPO3 dummy package.
2 Copy the archives to the web root of your server.
(Debian default is /var/www/, SuSE default is /srv/www/)
3 Unpack the archives:
$ tar xzf typo3_src-<version>.tar.gz
$ tar xfz dummy-<version>.tar.gz
4 Rename the dummy-<version> directory to fit your needs and make sure it
is accessible by your webserver (for example by creating a virtual
host). We assume you rename the directory to cms:
$ mv dummy-<version> cms
5 Set permissions (as root): There are at least two options.
These steps will make four directories writable for the webserver:
- cms/fileadmin/
- cms/typo3conf/
- cms/typo3temp/
- cms/uploads/
5.a (recommended)
Run these commands as root in the cms/ directory:
# chgrp -R <wwwserver> fileadmin typo3conf typo3temp uploads
# chmod -R g+w,o-rwx fileadmin typo3conf typo3temp uploads
... where <wwwserver> is the name of the group your webserver
is running as
5.b (insecure but easy to apply)
I repeat: This is insecure!
Do not use this method if you are working on a shared server!
Simply run this command:
$ chmod -R a+w fileadmin typo3conf typo3temp uploads
6 Check the symlink cms/typo3_src and make sure it points to the source
directory.
(See above: "Newbie information about the TYPO3 filesystem structure")
7 In your browser, visit
http://[your.site.name]/cms/
8 Follow the instructions in the 1-2-3 install tool
9 From this point, you can access the backend through
http://[your.site.name]/cms/typo3/
with the username "admin" and password "password".
That's it :-)
INSTALLING TYPO3 IN THE WEBROOT FOLDER
======================================
1 Follow the steps 1-6 above.
2 Move the files in the cms/ folder up one level.
$ cd cms
$ mv * ../
$ cd ../
3 Update the symlink
$ rm typo3_src
$ ln -s ./typo3_src-<version> typo3_src
4 Now TYPO3 runs in http://[your.site.name]/
That's it :-)
WHAT SHOULD YOU DO IF YOU HAVE A PROBLEM?
=========================================
TYPO3 is a powerful and complex professional application. When you start
out there will be many things you don´t understand, or that don't seem to
make sense. There is a widely used mailing list (more information on
typo3.com & typo3.org) where many experienced users and developers
lurk... they are always willing to help, provided you followed these steps
BEFORE you ask your question:
1 - Read all available documentation carefully
2 - Read the webserver error logfiles
(for example /var/log/apache/error.log)
3 - Read all available documentation again
4 - Search the mailing list archive carefully
5 - If you still can't figure it out - ask the list...:
- Newsgroup: news://news.netfielders.de/
- Mailing lists: http://lists.netfielders.de/
When posting to one of the lists, see the following guidelines...
- Be polite
Always include the version of used TYPO3 and server environment
(phpinfo())... note that this is available within the TYPO3
Install Tool
- Be as specific and clear as possible - questions like "my TYPO3
installation does not work - what can I do???" will be ignored.
Although English may not be your first language, if those reading
your posting can't understand it, you won't get the help you need
- If you are really having a tough time getting something working,
stay cool and don't criticise or flame. Problems are normally
caused by lack of research into the documentation, or
misunderstanding, not because of bugs. Be logical about your
troubleshooting, and you'll get there
6 - If you have identified a genuine new bug, report it at
http://bugs.typo3.org/ ...do not post to the list about it
Please be aware that if you ask questions that are answered in the
available documentation, you may not get a reply, or any help from the
developers or any experienced users!
We are aware that there is still some work to be done on the
documentation, and the platform for user support... please forgive us for
not having all these gaps filled. If you feel that some information is
missing, hard to find or just plain wrong, or you have a suggestion on
improving TYPO3 or the "support services", please let us know so that we
can do what is necessary. You could also volunteer to help with the work!
(c) Nigel Jackson, Ingmar Schlecht
Unix related additions made by Michael Stucki and some Wiki users:
http://wiki.typo3.org/index.php/Tgz-INSTALL.txt
-- Michael Stucki <michael@typo3.org> Sun, 26 Mar 2006 22:10:53 +0100
Image Magick über SSH Zugang auf VMWare
Quelle: http://www.4many.net/imagemagick_setup.html
ImageMagick Installation on Virtual Host Account with SSH Access
Situation: Customer got virtual host with ssh access
TYPO3 was installed
no ImageMagick
after installing static linked package imagemagick-4.2.9_i386-static-1.tar.gz
TYPO3 complained that no valid version could be found
Problem: It turned out that due to the virtual setup and the setup of the Apache the environment got lost and the ImageMagick.so.9 couldn't be found during the exec()
Challenge:
1. convince the provider to change the setup
Nice try!
2. convince the provider to install ImageMagick globally
No support for third party products
3. fix it in TYPO3 to pass environment
possible solution, just no time to do so
Solution: Fixed it on script level
1. move required executable to *.bin, i.e.
mv convert convert.bin
mv combine combine.bin
mv identify identify.bin
2. create script
pico convert
3. content of the script file
#!/usr/local/bin/bash
export PATH; PATH="/home/usr203227042/ImageMagick-4.2.9/bin:$PATH"
export MAGICK_HOME="/home/usr203227042/ImageMagick-4.2.9"
export LD_LIBRARY_PATH="/home/usr203227042/ImageMagick-4.2.9/lib"
/home/usr203227042/ImageMagick-4.2.9/bin/convert.bin $*
4. make script executable
chmod 755 convert
5. repeat steps 2.-4. for combine and identify and don't forget to change convert.bin to the appropriate value
Trennung von Produktions und Live-Server (Bearbeitung der Seiten und Darstellung)
Für den Website-Betrieb sind die Verzeichnisse TSLib und T3Lib notwendig um eine Website auszuliefern.
Für die Bearbeitung von Seiten sind die Dateien im Typo3 Verzeichnis zuständig. Ohne Typo3 Verzeichnis gibt es kein Backend aber die Seiten funktionieren trotzdem. Ein gutes Mittel um die Seiten vor Angreifern zu schützen.
siehe auch Typo3 - Update
Zentrale Typo3-Installation vs mehrere Typo3
Verschiedene Gründe: 1. Es gibt aus Sicherheitsgründen keinen Remote Zugang für unseren Server. Das macht es etwas umständlicher.
2. Von Version 3.7-3.8 gab es bei manchen Extensions Probleme mit Updates, bzw. es gab Extensions die das Typo auch mal aus dem Tritt brachten. Wenn wir alle Präsenzen auf einem Typo laufen lassen würden wären bei einem Fehler alle Homepages betroffen und Nebenwirkungen unter Umständen nicht so einfach zu sehen. Mit der getrennten Installation kann man auch bei sehr experimentellen Extensions relativ sicher updaten. Auch wenn wir verschiedene Datenbanken benutzen würden. Erst ab Version 4 gibt es außerdem die Möglichkeit Seiten vernünftig zu testen bevor Sie bei Änderungen Online gehen. Das war bisher nur mit einer ziemlich umständlichen Extension möglich.
Manche würden das vielleicht als Übervorsichtig auslegen. Im Endeffekt hat es nur den Nachteil der längeren Uploadzeiten. Speicherplatz spielt im Grunde kaum eine Rolle. Der Server wird auch nicht wesentlich mehr belastet. Weil die Skripte egal ob in einer oder in mehreren Typos ja immer für jede Anfrage abgearbeitet werden.
3. Wir haben den Kunden eine komplette Installation verkauft mit der Sie machen können was Sie wollen. Dafür bekommen Sie natürlich auch eine eigene Installation.
Für die Miettypos werden wir allerdings eine einzelne Installation benutzen. Für eine Agentur bietet sich ebenfalls eine eigene Installation an auf der die betreuten Präsenzen laufen.
4. Manche Typos laufen auf anderen Servern ;-) Z.T. mit Anpassungen im Quellcode vom Typo.
Weitere Pro und Kontra Argumente
- Zeitersparnis beim Update in zentraler Installation
- Ein Backend=>Admin Account unübersichtlich
automatische Installation
Überlegungen zum automatischen Installieren:
Ausgehend von einer fertigen Grundinstallation mit Benutzern und Rechten plus einigen Dummy-Seiten müßten sich per Knopfdruck Installationen anfertigen lassen.
Einzelschritte:
- Notwendige Dateien (Typo3 System, Filadmin Ordner)
- Datenbank (inkl. Benutzer und Dummy Inhalten)
- Config-Datei (automatisiert ?)
Typo3 - Update
3.8 auf 4.0
Ordner typo3, t3lib ersetzen misc aufspielen index.php ersetzen (root)
Update Wizard im Install Tool ausführen
Im Database Analyzer Compare und danach die erforderlichen Updates der Datenbanktabellen ausführen.
Nicht benötigte Extensions entfernen und entsprechend Templates anpassen
Alte Sprachpakete löschen und mit dem Translation Handling im Extension Manager die benötigten Sprachen aktualisieren.
Kompatibilitätsmodus 3.8 für Version 4
Nach Update von 3.8.x auf 4.0 läuft das Typo zunächst im Kompatibilitätsmodus.
Folgendes sollte verändert werden damit die Ausgabe auch nach umschalten wieder geht. The following updates will be performed:
changeCompatibilityVersion TYPO3 output is currently compatible to version 3.8. To use all the new features in the current TYPO3 version, make sure you follow the guidelines below to upgrade without problems.
Follow the steps below carefully and confirm every step! You will see this list again after you performed the update. CMS Frontend
*
Word separator character for simulateStaticDocument is changed from underscore (_) to hyphen (-) to make URLs more friendly for search enginesURLs that are already existing (e.g. external links to your site) will still work like before.
You can set the separator character back to an underscore by putting the following line into the Setup section of your Page TypoScript template:
config.simulateStaticDocuments_replacementChar = _ *
CSS Stylesheets and JavaScript are put into an external file by default.
Technically, that means that the default value of "config.inlineStyle2TempFile" is now set to "1" and that of "config.removeDefaultJS" to "external"
Acknowledged
CSS Styled Content: Accessibility improvements
The rendering of the following elements will change:
* tt_content.menu (used f.e. for sitemaps): Instead of div-tags, lists are used now.
* tt_content.mailform: Mailforms do not use tables anymore, instead, they use the div-tag. Besides that, mailforms are accessible now.
* The p-tag has been removed from all table cells.
* CSS based "image" and "text with image"
As the extension cron_cssstyledimgtext has been merged into the core, rendering of the content elements "image" and "text with image" has been changed to be CSS instead of table based. Read the 4.0 release notes for further information.
You will have to update your stylesheets to comply with these changes.
Acknowledged
Check all (ignore selection above)
WARNING: this might break the output of your website. Show database queries performed