Installation einer Typo3-Umgebung auf einem 1und1 Rootserver mit SuSE 8.1
Hi,
hier eine Anleitung fuer typo3 auf 1und1 Rootserver mit SuSE 8.1. Das basiert auf der Anleitung von Carsten Rose und ich habs fuer den Rootie angepasst.
Wer sich die Installation nicht selbst zutraut (trau dich und stell Fragen im Forum) oder gerne einen Typo3-Debian-Woody-Rootserver haette, der klickt bitte hier:
kostenlose Installation einer Typo3 Umgebung auf einem SuSE 8.1 oder Debian Woody Rootserver bei 1und1
Putty herunterladen:
http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html
IP deines Servers eingeben (Protocol SSH), als root anmelden.
Mit
cd /tmp ins tmp-Verzeichnis wechseln und folgende Dateien
herunterladen:
GD-Lib 1.8.3:
wget http://downloads.rhyme.com.au:9003/gd/gd-1.8.3gif.tar.gz
ImageMagick 4.2.9:
wget http://belnet.dl.sourceforge.net/sourceforge/typo3/ImageMagick-4.2.9.tar.gz
Freetype 1.3.1:
wget http://belnet.dl.sourceforge.net/sourceforge/freetype/freetype-1.3.1.tar.gz
SuSE 8.1 PHP4.2.2-RPM:
wget ftp://update.rootmaster.info:21/pub/suse/ftp.suse.com/suse/i386/8.1/suse/src/mod_php4-4.2.2-117.src.rpm
Dann per yast2 (einfach yast2 auf der Konsole eintippen und ENTER drücken) folgende Paktet installieren:
t1lib-devel
apache-devel
bison
flex
xdevel
ghostscript-serv
libpng-devel
ImageMagick
zlib-devel
imap-devel
openldap2-devel
libmcrypt-devel
postgresql-devel
sablot-devel
curl-devel
libxml2-devel
libiodbc-devel
Typo-Konfigurationsdatei in Apache einbinden:
# vim /etc/sysconfig/apache
HTTPD_CONF_INCLUDE_FILES="/etc/httpd/httpd.typo3.conf"
Konf-Datei anlegen:
# vim /etc/httpd/httpd.typo3.conf
Folgender Inhalt:
Options -Indexes +FollowSymLinks +Includes
DirectoryIndex index.php
php_admin_value open_basedir /home/www/web1/:/home/www/typo3/
php_admin_flag safe_mode Off
Wenn du mit Confixx neue Kunden anlegst, musst du fuer jeden Kunden
so einen Eintrag wie oben anlegen.
# SuSEconfig
# vim /etc/init.d/apache
hinten an LD_LIBRARY_PATH=blabla
:/usr/local/typo3sh/lib dranhaengen
# cd /usr/src/packages/BUILD
# tar zxf /tmp/freetype-1.3.1.tar.gz
# cd freetype-1.3.1
# ./configure --prefix=/usr/local/typo3sh --enable-shared
# make
# make install
# cd /usr/include/sys
# ln -s ../asm/byteorder.h byteorder.h
# cd /usr/src/packages/BUILD
# tar zxf /tmp/ImageMagick-4.2.9.tar.gz
Configure Script laufen lassen (alles in einer Zeile):
# cd /usr/src/packages/BUILD/ImageMagick-4.2.9
# ./configure --prefix=/usr/local/typo3sh --enable-lzw --includedir=/usr/local/typo3sh/include/freetype --without-perl --enable-shared
# make
# make install
# cd /usr/src/packages/BUILD
# tar zxf /tmp/gd-1.8.3gif.tar.gz
# cd gd-1.8.3
# cp Makefile Makefile.orig
# vim /usr/src/packages/BUILD/gd-1.8.3/Makefile
Zeile 1-61 löschen (bis „Changes should not be required below here“)
Am Anfang der Datei folgende Zeilen einfügen :
COMPILER=gcc
AR=ar
CFLAGS=-O -DHAVE_XPM -DHAVE_JPEG -DHAVE_LIBTTF
LIBS=-lm -lgd -lpng -lz -ljpeg -lttf -lXpm -lX11
INCLUDEDIRS=-I. -I/usr/local/typo3sh/include/freetype -I/usr/include/X11
-I/usr/X11R6/include/X11
LIBDIRS=-L. -L/usr/local/typo3sh/lib -L/usr/lib/X11 -L/usr/X11R6/lib
PREFIX=/usr/local/typo3sh
INSTALL_LIB=${PREFIX}/lib
INSTALL_INCLUDE=${PREFIX}/include
INSTALL_BIN=${PREFIX}/bin
# vim /usr/src/packages/Build/gd-1.8.3/gdttf.c
Nach der Zeile "#define RESOLUTION" suchen. 96 auf 72 aendern.
# make
# make install
so, jetzt haben wir alle notwendigen Programme installiert und
muessen noch PHP neu kompilieren.
rpm -i /tmp/mod_php4-4.2.2-117.src.rpm
# cd /usr/src/packages
# rpm -bp SPECS/mod_php4.spec
# cd /usr/src/packages/BUILD/php-4.2.2
Dann Configure aufrufen.
Entweder minimal mit allem was fuer typo notwendig ist:
./configure --bindir=/usr/bin --datadir=/usr/share/php --enable-discard-path --enable-force-cgi-redirect --enable-ftp --enable-magic-quotes
--enable-sockets --enable-sysvsem --enable-sysvshm --enable-track-vars=yes --enable-trans-sid --enable-versioning --enable-wddx --enable-yp
--with-apxs=/usr/sbin/apxs --with-config-file-path=/etc --with-exec-dir=/usr/local/typo3sh/bin --with-gd=/usr/local/typo3sh --with-gettext
--with-jpeg-dir --with-mysql=/usr --with-png-dir --with-tiff-dir --with-ttf=/usr/local/typo3sh --with-xml --with-zlib=yes --enable-gd-native-ttf
oder mit ein wenig mehr Features:
./configure --with-swf=./dist/ --with-mm --with-curl --with-xml --with-xpm-dir=/usr/X11R6 --with-openssl --with-snmp --with-t1lib
--with-qtdom=/usr/lib/qt2 --with-ndbm --with-mcal=/usr --with-mcrypt --with-ldap=yes --with-imap=yes --with-imap-ssl --with-iodbc --with-gdbm --with-gmp
--with-dom=/usr/include/libxml2 --with-ftp --enable-sigchild --with-bz2 --enable-safe-mode --enable-shmop --enable-mbstring --enable-memory-limit
--enable-mbstr-enc-trans --enable-inline-optimization --enable-dbase --enable-exif --enable-gd-imgstrttf --enable-ctype --enable-filepro --with-_lib=lib
--disable-debug --enable-calendar --enable-bcmath --bindir=/usr/bin --datadir=/usr/share/php --enable-discard-path --enable-force-cgi-redirect
--enable-ftp --enable-magic-quotes --enable-sockets --enable-sysvsem --enable-sysvshm --enable-track-vars=yes --enable-trans-sid --enable-versioning
--enable-wddx --enable-yp --with-apxs=/usr/sbin/apxs --with-config-file-path=/etc --with-exec-dir=/usr/local/typo3sh/bin --with-gd=/usr/local/typo3sh
--with-gettext --with-jpeg-dir --with-mysql=/usr --with-png-dir --with-tiff-dir --with-ttf=/usr/local/typo3sh --with-xml --with-zlib=yes
--enable-gd-native-ttf
# make
# make install
# vim /etc/php.ini
upload_max_filesize = 10M
Falls in der php.ini so was steht:
[extension section]
extension = gd.so
extension = gd.so auskommentieren:
; extension = gd.so
# rcapache restart
Jetzt kannst du typo installieren. Ich habe es unter /home/www/typo
abgelegt und dann in den Kundenverzeichnissen /home/www/webx/html
das Dummypackage mit Symlink auf /home/www/typo installiert.
Weiter Infos zur typo-Installation (symlinks usw.) findest du hier: http://typo3.org/doc.0.html?&tx_extrepmgm_pi1[extUid]=265&tx_extrepmgm_pi1[tocEl]=75&cHash=f6a7716e41#oodoc_part_76
Im Installtool solltest du in der localconf.php noch folgende Eintraege
machen:
Ciao,
Sacha
Mehr Informationen unter: http://typo3.unlimitedvision.de/
hier eine Anleitung fuer typo3 auf 1und1 Rootserver mit SuSE 8.1. Das basiert auf der Anleitung von Carsten Rose und ich habs fuer den Rootie angepasst.
Wer sich die Installation nicht selbst zutraut (trau dich und stell Fragen im Forum) oder gerne einen Typo3-Debian-Woody-Rootserver haette, der klickt bitte hier:
kostenlose Installation einer Typo3 Umgebung auf einem SuSE 8.1 oder Debian Woody Rootserver bei 1und1
Putty herunterladen:
http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html
IP deines Servers eingeben (Protocol SSH), als root anmelden.
Mit
cd /tmp ins tmp-Verzeichnis wechseln und folgende Dateien
herunterladen:
GD-Lib 1.8.3:
wget http://downloads.rhyme.com.au:9003/gd/gd-1.8.3gif.tar.gz
ImageMagick 4.2.9:
wget http://belnet.dl.sourceforge.net/sourceforge/typo3/ImageMagick-4.2.9.tar.gz
Freetype 1.3.1:
wget http://belnet.dl.sourceforge.net/sourceforge/freetype/freetype-1.3.1.tar.gz
SuSE 8.1 PHP4.2.2-RPM:
wget ftp://update.rootmaster.info:21/pub/suse/ftp.suse.com/suse/i386/8.1/suse/src/mod_php4-4.2.2-117.src.rpm
Dann per yast2 (einfach yast2 auf der Konsole eintippen und ENTER drücken) folgende Paktet installieren:
t1lib-devel
apache-devel
bison
flex
xdevel
ghostscript-serv
libpng-devel
ImageMagick
zlib-devel
imap-devel
openldap2-devel
libmcrypt-devel
postgresql-devel
sablot-devel
curl-devel
libxml2-devel
libiodbc-devel
Typo-Konfigurationsdatei in Apache einbinden:
# vim /etc/sysconfig/apache
HTTPD_CONF_INCLUDE_FILES="/etc/httpd/httpd.typo3.conf"
Konf-Datei anlegen:
# vim /etc/httpd/httpd.typo3.conf
Folgender Inhalt:
Options -Indexes +FollowSymLinks +Includes
DirectoryIndex index.php
php_admin_value open_basedir /home/www/web1/:/home/www/typo3/
php_admin_flag safe_mode Off
Wenn du mit Confixx neue Kunden anlegst, musst du fuer jeden Kunden
so einen Eintrag wie oben anlegen.
# SuSEconfig
# vim /etc/init.d/apache
hinten an LD_LIBRARY_PATH=blabla
:/usr/local/typo3sh/lib dranhaengen
# cd /usr/src/packages/BUILD
# tar zxf /tmp/freetype-1.3.1.tar.gz
# cd freetype-1.3.1
# ./configure --prefix=/usr/local/typo3sh --enable-shared
# make
# make install
# cd /usr/include/sys
# ln -s ../asm/byteorder.h byteorder.h
# cd /usr/src/packages/BUILD
# tar zxf /tmp/ImageMagick-4.2.9.tar.gz
Configure Script laufen lassen (alles in einer Zeile):
# cd /usr/src/packages/BUILD/ImageMagick-4.2.9
# ./configure --prefix=/usr/local/typo3sh --enable-lzw --includedir=/usr/local/typo3sh/include/freetype --without-perl --enable-shared
# make
# make install
# cd /usr/src/packages/BUILD
# tar zxf /tmp/gd-1.8.3gif.tar.gz
# cd gd-1.8.3
# cp Makefile Makefile.orig
# vim /usr/src/packages/BUILD/gd-1.8.3/Makefile
Zeile 1-61 löschen (bis „Changes should not be required below here“)
Am Anfang der Datei folgende Zeilen einfügen :
COMPILER=gcc
AR=ar
CFLAGS=-O -DHAVE_XPM -DHAVE_JPEG -DHAVE_LIBTTF
LIBS=-lm -lgd -lpng -lz -ljpeg -lttf -lXpm -lX11
INCLUDEDIRS=-I. -I/usr/local/typo3sh/include/freetype -I/usr/include/X11
-I/usr/X11R6/include/X11
LIBDIRS=-L. -L/usr/local/typo3sh/lib -L/usr/lib/X11 -L/usr/X11R6/lib
PREFIX=/usr/local/typo3sh
INSTALL_LIB=${PREFIX}/lib
INSTALL_INCLUDE=${PREFIX}/include
INSTALL_BIN=${PREFIX}/bin
# vim /usr/src/packages/Build/gd-1.8.3/gdttf.c
Nach der Zeile "#define RESOLUTION" suchen. 96 auf 72 aendern.
# make
# make install
so, jetzt haben wir alle notwendigen Programme installiert und
muessen noch PHP neu kompilieren.
rpm -i /tmp/mod_php4-4.2.2-117.src.rpm
# cd /usr/src/packages
# rpm -bp SPECS/mod_php4.spec
# cd /usr/src/packages/BUILD/php-4.2.2
Dann Configure aufrufen.
Entweder minimal mit allem was fuer typo notwendig ist:
./configure --bindir=/usr/bin --datadir=/usr/share/php --enable-discard-path --enable-force-cgi-redirect --enable-ftp --enable-magic-quotes
--enable-sockets --enable-sysvsem --enable-sysvshm --enable-track-vars=yes --enable-trans-sid --enable-versioning --enable-wddx --enable-yp
--with-apxs=/usr/sbin/apxs --with-config-file-path=/etc --with-exec-dir=/usr/local/typo3sh/bin --with-gd=/usr/local/typo3sh --with-gettext
--with-jpeg-dir --with-mysql=/usr --with-png-dir --with-tiff-dir --with-ttf=/usr/local/typo3sh --with-xml --with-zlib=yes --enable-gd-native-ttf
oder mit ein wenig mehr Features:
./configure --with-swf=./dist/ --with-mm --with-curl --with-xml --with-xpm-dir=/usr/X11R6 --with-openssl --with-snmp --with-t1lib
--with-qtdom=/usr/lib/qt2 --with-ndbm --with-mcal=/usr --with-mcrypt --with-ldap=yes --with-imap=yes --with-imap-ssl --with-iodbc --with-gdbm --with-gmp
--with-dom=/usr/include/libxml2 --with-ftp --enable-sigchild --with-bz2 --enable-safe-mode --enable-shmop --enable-mbstring --enable-memory-limit
--enable-mbstr-enc-trans --enable-inline-optimization --enable-dbase --enable-exif --enable-gd-imgstrttf --enable-ctype --enable-filepro --with-_lib=lib
--disable-debug --enable-calendar --enable-bcmath --bindir=/usr/bin --datadir=/usr/share/php --enable-discard-path --enable-force-cgi-redirect
--enable-ftp --enable-magic-quotes --enable-sockets --enable-sysvsem --enable-sysvshm --enable-track-vars=yes --enable-trans-sid --enable-versioning
--enable-wddx --enable-yp --with-apxs=/usr/sbin/apxs --with-config-file-path=/etc --with-exec-dir=/usr/local/typo3sh/bin --with-gd=/usr/local/typo3sh
--with-gettext --with-jpeg-dir --with-mysql=/usr --with-png-dir --with-tiff-dir --with-ttf=/usr/local/typo3sh --with-xml --with-zlib=yes
--enable-gd-native-ttf
# make
# make install
# vim /etc/php.ini
upload_max_filesize = 10M
Falls in der php.ini so was steht:
[extension section]
extension = gd.so
extension = gd.so auskommentieren:
; extension = gd.so
# rcapache restart
Jetzt kannst du typo installieren. Ich habe es unter /home/www/typo
abgelegt und dann in den Kundenverzeichnissen /home/www/webx/html
das Dummypackage mit Symlink auf /home/www/typo installiert.
Weiter Infos zur typo-Installation (symlinks usw.) findest du hier: http://typo3.org/doc.0.html?&tx_extrepmgm_pi1[extUid]=265&tx_extrepmgm_pi1[tocEl]=75&cHash=f6a7716e41#oodoc_part_76
Im Installtool solltest du in der localconf.php noch folgende Eintraege
machen:
$TYPO3_CONF_VARS["GFX"]["im_combine_filename"] = ´combine´; // Modified or inserted by Typo3 Install Tool.
$TYPO3_CONF_VARS["GFX"]["im_path"] = ´/usr/local/typo3sh/bin/´; // Modified or inserted by Typo3 Install Tool.
$TYPO3_CONF_VARS["GFX"]["im_path_lzw"] = ´´; // Modified or inserted by Typo3 Install Tool.
Ciao,
Sacha
Mehr Informationen unter: http://typo3.unlimitedvision.de/