Learn about Centmin Mod LEMP Stack today
Register Now

PHP-FPM How do I enable PHP wddx module?

Discussion in 'Centmin Mod Insights' started by Mike Guista, Sep 3, 2018.

  1. Mike Guista

    Mike Guista New Member

    21
    10
    3
    Sep 15, 2014
    Ratings:
    +10
    Local Time:
    4:03 AM
    1.7.6
    10.x
    Hi everyone,

    Can anyone help me on how I can enable wddx with my centminmod installation?

    Source: PHP: Installation - Manual

    Your help will be much appreciated.

    Please fill in any relevant information that applies to you:
    • CentOS Version: CentOS 7.5 64bit
    • Centmin Mod Version Installed: 123.09beta01
    • Nginx Version Installed: i.e. 1.15.3
    • PHP Version Installed: 7.2.9
    • MariaDB MySQL Version Installed: 10.1.xx
    • When was last time updated Centmin Mod code base ? : Just a few hours ago
    • Persistent Config: No
     
  2. eva2000

    eva2000 Administrator Staff Member

    36,054
    7,910
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +12,192
    Local Time:
    9:03 PM
    Nginx 1.15.x
    MariaDB 5.5/10.x
    As installing wddx PHP extension only has one dependency for xml which is enabled by PHP by default, you can leverage PHP_EXTRAOPTS variable which allows you to pass additional PHP configuration options to php configuration options by editing or creating yourself the /etc/centminmod/custom_config.inc and set in the persistent config file the variable's additional options. You'll have to read up on php.net official documentation to understand which PHP configuration option needs to be passed and what system libraries are needed to be installed prior outlined at Beta Branch - Centmin Mod .09 beta branch Testing

    So for wddx as per PHP: Installation - Manual in /etc/centminmod/custom_config.inc persistent config file set
    Code (Text):
    PHP_EXTRAOPTS=" --with-xsl --enable-wddx"
    

    No need for expat option as PHP-FPM already uses expat
    Code (Text):
    lsof | grep expat | grep php
    php-fpm   26687            root  mem       REG              253,0    173320      10434 /usr/lib64/libexpat.so.1.6.0
    php-fpm   27706           nginx  mem       REG              253,0    173320      10434 /usr/lib64/libexpat.so.1.6.0
    

    Then recompile PHP-FPM via centmin.sh menu option 5
    Code (Text):
    php -v
    PHP 7.2.9 (cli) (built: Sep  3 2018 06:17:50) ( NTS )
    Copyright (c) 1997-2018 The PHP Group
    Zend Engine v3.2.0, Copyright (c) 1998-2018 Zend Technologies
        with Zend OPcache v7.2.9, Copyright (c) 1999-2018, by Zend Technologies

    verify wddx is loaded
    Code (Text):
    php --ri wddx
    
    wddx
    
    WDDX Support => enabled
    WDDX Session Serializer => enabled
    

    Code (Text):
    php -m
    [PHP Modules]
    bcmath
    bz2
    calendar
    Core
    ctype
    curl
    date
    dom
    enchant
    exif
    fileinfo
    filter
    ftp
    gd
    geoip
    gettext
    gmp
    hash
    iconv
    igbinary
    imagick
    imap
    intl
    json
    ldap
    libxml
    mailparse
    mbstring
    mcrypt
    memcache
    memcached
    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
    wddx
    xml
    xmlreader
    xmlrpc
    xmlwriter
    xsl
    Zend OPcache
    zip
    zlib
    
    [Zend Modules]
    Zend OPcache
    
     
    Last edited: Sep 3, 2018
..