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.

Php 5 and XSL: how can i active them?

Discussion in 'General Discussion' started by black&white, Dec 19, 2005.

  1. black&white

    black&white Well-Known Member

    Joined:
    Aug 10, 2004
    Messages:
    73
    Likes Received:
    0
    Trophy Points:
    0
    Hi,
    in which whay i can active XSL through WHM and with php 5.0.4 installed?

    Thank you for your help
     
  2. chirpy

    chirpy Well-Known Member

    Joined:
    Jun 15, 2002
    Messages:
    13,475
    Likes Received:
    20
    Trophy Points:
    38
    Location:
    Go on, have a guess
    By selecting the appropriate options in WHM > Software > Apache Update
     
  3. black&white

    black&white Well-Known Member

    Joined:
    Aug 10, 2004
    Messages:
    73
    Likes Received:
    0
    Trophy Points:
    0
    I can't find them :-(

    Which is the exact name of the library?

    Thanks again
     
  4. chirpy

    chirpy Well-Known Member

    Joined:
    Jun 15, 2002
    Messages:
    13,475
    Likes Received:
    20
    Trophy Points:
    38
    Location:
    Go on, have a guess
    There a choice of 2 "Dom XSLT" and "Sablot XSLT". Which one you use, is up to you - you'd have to do more research on the web for that.
     
  5. black&white

    black&white Well-Known Member

    Joined:
    Aug 10, 2004
    Messages:
    73
    Likes Received:
    0
    Trophy Points:
    0
  6. black&white

    black&white Well-Known Member

    Joined:
    Aug 10, 2004
    Messages:
    73
    Likes Received:
    0
    Trophy Points:
    0
    I can try to update apache and php to 5.0.5 but it doesn't work, php module remains at 5.0.4 :(
     
  7. internetfab

    internetfab Well-Known Member
    PartnerNOC

    Joined:
    Feb 20, 2003
    Messages:
    336
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Gothenburg, Sweden
    cPanel Access Level:
    DataCenter Provider
    Hmm seems there's no way to configure easyapache / php with:
    with--xsl option as described in:

    http://se.php.net/manual/en/ref.xsl.php

    Has anyone done it?
     
  8. chirpy

    chirpy Well-Known Member

    Joined:
    Jun 15, 2002
    Messages:
    13,475
    Likes Received:
    20
    Trophy Points:
    38
    Location:
    Go on, have a guess
    If it's something you want to do and it's not in easyapache you can modify the apache build aparmeters by playing with /home/cpapachebuild/buildapache/buildscript after having already done a successful build with the options that are available.
     
  9. internetfab

    internetfab Well-Known Member
    PartnerNOC

    Joined:
    Feb 20, 2003
    Messages:
    336
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Gothenburg, Sweden
    cPanel Access Level:
    DataCenter Provider
    Thanks Chirpy :) That helped :)
    Modified the file, added --with-xsl on all 4 instances of the configure string and it works!

    Now I just have to chmod 000 easyapache on that server ;)
     
  10. internetfab

    internetfab Well-Known Member
    PartnerNOC

    Joined:
    Feb 20, 2003
    Messages:
    336
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Gothenburg, Sweden
    cPanel Access Level:
    DataCenter Provider
    Ok stuck again. Did the same thing on another server - first it complained about not finding xslt-config - was missing the libxslt-devel. Installed that.

    Now it's not able to compile correctly. Threw an easyapache to wipe the slate clean, then just added --with-xsl. Same thing. Check the output below:

    configure php-5.0.4...(--with-apxs=/usr/local/apache/bin/apxs --prefix=/usr/local --with-xml --with-xsl --enable-bcmath --enable-calendar --with-curl --enable-exif --with-swf=/usr/local/flash --enable-ftp --with-gd --with-jpeg-dir=/usr/local --with-png-dir=/usr --with-xpm-dir=/usr/X11R6 --with-gettext --with-imap --with-imap-ssl --with-kerberos --enable-mbstring --enable-mbstr-enc-trans --enable-mbregex --with-mcrypt --enable-magic-quotes --with-mysqli --with-mysql=/usr --with-openssl --enable-discard-path --with-pear --enable-xslt --with-xslt-sablot --enable-safe-mode --enable-sockets --enable-track-vars --with-ttf --with-freetype-dir=/usr --enable-gd-native-ttf --enable-versioning --enable-wddx --with-xmlrpc --with-zip --with-zlib).......................................Done
    make -j 2 php-5.0.4...(clean)....Done
    make -j 2 php-5.0.4...................................................................................................................................................................................Done
    make: *** [sapi/cli/php] Error 1
    make: *** Waiting for unfinished jobs....
    make: *** Waiting for unfinished jobs....
    make php-5.0.4...(install)......Done


    Anyone got an idea? Or where Im able to get any more information from logs?
     
  11. internetfab

    internetfab Well-Known Member
    PartnerNOC

    Joined:
    Feb 20, 2003
    Messages:
    336
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Gothenburg, Sweden
    cPanel Access Level:
    DataCenter Provider
    The new server is using Zend Optimizer, the other one where it works - is not.
    Could that have something to do with it?
     
  12. internetfab

    internetfab Well-Known Member
    PartnerNOC

    Joined:
    Feb 20, 2003
    Messages:
    336
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Gothenburg, Sweden
    cPanel Access Level:
    DataCenter Provider
    Zend doesnt seem to have anything to do with it..

    Another thing - easyapache / buildapache on the server where it aint working is NOT compiling libxslt during the apache update.

    It is though on two other servers where xsl is working.

    Server is running latest release 113. The other two are R30 and C112.
     
  13. etono

    etono Member

    Joined:
    Jun 20, 2005
    Messages:
    12
    Likes Received:
    0
    Trophy Points:
    1
    Can you possibly post your edits? I am in the same position, I need to enable XSL extension.
     
  14. internetfab

    internetfab Well-Known Member
    PartnerNOC

    Joined:
    Feb 20, 2003
    Messages:
    336
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Gothenburg, Sweden
    cPanel Access Level:
    DataCenter Provider
    Ok here goes a mini guide.

    First, run a normal apache upgrade through WHM with what you want checked.
    Then SSH to the server and edit: /home/cpapachebuild/buildapache/buildscript with vi or some other editor.

    Go almost all the way down to where the arguments for compiling PHP are.
    They look "somewhat" like these:

    Code:
    if [ "1" = "1" ]; then
            LDFLAGS="-L/usr/X11R6/lib64 -lstdc++" $configure $PIC $APXS --prefix=/usr/local --with-xml --with-xsl $MM   --enable-bcmath --enable-calendar  --with-curl    --enable-exif  --with-swf=/usr/local/flash  --enable-ftp $WITHGD --with-gettext  --with-iconv   $WITHIMAP --enable-mbstring --enable-mbstr-enc-trans --enable-mbregex --with-mcrypt --enable-magic-quotes $WITHMYSQL --with-openssl  --enable-discard-path  --with-pear   --enable-xslt --with-xslt-sablot   --enable-safe-mode  --enable-sockets --enable-track-vars $ttfopts --enable-versioning --with-xmlrpc --with-zip --with-zlib
    else
            LDFLAGS="-L/usr/X11R6/lib64" $configure $PIC $APXS --prefix=/usr/local --with-xml --with-xsl $MM   --enable-bcmath --enable-calendar  --with-curl    --enable-exif  --with-swf=/usr/local/flash  --enable-ftp $WITHGD --with-gettext  --with-iconv   $WITHIMAP --enable-mbstring --enable-mbstr-enc-trans --enable-mbregex --with-mcrypt --enable-magic-quotes $WITHMYSQL --with-openssl  --enable-discard-path  --with-pear   --enable-xslt --with-xslt-sablot   --enable-safe-mode  --enable-sockets --enable-track-vars $ttfopts --enable-versioning --with-xmlrpc --with-zip --with-zlib
    fi
    echo "#undef COMPILE_DL_ZLIB" >> main/php_config.h
    echo "#define HAVE_SENDMAIL 1" >> main/php_config.h
    $make clean
    perl -pe 's/(EXTRA_LIBS.*-lmysqlclient.*)-lmysqlclient/$1/' -i Makefile
    LDFLAGS="-L/usr/X11R6/lib64 -lstdc++" $make
    /scripts/doomhttpd
    $makeinstall install
    sleep 1
    /scripts/restartsrv_httpd
    if [ "1" = "1" ]; then
            LDFLAGS="-L/usr/X11R6/lib64 -lstdc++" $configure $PIC --prefix=/usr --with-xml --with-xsl $MM   --enable-bcmath --enable-calendar  --with-curl    --enable-exif  --with-swf=/usr/local/flash  --enable-ftp $WITHGD --with-gettext  --with-iconv   $WITHIMAP --enable-mbstring --enable-mbstr-enc-trans --enable-mbregex --with-mcrypt --enable-magic-quotes $WITHMYSQL --with-openssl  --enable-discard-path  --with-pear   --enable-xslt --with-xslt-sablot   --enable-safe-mode  --enable-sockets --enable-track-vars $ttfopts --enable-versioning --with-xmlrpc --with-zip --with-zlib
    else
            LDFLAGS="-L/usr/X11R6/lib64" $configure $PIC --prefix=/usr --with-xml --with-xsl $MM   --enable-bcmath --enable-calendar  --with-curl    --enable-exif  --with-swf=/usr/local/flash  --enable-ftp $WITHGD --with-gettext  --with-iconv   $WITHIMAP --enable-mbstring --enable-mbstr-enc-trans --enable-mbregex --with-mcrypt --enable-magic-quotes $WITHMYSQL --with-openssl  --enable-discard-path  --with-pear   --enable-xslt --with-xslt-sablot   --enable-safe-mode  --enable-sockets --enable-track-vars $ttfopts --enable-versioning --with-xmlrpc --with-zip --with-zlib
    fi
    What you want to do is add --with-xsl in there. So just add it to all 4 parts. Should look like this afterwards:

    Code:
    if [ "1" = "1" ]; then
            LDFLAGS="-L/usr/X11R6/lib64 -lstdc++" $configure $PIC $APXS --prefix=/usr/local --with-xml $MM   --enable-bcmath --enable-calendar  --with-curl    --enable-exif  --with-swf=/usr/local/flash  --enable-ftp $WITHGD --with-gettext  --with-iconv   $WITHIMAP --enable-mbstring --enable-mbstr-enc-trans --enable-mbregex --with-mcrypt --enable-magic-quotes $WITHMYSQL --with-openssl  --enable-discard-path  --with-pear   --enable-xslt --with-xslt-sablot   --enable-safe-mode  --enable-sockets --enable-track-vars $ttfopts --enable-versioning --with-xmlrpc --with-zip --with-zlib --with-xsl
    else
            LDFLAGS="-L/usr/X11R6/lib64" $configure $PIC $APXS --prefix=/usr/local --with-xml $MM   --enable-bcmath --enable-calendar  --with-curl    --enable-exif  --with-swf=/usr/local/flash  --enable-ftp $WITHGD --with-gettext  --with-iconv   $WITHIMAP --enable-mbstring --enable-mbstr-enc-trans --enable-mbregex --with-mcrypt --enable-magic-quotes $WITHMYSQL --with-openssl  --enable-discard-path  --with-pear   --enable-xslt --with-xslt-sablot   --enable-safe-mode  --enable-sockets --enable-track-vars $ttfopts --enable-versioning --with-xmlrpc --with-zip --with-zlib --with-xsl
    fi
    echo "#undef COMPILE_DL_ZLIB" >> main/php_config.h
    echo "#define HAVE_SENDMAIL 1" >> main/php_config.h
    $make clean
    perl -pe 's/(EXTRA_LIBS.*-lmysqlclient.*)-lmysqlclient/$1/' -i Makefile
    LDFLAGS="-L/usr/X11R6/lib64 -lstdc++" $make
    /scripts/doomhttpd
    $makeinstall install
    sleep 1
    /scripts/restartsrv_httpd
    if [ "1" = "1" ]; then
            LDFLAGS="-L/usr/X11R6/lib64 -lstdc++" $configure $PIC --prefix=/usr --with-xml $MM   --enable-bcmath --enable-calendar  --with-curl    --enable-exif  --with-swf=/usr/local/flash  --enable-ftp $WITHGD --with-gettext  --with-iconv   $WITHIMAP --enable-mbstring --enable-mbstr-enc-trans --enable-mbregex --with-mcrypt --enable-magic-quotes $WITHMYSQL --with-openssl  --enable-discard-path  --with-pear   --enable-xslt --with-xslt-sablot   --enable-safe-mode  --enable-sockets --enable-track-vars $ttfopts --enable-versioning --with-xmlrpc --with-zip --with-zlib --with-xsl
    else
            LDFLAGS="-L/usr/X11R6/lib64" $configure $PIC --prefix=/usr --with-xml $MM   --enable-bcmath --enable-calendar  --with-curl    --enable-exif  --with-swf=/usr/local/flash  --enable-ftp $WITHGD --with-gettext  --with-iconv   $WITHIMAP --enable-mbstring --enable-mbstr-enc-trans --enable-mbregex --with-mcrypt --enable-magic-quotes $WITHMYSQL --with-openssl  --enable-discard-path  --with-pear   --enable-xslt --with-xslt-sablot   --enable-safe-mode  --enable-sockets --enable-track-vars $ttfopts --enable-versioning --with-xmlrpc --with-zip --with-zlib --with-xsl
    fi
    Then just save the file and run: /home/cpapachebuild/buildapache/buildscript
    Remember, if you do a normal upgrade through WHM you will loose that xsl again.
     
  15. etono

    etono Member

    Joined:
    Jun 20, 2005
    Messages:
    12
    Likes Received:
    0
    Trophy Points:
    1
    Thank you so much internetfab! I will try to get this done tonight. What a perfect example!
     
  16. dazmanultra

    dazmanultra Member

    Joined:
    Nov 9, 2004
    Messages:
    14
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    DataCenter Provider
    Tried the above, I seem to be getting the following error:-
     
  17. Sash

    Sash Well-Known Member

    Joined:
    Feb 18, 2003
    Messages:
    252
    Likes Received:
    0
    Trophy Points:
    16
    Does anybody have a fix for this?

    Thanks
    Mike
     
  18. internetfab

    internetfab Well-Known Member
    PartnerNOC

    Joined:
    Feb 20, 2003
    Messages:
    336
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Gothenburg, Sweden
    cPanel Access Level:
    DataCenter Provider
    Did you guys run a normal easyapache upgrade through WHM first?
     
  19. Sash

    Sash Well-Known Member

    Joined:
    Feb 18, 2003
    Messages:
    252
    Likes Received:
    0
    Trophy Points:
    16
    Yes, we did. Many times....

    Mike
     
  20. kmslogic

    kmslogic Registered

    Joined:
    Aug 12, 2006
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    1
    Bottom line, though, shouldn't WHM be adding that --with-xls directive when you check the dom-xslt box which only applies to php5? I mean I like building the whole system twice as much as the next guy but...
     
Loading...

Share This Page