Zion Ahead

Well-Known Member
Nov 10, 2006
347
0
166
Setup (index.php in public_html):
<html><body><?php
#phpinfo();
$xsltProcessor = new XsltProcessor();
?></body></html>

Symptom:
Fatal error: Class 'XsltProcessor' not found in /home/user/public_html/index.php on line 6

Prob Cause:
php5-xsl / libxslt extension module not installed or enabled.


I already compiled apache with domxslt, but perhaps thats not the same as libxslt.

How do I correct this?

phpinfo does show dom-xslt already
 

siya

Member
Sep 28, 2006
22
0
151
I fixed it by manually recompiling PHP with --with-xsl along with other required configure options. During the recompile I came to notice that the following options are no longer supported in the current version (PHP-5.2.4)

Code:
Notice: Following unknown configure options were used:

--with-xml
--with-dom
--with-dom-xslt
--with-dom-exslt
--enable-mbstr-enc-trans
--enable-xslt
--with-xslt-sablot
--enable-track-vars
--enable-versioning

Check './configure --help' for available options
It appears that PHP-5.X doesn't support xslt but xsl. Cpanel may want to look into modify easyapache to remove the unsupported configure options and add xsl support.
 

cPanelDavidG

Technical Product Specialist
Nov 29, 2006
11,216
11
313
Houston, TX
cPanel Access Level
Root Administrator
I fixed it by manually recompiling PHP with --with-xsl along with other required configure options. During the recompile I came to notice that the following options are no longer supported in the current version (PHP-5.2.4)

Code:
Notice: Following unknown configure options were used:

--with-xml
--with-dom
--with-dom-xslt
--with-dom-exslt
--enable-mbstr-enc-trans
--enable-xslt
--with-xslt-sablot
--enable-track-vars
--enable-versioning

Check './configure --help' for available options
It appears that PHP-5.X doesn't support xslt but xsl. Cpanel may want to look into modify easyapache to remove the unsupported configure options and add xsl support.
You cannot add XSLT, only XSL to PHP 5 via the EasyApache 3 interface. For PHP 4, you can use XsltSablot but not XSL when using EasyApache 3.
 
Thread starter Similar threads Forum Replies Date
P General Discussion 0