How to configure / install xslt on php 5.3

Hi,

The CMS I’m trying to use requires me to install XLST. The message it gives me:

requres PHP XSLT extension. Please enable it first then proceed with installation.

For PHP4, make sure that PHP is compiled with the following extensions:
–with-dom --enable-xslt --with-xslt-sablot

If these PHP extensions are enabled, then you can see domxml and xslt extensions in phpinfo() with the following options:
DOM/XML: enabled
XSLT support: enabled

For PHP5, make sure that PHP is compiled with the following extension:
–with-xsl

If this PHP extension is enabled, then you can see xslt extensions in phpinfo() with the following option:
XSLT support: enabled

Should I recompile php and add the option?
Should I install XLST first and then recompile?
Can I install XLST and just enable it?

I’m a bit in the dark here, and I can’t make any mistakes on this production server…

Thanks for your help :wink:

If you’re on Debian or Ubuntu: There’s a package named “php5-xsl”, which yields this output in phpinfo for me, implying that XSLT is active:

XSL enabled libxslt Version 1.1.26 libxslt compiled against libxml Version 2.7.6 EXSLT enabled libexslt Version 1.1.26

I did a phpinfo() and found this:

Configure command:
‘–with-dom-xslt=/usr’
‘–with-dom-exslt=/usr’

‘–with-xsl=shared,/usr’

That’s all I found for XSL.

Using php5.3 for centos 5.5

Okies, sorry then, I have no experience with CentOS myself. :slight_smile:

No problem, thanks for your input :slight_smile: I really appreciate it :slight_smile:
I looked for xsl packages, but YUM couldn’t find any (yum install xsl)

Howdy,

On CentOS, the PHP XSL module comes with the php-xml package.

So, try doing a “yum install php-xml”.

Also, to determine what package provides what you’re looking for – you can run a command such as this:

yum whatprovides “xsl

And then just grep for “php” in that output.

-Eric

Eric, you are a godsend!