Discover Centmin Mod today
Register Now

PHP-FPM PHP 7 XSL for magento2

Discussion in 'Nginx, PHP-FPM & MariaDB MySQL' started by duydangle, Jan 7, 2016.

  1. duydangle

    duydangle Member

    43
    7
    8
    May 30, 2014
    Ratings:
    +10
    Local Time:
    2:52 PM
    1.9.9
    10
    Hi everyone,

    I am testing php 7.0.1 and magento but magento requires xsl to be installed but I cannot find anywhere in centmin.sh to enable XSL.

    Have anyone tried using magento 2 on php 7?

    Thanks!
     
  2. eva2000

    eva2000 Administrator Staff Member

    28,989
    6,579
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +9,767
    Local Time:
    5:52 PM
    Nginx 1.13.x
    MariaDB 5.5
    Looks like libxlst packages are installed in Centmin Mod LEMP default installs just PHP configuration is missing the command to enable it --with-xsl if according to docs at PHP: Installation - Manual
    Code:
    yum list libxslt libxslt-devel -q
    Installed Packages
    libxslt.x86_64                                                                                                                1.1.28-5.el7                                                                                                           @base
    libxslt-devel.x86_64                                                                                                          1.1.28-5.el7                                                                                                           @base
    will test it out and see about adding it to Centmin Mod out of the box

    might also add an option file to add additional php configure options to default PHP configure routine :)
     
    • Like Like x 1
  3. eva2000

    eva2000 Administrator Staff Member

    28,989
    6,579
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +9,767
    Local Time:
    5:52 PM
    Nginx 1.13.x
    MariaDB 5.5
    Looks like libxslt packages are not installed on CentOS 6.x though so need to install them first
    Code:
     yum list libxslt libxslt-devel -q
    Available Packages
    libxslt.x86_64                                                                                                               1.1.26-2.el6_3.1                                                                                                         base
    libxslt-devel.x86_64                                                                                                         1.1.26-2.el6_3.1                                                                                                         base
    on CentOS 7.x works though so will need to add code to account for them missing on CentOS 6.x
    Code:
    php --ri xsl
    
    xsl
    
    XSL => enabled
    libxslt Version => 1.1.28
    libxslt compiled against libxml Version => 2.9.1
    EXSLT => enabled
    libexslt Version => 1.1.28
    Code:
    php -v
    PHP 7.0.2 (cli) (built: Jan  7 2016 05:38:35) ( NTS )
    Copyright (c) 1997-2015 The PHP Group
    Zend Engine v3.0.0, Copyright (c) 1998-2015 Zend Technologies
        with Zend OPcache v7.0.6-dev, Copyright (c) 1999-2015, by Zend Technologies
    Code:
    php -m
    [PHP Modules]
    bcmath
    bz2
    calendar
    Core
    ctype
    curl
    date
    dom
    enchant
    exif
    filter
    ftp
    gd
    geoip
    gettext
    gmp
    hash
    iconv
    igbinary
    imagick
    imap
    intl
    json
    libxml
    mailparse
    mbstring
    mcrypt
    memcache
    memcached
    mongodb
    mysqli
    mysqlnd
    openssl
    pcntl
    pcre
    PDO
    pdo_mysql
    pdo_sqlite
    Phar
    posix
    pspell
    readline
    redis
    Reflection
    session
    shmop
    SimpleXML
    snmp
    soap
    sockets
    SPL
    sqlite3
    standard
    sysvmsg
    sysvsem
    sysvshm
    tidy
    tokenizer
    xml
    xmlreader
    xmlrpc
    xmlwriter
    xsl
    Zend OPcache
    zip
    zlib
    
    [Zend Modules]
    Zend OPcache
     
  4. eva2000

    eva2000 Administrator Staff Member

    28,989
    6,579
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +9,767
    Local Time:
    5:52 PM
    Nginx 1.13.x
    MariaDB 5.5

    Add PHP XSL Support for Magento Requirements



    Updated both Centmin Mod 123.08stable and 123.09beta01 build to add support for PHP XSL module requirements for Magento. Also
    add inc/php_extraopts.inc and PHP_EXTRAOPTS variable support which allows you to pass additional PHP configuration options to php configuration options in inc/php_configure.inc set PHP_EXTRAOPTS variable as long as the required libraries for specific php option already exist or are installed i.e. https://community.centminmod.com/posts/23608/.

    Example in inc/php_extraopts.inc file contents below:
    Code:
    # allows you to pass additional PHP configuration options to
    # php configuration options in inc/php_configure.inc as long as
    # the required libraries for specific php option already exist
    # or are installed i.e. https://community.centminmod.com/posts/23608/
    PHP_EXTRAOPTS=" --with-xsl"
    To update your Centmin Mod builds follow instructions at centminmod.com/upgrade.html and respective version threads below:
    And then run centmin.sh menu option 5 to recompile your existing PHP version or upgraded PHP version to support PHP XSL :)
     
    • Informative Informative x 1