PDA

Archiv verlassen und diese Seite im Standarddesign anzeigen : Apache2, PHP + GDLib



[oETTi]
28.07.05, 12:10
Hallo zusammen,

mein PHP weigert sich die beständig die GDLib einzubinden. Im error_log des Apache tauchen folgende Fehlermeldungen auf:



PHP Fatal error: Call to undefined function: imagetypes() in ...


Installiert sind nur Standard-RPM's von RedHat:



php-4.3.9-3.7
php-pear-4.3.9-3.7
gd-2.0.28-4


phpinfo gibt dazu folgendes aus:



'./configure' '--build=i386-redhat-linux' '--host=i386-redhat-linux'
'--target=i386-redhat-linux-gnu' '--program-prefix=' '--prefix=/usr'
'--exec-prefix=/usr' '--bindir=/usr/bin' '--sbindir=/usr/sbin'
'--sysconfdir=/etc' '--datadir=/usr/share' '--includedir=/usr/include'
'--libdir=/usr/lib' '--libexecdir=/usr/libexec' '--localstatedir=/var'
'--sharedstatedir=/usr/com' '--mandir=/usr/share/man' '--infodir=/usr/share/info'
'--cache-file=../config.cache' '--with-config-file-path=/etc'
'--with-config-file-scan-dir=/etc/php.d' '--enable-force-cgi-redirect'
'--disable-debug' '--enable-pic' '--disable-rpath' '--enable-inline-optimization'
'--with-bz2' '--with-db4=/usr' '--with-curl' '--with-exec-dir=/usr/bin'
'--with-freetype-dir=/usr' '--with-png-dir=/usr' '--with-gd=shared'
'--enable-gd-native-ttf' '--without-gdbm' '--with-gettext' '--with-ncurses=shared'
'--with-gmp' '--with-iconv' '--with-jpeg-dir=/usr' '--with-openssl' '--with-png'
'--with-pspell' '--with-xml' '--with-expat-dir=/usr' '--with-dom=shared,/usr'
'--with-dom-xslt=/usr' '--with-dom-exslt=/usr' '--with-xmlrpc=shared'
'--with-pcre-regex=/usr' '--with-zlib' '--with-layout=GNU' '--enable-bcmath'
'--enable-exif' '--enable-ftp' '--enable-magic-quotes' '--enable-sockets'
'--enable-sysvsem' '--enable-sysvshm' '--enable-track-vars' '--enable-trans-sid'
'--enable-yp' '--enable-wddx' '--with-pear=/usr/share/pear' '--with-imap=shared'
'--with-imap-ssl' '--with-kerberos' '--with-ldap=shared' '--with-mysql=shared,/usr'
'--with-pgsql=shared' '--with-snmp=shared,/usr' '--with-snmp=shared' '--enable-ucd-snmp-hack'
'--with-unixODBC=shared,/usr' '--enable-memory-limit' '--enable-shmop'
'--enable-calendar' '--enable-dbx' '--enable-dio' '--enable-mbstring=shared'
'--enable-mbstr-enc-trans' '--enable-mbregex' '--with-mime-magic=/usr/share/file/magic.mime'
'--with-apxs2=/usr/sbin/apxs'


Vielleicht kann mir jemand kurz auf die Sprünge helfen, wo mein Denkfehler liegt :rolleyes:

Danke.

marce
28.07.05, 12:14
vielleicht hilft das...

http://de2.php.net/imagetypes

[oETTi]
28.07.05, 12:27
Attention,
the function is definied only if there is GD linked in your installation of PHP.

So, if you don't have GD, you recive a "Fatal error: call to an undefinied function".
So to use this function GD is required.

We use PHP 4.3.2.


Das hatte ich mir heute auch schon durchgelesen. Der Fehler deutet auf das Fehlen der GDLib hin, allerdings sagt ./configure .... ja was anderes :confused:

marce
28.07.05, 12:30
is GD linked in your installation of PHP

vielleicht ist das der Casus Knacktus?

müsste man mal ausprobieren...

[oETTi]
28.07.05, 16:52
php-gd-4.3.9-3.7.i386.rpm

hat gefehlt auf dem Server. Seit dem gehts problemlos.

PS: Vielleicht hilft's dem nächsten ;)