These forums are locked and archived, but all topics have been migrated to the new forum. You can search for this topic on the new forum: Search for How to configure / install xslt on php 5.3 on the new forum.
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 ;)
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: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
Okies, sorry then, I have no experience with CentOS myself. :)
No problem, thanks for your input :) I really appreciate it :) 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!