The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

libxslt

Discussion in 'General Discussion' started by Zion Ahead, Dec 7, 2006.

  1. Zion Ahead

    Zion Ahead Well-Known Member

    Joined:
    Nov 10, 2006
    Messages:
    347
    Likes Received:
    0
    Trophy Points:
    16
    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
     
  2. Zion Ahead

    Zion Ahead Well-Known Member

    Joined:
    Nov 10, 2006
    Messages:
    347
    Likes Received:
    0
    Trophy Points:
    16
  3. siya

    siya Member

    Joined:
    Sep 28, 2006
    Messages:
    22
    Likes Received:
    0
    Trophy Points:
    1
    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.
     
  4. cPanelDavidG

    cPanelDavidG Technical Product Specialist

    Joined:
    Nov 29, 2006
    Messages:
    11,279
    Likes Received:
    8
    Trophy Points:
    38
    Location:
    Houston, TX
    cPanel Access Level:
    Root Administrator
    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.
     

Share This Page