Piwik requires the PHP extension XML

(Mark) #1


I’m new Piwik and installing it for the first time with the goal of using in conjunction with a wordpress blog. I copied the files per instruction, but I get an error page that says:

When using PHP < 5.2.0, Piwik requires the PHP extension XML.
Please install this extension to continue using Piwik.
More information on [http://php.net/manual/en/xml.installation.php](http://php.net/manual/en/xml.installation.php)


So I checked the phpinfo for the server and it reports itself to be PHP Version 5.2.6. I followed the link and looked at the instructions for including XML in PHP, but PHP already appears to have libxml turned on. The compile options for my PHP server are:

'./configure' '--prefix=/usr/local/php5' '--with-config-file-scan-dir=/usr/local/php5/etc' '--with-apxs2=/usr/sbin/apxs' '--disable-all' '--enable-libxml' '--with-libxml-dir=/usr/local' '--enable-reflection' '--disable-cli' '--disable-cgi' '--enable-zend-multibyte' '--with-regex=system'

And further down the phpinfo Page I see:

libXML support 	active
libXML Version 	2.6.27
libXML streams 	enabled 

Can anyone help me understand what I’m doing wrong? I googled and searched the forums but didn’t see any with this specific issue.

Thanks in Advance for your Help!


(kolchak) #2

What does ‘php -v’ tell you?

(Mark) #3

I was able to get it working after recompiling PHP. Apparently the command line portion of php info wasn’t completely useful. Once I recompiled with XML support (and PDO) I was able to get past that screen.

Thanks for your help!