Hi,
I'm installing mediawiki with MySQL and PHP 5.1.2 but when I start mediawiki I have :
Checking environment... PHP 5.1.2: ok PHP server API is apache2handler; ok, using pretty URLs (index.php/Page_Title) PHP's XML module is missing; the wiki requires functions in this module and won't work in this configuration. If you're running Mandrake, install the php-xml package.
But at installation I have : ----------------------------
===> Installing for mediawiki-1.5.6 ===> mediawiki-1.5.6 depends on file: /usr/local/include/php/main/php.h - found ===> mediawiki-1.5.6 depends on file: /usr/local/lib/php/20050922/iconv.so - found ===> mediawiki-1.5.6 depends on file: /usr/local/lib/php/20050922/mbstring.so - found ===> mediawiki-1.5.6 depends on file: /usr/local/lib/php/20050922/pcre.so - found ===> mediawiki-1.5.6 depends on file: /usr/local/lib/php/20050922/session.so - found ===> mediawiki-1.5.6 depends on file: /usr/local/lib/php/20050922/xml.so - found ===> mediawiki-1.5.6 depends on file: /usr/local/lib/php/20050922/zlib.so - found ===> mediawiki-1.5.6 depends on file: /usr/local/lib/php/20050922/imagick.so - found ===> mediawiki-1.5.6 depends on file: /usr/local/lib/php/20050922/readline.so - found
And in /usr/local/lib/php/20050922 I have : -------------------------------------------------
ls -l /usr/local/lib/php/20050922/ total 3726 -r--r--r-- 1 root wheel 32302 16 sep 18:35 bcmath.so -r--r--r-- 1 root wheel 23925 16 sep 18:36 calendar.so -r--r--r-- 1 root wheel 12744 16 sep 18:37 ctype.so -r--r--r-- 1 root wheel 145015 16 sep 18:38 dom.so -r--r--r-- 1 root wheel 52662 16 sep 18:39 exif.so -r--r--r-- 1 root wheel 37029 16 sep 18:39 ftp.so -r--r--r-- 1 root wheel 334854 16 sep 18:41 gd.so -r--r--r-- 1 root wheel 13645 16 sep 18:41 gettext.so -r--r--r-- 1 root wheel 33053 15 sep 14:52 iconv.so -r--r--r-- 1 root wheel 68582 15 sep 14:59 imagick.so -r--r--r-- 1 root wheel 91902 16 sep 18:44 imap.so -r--r--r-- 1 root wheel 1730824 15 sep 14:55 mbstring.so -r--r--r-- 1 root wheel 50324 16 sep 17:55 mysql.so -r--r--r-- 1 root wheel 79033 16 sep 18:45 openssl.so -r--r--r-- 1 root wheel 18307 16 sep 18:46 pcntl.so -r--r--r-- 1 root wheel 224964 15 sep 14:56 pcre.so -r--r--r-- 1 root wheel 21814 16 sep 18:47 posix.so -r--r--r-- 1 root wheel 17356 15 sep 15:00 readline.so -r--r--r-- 1 root wheel 53289 15 sep 14:56 session.so -r--r--r-- 1 root wheel 34042 16 sep 18:47 simplexml.so -r--r--r-- 1 root wheel 33650 16 sep 18:48 sockets.so -r--r--r-- 1 root wheel 331867 16 sep 18:49 sqlite.so -r--r--r-- 1 root wheel 16970 16 sep 18:50 tokenizer.so -r--r--r-- 1 root wheel 43385 16 sep 18:02 xml.so -r--r--r-- 1 root wheel 26163 16 sep 18:50 xmlreader.so -r--r--r-- 1 root wheel 87039 16 sep 18:51 xmlrpc.so -r--r--r-- 1 root wheel 34917 16 sep 18:52 xmlwriter.so -r--r--r-- 1 root wheel 10656 16 sep 18:53 zip.so -r--r--r-- 1 root wheel 31159 15 sep 14:58 zlib.so
And in php/extensions.ini I have : --------------------------------------
less /usr/local/etc/php/extensions.ini extension=mysql.so extension=xml.so extension=bcmath.so extension=calendar.so extension=ctype.so extension=dom.so extension=exif.so extension=ftp.so extension=gd.so extension=gettext.so extension=imap.so extension=openssl.so extension=pcntl.so extension=posix.so extension=simplexml.so extension=sockets.so extension=sqlite.so extension=tokenizer.so extension=xmlreader.so extension=xmlrpc.so extension=xmlwriter.so extension=zip.so
So I can't understand why it say : PHP's XML module is missing !
Any help ?
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
Michel wrote:
I'm installing mediawiki with MySQL and PHP 5.1.2 but when I start mediawiki I have :
Checking environment... PHP 5.1.2: ok PHP server API is apache2handler; ok, using pretty URLs (index.php/Page_Title) PHP's XML module is missing; the wiki requires functions in this module and won't work in this configuration. If you're running Mandrake, install the php-xml package.
[...]
So I can't understand why it say : PHP's XML module is missing !
MediaWiki is checking for the function utf8_encode() which is part of the ext/xml extension.
Fire up phpinfo() and make sure that either the 'XML' extension is loaded and that the right php.ini file is referenced. Maybe PHP is loading the wrong INI file.
HTH
mediawiki-l@lists.wikimedia.org