PHP 4.3.10 Update Problem

Apache, Lighttpd, nginx, Cherokee
Post Reply
taker
Posts: 71
Joined: 2004-01-25 14:08
 

PHP 4.3.10 Update Problem

Post by taker »

Hallo,

ich habe meinen 1und1 Rootie reinitialisieren lassen und nutze nun Suse9.1 mit Plesk 7.5.

Apache 2 und PHP4.3.4 ist bereits installiert.

Nun möchte ich gerne PHP4.3.10 installieren. Ich gehe nach dem Entpacken wie folgt vor:

Code: Select all

./configure --prefix=/usr --datadir=/usr/share/php --mandir=/usr/share/man --bindir=/usr/bin --libdir=/usr/share --includedir=/usr/include --sysconfdir=/etc --with-_lib=lib --with-config-file-path=/etc --with-exec-dir=/usr/lib/php/bin --disable-debug --enable-inline-optimization --enable-memory-limit --enable-magic-quotes --enable-safe-mode --enable-sigchild --disable-ctype  --with-jpeg-dir=/usr --with-mysql --with-zlib --with-gd --with-mcrypt --disable-cli --without-pear --with-openssl --with-apxs2=/usr/sbin/apxs2
Dann "läuft die Config" durch. Soweit so gut, ich mach also weiter mit

Code: Select all

make
und er arbeitet wieder eine bestimmte Zeit.

beenden tut er die Prozedur mit

Code: Select all

Build complete.
(It is safe to ignore warnings about tempnam and tmpnam).
Ich mache also weiter, laut Postings hier im Board, mit

Code: Select all

libtool --finish libs
Der Server arbeitet kurz und ich will weiter machen mit

Code: Select all

make install
Doch da hat taucht der Fehler auf:

Code: Select all

p15149767:/downloads/php-4.3.10 # libtool --finish libs
p15149767:/downloads/php-4.3.10 # make install
Installing PHP SAPI module:       apache2handler
/usr/share/apache2/build/instdso.sh SH_LIBTOOL='/usr/share/apache2/build/libtool' libphp4.la /usr/lib/apache2
/usr/share/apache2/build/libtool --mode=install cp libphp4.la /usr/lib/apache2/
cp .libs/libphp4.so /usr/lib/apache2/libphp4.so
cp .libs/libphp4.lai /usr/lib/apache2/libphp4.la
libtool: install: warning: remember to run `libtool --finish /downloads/php-4.3.10/libs'
chmod 755 /usr/lib/apache2/libphp4.so
apxs:Error: Config file /etc/apache2/httpd2-prefork.conf not found.
make: *** [install-sapi] Error 1
p15149767:/downloads/php-4.3.10 #
Der apxs2 prefork ist über YAST installiert, ich komm nicht so recht klar - Hoffe das ihr mir helfen könnt. Habe schon diverse Postings verflogt und alles so gemacht wie es beschrieben war, leider ohne Erfolg!

Die libphp4.so habe ich auch schon Manuell in usr/lib/apache2-prefork
kopiert.

Grüße
Markus

PS: Also ich hab meinen Apache ma neu gestartet und meine PHPFino zeigt mir 4.3.10 an aber ist der Fehler nicht irgendwie seltsam? Darf das denn sein? Funktionieren tut es aufjedenfall!
User avatar
Joe User
Project Manager
Project Manager
Posts: 11191
Joined: 2003-02-27 01:00
Location: Hamburg
Contact:
 

Re: PHP 4.3.10 Update Problem

Post by Joe User »

Code: Select all

cd /etc/apache2 && ln -s htpd.conf httpd2-prefork.conf && cd
PayPal.Me/JoeUserFreeBSD Remote Installation
Wings for LifeWings for Life World Run

„If there’s more than one possible outcome of a job or task, and one
of those outcomes will result in disaster or an undesirable consequence,
then somebody will do it that way.“ -- Edward Aloysius Murphy Jr.
maiki
Posts: 27
Joined: 2003-08-15 16:33
 

Re: PHP 4.3.10 Update Problem

Post by maiki »

ich habe leider auch ein kleines Problem beim Update auf 4.3.10

configuration und make klappen, bei make install kommt aber das:

Installing PHP SAPI module: apache2handler
/usr/share/apache2/build/instdso.sh SH_LIBTOOL='/usr/share/apache2/build/libtool' libphp4.la /usr/lib/apache2
/usr/share/apache2/build/libtool --mode=install cp libphp4.la /usr/lib/apache2/
cp .libs/libphp4.so /usr/lib/apache2/libphp4.so
cp .libs/libphp4.lai /usr/lib/apache2/libphp4.la
libtool: install: warning: remember to run `libtool --finish /root/php-4.3.10/libs'
chmod 755 /usr/lib/apache2/libphp4.so
apxs:Error: Activation failed for custom /etc/apache2/httpd2-prefork.conf file..
apxs:Error: At least one `LoadModule' directive already has to exist..
make: *** [install-sapi] Error 1

Sorry aber ich komm da nicht weiter hat da einer eine idee?
chaoskind
Posts: 80
Joined: 2003-05-20 10:47
Contact:
 

Re: PHP 4.3.10 Update Problem

Post by chaoskind »

@Maiki hmm also die fehlermeldung ist doch eindeutig in der httpd2-prefork.conf (oder httpd.conf) muss mindestens eine "LoadModule xxx_module modules/xxxx.so" stehen ... sonst kann das setup die Anweisung zum laden des PHP Modules nicht an die richtige stelle in der config stopfen
maiki
Posts: 27
Joined: 2003-08-15 16:33
 

Re: PHP 4.3.10 Update Problem

Post by maiki »

nagut Problem soweit gelöst einfach die zweile

LoadModule php4_module /usr/lib/apache2/libphp4.so in die httpd.conf eingetragen und make install hat funktioniert.

Apache neugestartet aber oh schreck phpinfo liefert als version immer noch
PHP 4.3.4, was ist den jetz schiefgelaufen ?

make install
Installing PHP SAPI module: apache2handler
/usr/share/apache2/build/instdso.sh SH_LIBTOOL='/usr/share/apache2/build/libtool' libphp4.la /usr/lib/apache2
/usr/share/apache2/build/libtool --mode=install cp libphp4.la /usr/lib/apache2/
cp .libs/libphp4.so /usr/lib/apache2/libphp4.so
cp .libs/libphp4.lai /usr/lib/apache2/libphp4.la
libtool: install: warning: remember to run `libtool --finish /root/php-4.3.10/libs'
chmod 755 /usr/lib/apache2/libphp4.so
[activating module `php4' in /etc/apache2/httpd2-prefork.conf]
Installing build environment: /usr/lib/php/build/
Installing header files: /usr/include/php/
Installing helper programs: /usr/bin/
program: phpize
program: php-config
program: phpextdist

das ist die ausgabe, danach habe ich nur noch den apache neugestartet.
maiki
Posts: 27
Joined: 2003-08-15 16:33
 

Re: PHP 4.3.10 Update Problem

Post by maiki »

ah hab ich eben vergessen dazu zu schreiben

beim aufruf kommt der Fehler wenn ich das php modul in der httpd.conf eintrage und den apache starten will.

rcapache2 start
Starting httpd2 (prefork) Syntax error on line 114 of /etc/apache2/httpd.conf:
Cannot load /usr/lib/apache2/libphp4.so into server: /usr/lib/apache2/libphp4.so: undefined symbol: sapi_globals

The command line was:
/usr/sbin/httpd2-prefork -f /etc/apache2/httpd.conf

ohne die zeile startet der Apache aber eben mit 4.3.4.

die libphp4.so ist aber da wo die hingehört.
maiki
Posts: 27
Joined: 2003-08-15 16:33
 

Re: PHP 4.3.10 Update Problem

Post by maiki »

also das ist höchst seltsam.

Ein Update auf 4.3.9 klappt einwandfrei. So langsam verstehe ich es nicht.
taker
Posts: 71
Joined: 2004-01-25 14:08
 

Re: PHP 4.3.10 Update Problem

Post by taker »

Bei mir ists auch seltsam, mein PHP 4.3.10 hat mein Rootie irgendwie geschmissen und jetzt läuft wieder 4.3.4

Sehr Seltsam.

Wenn ich es wieder kompiliere, habe ich den selben Fehler wie oben. Kann mir bei dem Problem jemand helfen?

Habe jetzt mal etwas weiter gemacht und habe das selbe Problem wie Maiki,
gena u der selbe Fehler nur das Problem ist das Ich WEDER auf 4.3.10 updaten kann noch auf php4.3.9
ich bekomme bei beiden den selben Fehler:
p15149767:/downloads/php-4.3.9 # make install
Installing PHP SAPI module: apache2handler
/usr/share/apache2/build/instdso.sh SH_LIBTOOL='/usr/share/apache2/build/libtool' libphp4.la /usr/lib/apache2
/usr/share/apache2/build/libtool --mode=install cp libphp4.la /usr/lib/apache2/
cp .libs/libphp4.so /usr/lib/apache2/libphp4.so
cp .libs/libphp4.lai /usr/lib/apache2/libphp4.la
libtool: install: warning: remember to run `libtool --finish /downloads/php-4.3.9/libs'
chmod 755 /usr/lib/apache2/libphp4.so
[activating module `php4' in /etc/apache2/httpd2-prefork.conf]
Installing build environment: /usr/lib/php/build/
Installing header files: /usr/include/php/
Installing helper programs: /usr/bin/
program: phpize
program: php-config
program: phpextdist
Danach bin ich zurück in der Commandline und auch ein Apache Neustart hat nichts gebracht - Leider

Hoffe es weiß jemand Rat

Grüße
Markus

EDIT: So Leute, also ich glaub ich habs... Es scheint einfacher zu sein als es ist.. Das Apache Prefork (/oder Work, je nachdem was man auswählt) braucht die Lib ... irgendwie hab ich das verpeilt...
maiki
Posts: 27
Joined: 2003-08-15 16:33
 

Re: PHP 4.3.10 Update Problem

Post by maiki »

hi

welche lib meinst du ?
Post Reply