Page 1 of 1

PHP Fehler

Posted: 2008-01-07 21:25
by alex007
Hallo,

ich habe heute auf eine CentOS (Redhat) Kiste PHP installiert bzw. kompiliert. Vorher war dort eine rpm PHP (über yum).

Jedoch nach einem Start von Apache (httpd) kam folgendes:

/etc/init.d/httpd start
Starting httpd: httpd: Syntax error on line 206 of /etc/httpd/conf/httpd.conf: Cannot load /usr/lib/httpd/modules/libphp5.so into server: /usr/lib/httpd/modules/libphp5.so: undefined symbol: executor_globals
[FAILED]

Ich weß nicht, womit ich anfangen soll. Hoffe mir kann jemand helfen.

Re: PHP Fehler

Posted: 2008-01-07 21:37
by Joe User
Weshalb kompilierst Du selbst, statt die CentOS-RPMs zu verwenden? Wie genau hast Du kompiliert? Welche Patches hast Du verwendet?

Re: PHP Fehler

Posted: 2008-01-07 21:43
by alex007
Weil die RPM gd ausschaltet: "--without-gd".

So sieht meine Configure aus:

./configure -with-apxs2=/usr/sbin/apxs --with-bz2 --with-curl --with-zlib --with-gd --with-sqlite --libdir=/usr/lib --with-libdir=lib --with-libxml-dir=/usr --with-mime-magic=/etc/httpd/conf/magic --exec-prefix=/usr --libexecdir=/usr/libexec --with-jpeg-dir=/usr --with-pcre-regex=/usr --with-png-dir=/usr --with-exec-dir=/usr/bin --prefix=/usr --bindir=/usr/bin --sbindir=/usr/sbin --with-freetype-dir=/usr

php-5.2.5 wurde kompiliert.

Re: PHP Fehler

Posted: 2008-01-07 22:46
by Joe User
Die Distributions-RPMs sind in der Regel modular aufgabaut, weshalb der ./configure aus phpinfo() nicht mehr als Referenz herangezogen werden kann.
Bitte selbst anpassen:

Code: Select all

yum install php[45]-gd

Re: PHP Fehler

Posted: 2008-01-07 23:08
by alex007
Jedoch ist es nicht so bei Centos, ich habe natürlich schon yum install gd durchgeführt:

"php-gd is already the newest version."

Trotzdem funktioniert GD nicht.

Re: PHP Fehler

Posted: 2008-01-07 23:16
by alex007
Habe da noch paar weitere Pakete wie ..-devel usw. installiert. Scheint nun zu klappen. Danke!