ich habe mir vor Kurzem einen neuen vServer mit Plesk 9 und SuSE 10.3 geholt, wollte PHP von 5.2.6 auf 5.2.8 updaten. Habs mir geladen, den configure-Befehl aus der aktuellen phpinfo() genommen:
Code: Select all
'../configure' '--prefix=/usr' '--datadir=/usr/share/php5' '--mandir=/usr/share/man' '--bindir=/usr/bin' '--with-libdir=lib' '--includedir=/usr/include' '--sysconfdir=/etc/php5/apache2' '--with-config-file-path=/etc/php5/apache2' '--with-config-file-scan-dir=/etc/php5/conf.d' '--enable-libxml' '--enable-session' '--with-mm' '--with-pcre-regex=/usr' '--enable-xml' '--enable-simplexml' '--enable-spl' '--enable-filter' '--disable-debug' '--enable-inline-optimization' '--disable-rpath' '--disable-static' '--enable-shared' '--program-suffix=5' '--with-pic' '--with-gnu-ld' '--with-system-tzdata=/usr/share/zoneinfo' '--with-apxs2=/usr/sbin/apxs2' '--disable-all' '--disable-cli'
Code: Select all
# make install
Installing PHP SAPI module: apache2handler
/usr/share/apache2/build/instdso.sh SH_LIBTOOL='/usr/lib/apr-1/build/libtool' libphp5.la /usr/lib/apache2
/usr/lib/apr-1/build/libtool --mode=install cp libphp5.la /usr/lib/apache2/
cp .libs/libphp5.so /usr/lib/apache2/libphp5.so
cp .libs/libphp5.lai /usr/lib/apache2/libphp5.la
libtool: install: warning: remember to run `libtool --finish /root/php-5.2.8/libs'
chmod 755 /usr/lib/apache2/libphp5.so
activating php5
"php5" already present
Installing build environment: /usr/lib/php/build/
Installing header files: /usr/include/php/
Installing helper programs: /usr/bin/
program: phpize5
program: php-config5
Installing man pages: /usr/share/man/man1/
page: phpize5.1
page: php-config5.1
Code: Select all
# ./libtool --finish /root/php-5.2.8/libs
PATH="$PATH:/sbin" ldconfig -n /root/php-5.2.8/libs
----------------------------------------------------------------------
Libraries have been installed in:
/root/php-5.2.8/libs
If you ever happen to want to link against installed libraries
in a given directory, LIBDIR, you must either use libtool, and
specify the full pathname of the library, or use the `-LLIBDIR'
flag during linking and do at least one of the following:
- add LIBDIR to the `LD_LIBRARY_PATH' environment variable
during execution
- add LIBDIR to the `LD_RUN_PATH' environment variable
during linking
- use the `-Wl,--rpath -Wl,LIBDIR' linker flag
- have your system administrator add LIBDIR to `/etc/ld.so.conf'
See any operating system documentation about shared libraries for
more information, such as the ld(1) and ld.so(8) manual pages.
----------------------------------------------------------------------
dann zur Sicherheit auch mal /usr/local/psa/admin/sbin/websrvmng -a -v
und zuletzt rcapache2 restart
phpinfo() zeigt noch munter Version 5.2.6 an. Was hab ich denn vergessen?! Evtl falsches Verzeichnis? Obwohl ich den Befehl aus der phpinfo habe?!
Vielen Dank schonmal, hab bestimmt nur nen Anfängerfehler gemacht, den ich nach 2 Tagen google und Forumssuche irgendwie nicht finden konnte :(
CC