php 5.2.1 Installation ... Probleme

ciubic

Mitglied
Hallo!

Ich hab ein Problem mit meiner neuen php Installation php 5.2.1:


Configure Befehl:

Code:
./configure --prefix=/usr --datadir=/usr/share/php5 --mandir=/usr/share/man --bindir=/usr/bin --libdir=/usr/lib --includedir=/usr/include --sysconfdir=/etc/php5/apache2 --with-config-file-path=/etc/php5/apache2 --with-exec-dir=/usr/lib/php5/bin --with-apxs2=/usr/sbin/apxs2 --with-_lib=lib --enable-magic-quotes --enable-libxml --enable-session --with-pcre-regex --enable-xml --enable-simplexml --enable-spl --enable-safe-mode --enable-sigchild --disable-debug --enable-memory-limit --enable-inline-optimization --disable-cli --with-pear=/usr/share/php5/PEAR --enable-bcmath=shared --enable-calendar=shared --enable-ctype=shared --enable-dba=shared --enable-dbase=shared --enable-dbx=shared --enable-dio=shared --enable-dom=shared --enable-exif=shared --enable-filepro=shared --enable-ftp=shared --enable-gd-native-ttf=shared --enable-gd-jis-conv=shared --enable-mbstring=shared --enable-mbregex --enable-pcntl=shared --enable-posix=shared --enable-shmop=shared --enable-soap=shared --enable-sockets=shared --enable-sysvmsg=shared --enable-sysvsem=shared --enable-sysvshm=shared --enable-tokenizer=shared --enable-wddx=shared --enable-yp=shared --with-zlib=shared --with-bz2=shared --with-curl=shared --with-gdbm=shared --with-cdb=shared --with-inifile=shared --with-flatfile=shared --with-fam=shared --with-gd=shared --enable-gd-native-ttf --with-xpm-dir=/usr/X11R6 --with-freetype-dir=yes --with-ttf --with-png-dir=/usr --with-jpeg-dir=/usr --with-zlib-dir=/usr --with-gettext=shared --with-gmp=shared --with-iconv=shared --with-kerberos --with-imap-ssl --with-ldap=shared --with-mcrypt=shared --with-mhash=shared --with-mysql=shared,/usr --with-mysql-sock=/var/lib/mysql/mysql.sock --with-mysqli=shared --enable-embedded-mysqli=shared --with-ncurses=shared --with-unixODBC=shared --with-openssl=shared --with-pgsql=shared --with-readline=shared --with-mm=shared --with-xmlrpc=shared --with-sqlite=shared,/usr --enable-sqlite-utf8 --with-xsl=shared --enable-xmlreader=shared --enable-ucd-snmp-hack=shared

danach
make
make install

Kein Fehler keine Warnung!

Nun wenn ich mir nun die phpinfo anschaue:

http://dev.ciubic.com/phpinfo/

Sind einige Funktionen nicht aktiv:

Wie mysql ftp ......

Ich bin total ratlos!:confused:

lg
Julian Nischler
 
Hi

Da du die Module als 'shared' kompilierst, musst du diese noch in der php.ini laden. Sprich wenn du z.B. die mysql Erweiterung willst, musst du sie in der php.ini mit extension=mysql.so laden. Dabei musst du drauf achten das die extension_dir richtig gesetzt ist.

Gruss
ZeroEnna
 
Hi

Hatte einen Fehler in dem configure Befehl.

Ich hatte vergessen:

Code:
  --with-config-file-scan-dir=/etc/php5/conf.d




Weil in dem Ordner hab ich die einzelnen INI’s die dann die Module einbauen!

Neue PhpInfo:

http://dev.ciubic.com/phpinfo/

extension_dir = /usr/lib/php5/extensions

Inhalt der geladenen INI zb: /etc/php5/conf.d/mysql.ini



Code:
extension=mysql




Inhalt Ordner: /usr/lib/php5/extensions:



Code:
:/usr/lib/php5/extensions # ll
  total 3704
  drwxr-xr-x  2 root root    4096 2005-04-23 09:26 .
  drwxr-xr-x  4 root root      33 2006-07-28 11:57 ..
  -rw-r--r--  1 root root   29328 2005-03-22 21:20 bcmath
  -rw-r--r--  1 root root   12096 2005-03-22 21:20 bz2
  -rw-r--r--  1 root root   22000 2005-03-22 21:20 calendar
  -rw-r--r--  1 root root    9524 2005-03-22 21:20 ctype
  -rw-r--r--  1 root root   45844 2005-03-22 21:20 curl
  -rw-r--r--  1 root root   49068 2005-03-22 21:20 dba
  -rw-r--r--  1 root root   27228 2005-03-22 21:20 dbase
  -rw-r--r--  1 root root   56412 2005-03-22 21:20 dbx
  -rw-r--r--  1 root root   14508 2005-03-22 21:20 dio
  -rw-r--r--  1 root root  127060 2005-03-22 21:20 dom
  -rw-r--r--  1 root root   47584 2006-06-07 03:10 exif
  -rw-r--r--  1 root root   10400 2005-03-22 21:20 fam
  -rw-r--r--  1 root root   10824 2005-03-22 21:20 filepro
  -rw-r--r--  1 root root   39988 2005-03-22 21:20 ftp
  -rw-r--r--  1 root root  314836 2006-06-07 03:10 gd
  -rw-r--r--  1 root root   10628 2005-03-22 21:20 gettext
  -rw-r--r--  1 root root   28164 2005-03-22 21:20 gmp
  -rw-r--r--  1 root root   28916 2005-03-22 21:20 iconv
  -rw-r--r--  1 root root   89980 2005-03-22 21:20 imap
  -rw-r--r--  1 root root   40244 2005-03-22 21:20 ldap
  -rw-r--r--  1 root root 1597748 2006-06-07 03:10 mbstring
  -rw-r--r--  1 root root   31760 2005-03-22 21:20 mcrypt
  -rw-r--r--  1 root root    7708 2005-03-22 21:20 mhash
  -rw-r--r--  1 root root   45132 2005-03-22 21:20 mysql
  -rw-r--r--  1 root root   89688 2006-06-07 03:10 mysqli
  -rw-r--r--  1 root root   70608 2005-03-22 21:20 ncurses
  -rw-r--r--  1 root root   58036 2005-03-22 21:20 odbc
  -rw-r--r--  1 root root   69472 2005-03-22 21:20 openssl
  -rw-r--r--  1 root root   16484 2005-03-22 21:20 pcntl
  -rw-r--r--  1 root root   82700 2005-03-22 21:20 pgsql
  -rw-r--r--  1 root root   17356 2005-03-22 21:20 posix
  -rw-r--r--  1 root root   11804 2005-03-22 21:20 readline
  -rw-r--r--  1 root root    8048 2005-03-22 21:20 shmop
  -rw-r--r--  1 root root   23072 2005-03-22 21:20 snmp
  -rw-r--r--  1 root root  257508 2005-03-22 21:20 soap
  -rw-r--r--  1 root root   36664 2005-03-22 21:20 sockets
  -rw-r--r--  1 root root   53488 2005-03-22 21:20 sqlite
  -rw-r--r--  1 root root   11220 2006-06-07 03:10 sysvmsg
  -rw-r--r--  1 root root    7340 2005-03-22 21:20 sysvsem
  -rw-r--r--  1 root root   10324 2006-06-07 03:10 sysvshm
  -rw-r--r--  1 root root   14532 2005-03-22 21:20 tokenizer
  -rw-r--r--  1 root root   31248 2005-03-22 21:20 wddx
  -rw-r--r--  1 root root   78180 2005-03-22 21:20 xmlrpc
  -rw-r--r--  1 root root   20672 2005-03-22 21:20 xsl
  -rw-r--r--  1 root root   12608 2005-03-22 21:20 yp
  -rw-r--r--  1 root root   20864 2005-03-22 21:20 zlib


Nur leider werden die Module immer noch nicht geladen!! siehe phpinfo:



http://dev.ciubic.com/phpinfo/


Komisch ist nur das genau diese „Config“ mit php 5.0 ohne Probleme funktioniert hat!!

lg
aus Salzburg (AT)
Julian Nischler
 
Habs ich hab jetzt die neuen Module von php5.2 verwendet nicht die von php5.0
jetzt geht alles!!

DANKE!
lg
Julian Nischler
 
Zurück