Page 1 of 1

PHP compilieren und Version updaten geht nicht

Posted: 2004-01-26 15:34
by dpellenz
Hallo.
Ich habe PHP in den Ordner: usr/src/php-4.3.4 entpacket.
Nun führe ich PHP mit folgendem Befehl aus:

./configure --prefix=/usr/share --datadir=/usr/share/php
--bindir=/usr/bin --libdir=/usr/share --includedir=/usr/include
--with-_lib=lib --with-config-file-path=/etc
--with-exec-dir=/usr/lib/php/bin --disable-debug --enable-bcmath
--enable-calendar --enable-ctype --enable-dbase --enable-discard-path
--enable-exif --enable-filepro --enable-force-cgi-redirect --enable-ftp
--enable-gd-imgstrttf --enable-gd-native-ttf
--enable-inline-optimization --enable-magic-quotes
--enable-mbstr-enc-trans --enable-mbstring --enable-memory-limit
--enable-safe-mode --enable-shmop --enable-sigchild --enable-sysvsem
--enable-sysvshm --enable-track-vars --enable-trans-sid
--enable-versioning --enable-wddx --with-bz2
--with-dom=/usr/include/libxml2 --with-ftp --with-gdbm --with-gettext
--with-gmp --with-iodbc --with-jpeg-dir=/usr --with-ldap=yes
--with-mcal=/usr --with-mcrypt --with-mysql=/usr --with-ndbm
--with-pgsql=/usr --with-png-dir=/usr --with-t1lib --with-tiff-dir=/usr
--with-ttf --with-freetype-dir=yes --with-xml --with-xpm-dir=/usr/X11R6
--with-zlib=yes --with-gd=shared --with-openssl --with-curl
--with-swf=./dist/ --with-mm --with-apxs=/usr/sbin/apxs i586-suse-linux
--enable-sockets

Das funktioniert auch alles.
Danach starte ich den Apache neu mit dem Befehl: rcapache restart

Jedoch ist immernoch die alte PHP Version aktiv.
http://www.wbb2host.de/phpinfo.php

Re: PHP compilieren und Version updaten geht nicht

Posted: 2004-01-26 15:40
by schl

Re: PHP compilieren und Version updaten geht nicht

Posted: 2004-01-26 16:34
by dpellenz
Ja, Problem ist nur das ich die Sockets auf enable haben möchte.

Re: PHP compilieren und Version updaten geht nicht

Posted: 2004-01-27 14:15
by yasp
Habe das selbige Problem, woran kann es liegen?

Re: PHP compilieren und Version updaten geht nicht

Posted: 2004-01-27 14:30
by Joe User
Es liegt daran, dass Ihr planlos irgendwelche Optionen angebt, deren Auswirkungen und Nutzen Ihr nicht überblickt. Wie wäre es zur Abwechslung mit etwas RTFM?

Re: PHP compilieren und Version updaten geht nicht

Posted: 2004-01-27 14:50
by yasp
Ich habe keine zusätzlichen Optionen angeben, dennoch wird nach Neustart die alte Version angezeigt?

Falls ich zusätzlich --with-apxs angebe, kommt:

Sorry, I was not able to successfully run APXS. Possible reasons:

1. Perl is not installed;
2. Apache was not compiled with DSO support (--enable-module=so);
3. 'apxs' is not in your path. Try to use --with-apxs=/path/to/apxs
The output of apxs follows
./configure: line 3169: apxs: command not found
configure: error: Aborting


Was mache ich bloß falsch?

Re: PHP compilieren und Version updaten geht nicht

Posted: 2004-01-28 13:02
by dpellenz
Hallo.
Also ich ahbe jetzt Version 4.3.1 heruntergeladen und dann hat alles funktioniert!

Re: PHP compilieren und Version updaten geht nicht

Posted: 2004-01-28 16:21
by darkspirit
yasp wrote:1. Perl is not installed;
2. Apache was not compiled with DSO support (--enable-module=so);
3. 'apxs' is not in your path. Try to use --with-apxs=/path/to/apxs
The output of apxs follows
./configure: line 3169: apxs: command not found
configure: error: Aborting

Was mache ich bloß falsch?
Sollen wir vorlesen? apxs wird nicht gefunden, gib dem configure den absoluten Pfad mit auf den Weg. Wenn apxs nicht zu finden ist, fehlt dir das devel-Paket vom Indianer.