How to configure / install xslt on php 5.3

7 posts / 0 new
Last post
#1 Sat, 05/28/2011 - 18:37
remibruggeman

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 ;)

Sat, 05/28/2011 - 18:44
Locutus

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
Sat, 05/28/2011 - 18:58
remibruggeman

I did a phpinfo() and found this:

Configure command:

'--with-dom-<b>xslt</b>=/usr'
'--with-dom-exslt=/usr'
...
'--with-<b>xsl<b>=shared,/usr'

That's all I found for XSL.

Using php5.3 for centos 5.5

Sat, 05/28/2011 - 19:00
Locutus

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

Sat, 05/28/2011 - 19:03
remibruggeman

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

Sat, 05/28/2011 - 19:12
andreychek

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

Sat, 05/28/2011 - 19:44
remibruggeman

Eric, you are a godsend!

Topic locked