sacha schriebHi,
hab gerade fuer jemand anderen eine Anleitung fuer typo auf rootie mit SuSE 8.1 geschrieben. Das basiert auf der Anleitung von Carsten Rose und ich habs fuer den Rootie angepasst:
als root einloggen, 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 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
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:
<Directory "/home/www/web1">
Options -Indexes +FollowSymLinks +Includes
DirectoryIndex index.php
php_admin_value open_basedir /home/www/web1/:/home/www/typo3/
php_admin_flag safe_mode Off
</Directory>
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
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.
Ciao,
Sacha