Join the community today
Become a Member

Ioncube on PHP 7.2?

Discussion in 'Add Ons' started by BamaStangGuy, Mar 1, 2018.

  1. BamaStangGuy

    BamaStangGuy Active Member

    537
    164
    43
    May 25, 2014
    Ratings:
    +217
    Local Time:
    4:19 AM
    Currently it seems I can only get Ioncube working with PHP 7.0.x. 7.1.x and 7.2.x seem to break it. Is there Ioncube support out there for higher than 7.0 yet or am I missing something else?
     
  2. eva2000

    eva2000 Administrator Staff Member

    37,234
    8,134
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +12,523
    Local Time:
    8:19 PM
    Nginx 1.15.x
    MariaDB 5.5/10.x
    addons/ioncube.sh not working in Centmin Mod 123.09beta01 ? it should but i updated the addon in 123.09beta01 just now as download urls switched form non-HTTPS to HTTPS based.
     
  3. BamaStangGuy

    BamaStangGuy Active Member

    537
    164
    43
    May 25, 2014
    Ratings:
    +217
    Local Time:
    4:19 AM
    I used it on 7.2 and 7.1 and it did not work. Used it with 7.0 and it worked fine.

    It is possible it could be the add-on for Wordpress that is not compatible?
     
  4. pamamolf

    pamamolf Well-Known Member

    3,119
    295
    83
    May 31, 2014
    Ratings:
    +531
    Local Time:
    12:19 PM
    Nginx-1.13.x
    MariaDB 10.1.x
    I think it doesn't support 7.2 but it should work for 7.0 and 7.1....
     
  5. eva2000

    eva2000 Administrator Staff Member

    37,234
    8,134
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +12,523
    Local Time:
    8:19 PM
    Nginx 1.15.x
    MariaDB 5.5/10.x
    so ioncube compiles and loads fine in PHP 7.2

    on PHP 7.2 listed in modules output ?
    Code (Text):
    php -m
    

    but doesn't work in actual web app ? then it would be the web app/php script issue
     
  6. netheroez

    netheroez New Member

    20
    1
    3
    May 3, 2017
    Ratings:
    +1
    Local Time:
    5:19 PM
    Still waiting for an update from CentminMod. Because my friend said, he doesn't have an ioncube problem for wordpress on php 7.2 in vpssim.
     
  7. Matt

    Matt Moderator Staff Member

    795
    354
    63
    May 25, 2014
    Rotherham, UK
    Ratings:
    +537
    Local Time:
    10:19 AM
    1.5.15
    MariaDB 10.2
    Works fine on 7.2 I'm using it on my WHMCS server.
    Code:
    $ php -v
    PHP 7.2.9 (cli) (built: Aug 25 2018 08:22:56) ( NTS )
    Copyright (c) 1997-2018 The PHP Group
    Zend Engine v3.2.0, Copyright (c) 1998-2018 Zend Technologies
        with the ionCube PHP Loader (enabled) + Intrusion Protection from ioncube24.com (unconfigured) v10.2.4, Copyright (c) 2002-2018, by ionCube Ltd.
        with Zend OPcache v7.2.9, Copyright (c) 1999-2018, by Zend Technologies
     
    • Informative Informative x 1
  8. eva2000

    eva2000 Administrator Staff Member

    37,234
    8,134
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +12,523
    Local Time:
    8:19 PM
    Nginx 1.15.x
    MariaDB 5.5/10.x
    which version of centmin mod ? 123.09beta01 ? should work with PHP 7.2 as @Matt has demonstrated. IIRC with ioncube it has to the same version that the web app/script is encoded with or something like that? Don't remember where I read that? So what web app/script you need ioncube for ?
     
  9. netheroez

    netheroez New Member

    20
    1
    3
    May 3, 2017
    Ratings:
    +1
    Local Time:
    5:19 PM
    I don't use WHMCS. I only install wordpress with menu 2 on centmin. When using PHP version 5.6.37, there is no problem with ioncube. But when I tried upgrading to version 7.2.9, all of my web can't be opened with an error 500. I don't understand how to fix this. So I'm just waiting for good news from @eva2000 about this.
     
  10. eva2000

    eva2000 Administrator Staff Member

    37,234
    8,134
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +12,523
    Local Time:
    8:19 PM
    Nginx 1.15.x
    MariaDB 5.5/10.x
    Everytime you upgrade php to major version, you need to re-run addons/ioncube.sh to update ioncube version. Standard way :)
     
  11. netheroez

    netheroez New Member

    20
    1
    3
    May 3, 2017
    Ratings:
    +1
    Local Time:
    5:19 PM
    I use wordpress. But there is a plugin that requires me to install the ioncube.
     
  12. netheroez

    netheroez New Member

    20
    1
    3
    May 3, 2017
    Ratings:
    +1
    Local Time:
    5:19 PM
    Yup. I do that. And always restart php-fpm, nginx, and mysql after that.
     
  13. Matt

    Matt Moderator Staff Member

    795
    354
    63
    May 25, 2014
    Rotherham, UK
    Ratings:
    +537
    Local Time:
    10:19 AM
    1.5.15
    MariaDB 10.2
    The addon will be encoded to with a specific version of ioncube. This is why I had to wait to upgrade to 7.2 for WHMCS until they released an updated version with support for it.
     
  14. eva2000

    eva2000 Administrator Staff Member

    37,234
    8,134
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +12,523
    Local Time:
    8:19 PM
    Nginx 1.15.x
    MariaDB 5.5/10.x
    FYI, set in persistent config file /etc/centminmod/custom_config.inc variable PHPIONCUBE='y' then in future php upgrades via centmin.sh menu option 5, addons/ioncube.sh will be auto run too ;)

    Yeah that dependency.. so @netheroez might need to ask wp plugin developer which ioncube version if output of
    Code (Text):
    php -m
    

    lists ioncube but still doesn't work for you with that wp plugin
     
    • Agree Agree x 1
  15. netheroez

    netheroez New Member

    20
    1
    3
    May 3, 2017
    Ratings:
    +1
    Local Time:
    5:19 PM
    Need ioncube version 4.4 and above.
    Oh, I left the step to edit /etc/centminmod/custom_config.inc. I try to repeat again. And please help. Wait a moment, I will process now.
     
  16. eva2000

    eva2000 Administrator Staff Member

    37,234
    8,134
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +12,523
    Local Time:
    8:19 PM
    Nginx 1.15.x
    MariaDB 5.5/10.x
    Google search and found it Running Encoded PHP Scripts with ionCube Loader
     
  17. netheroez

    netheroez New Member

    20
    1
    3
    May 3, 2017
    Ratings:
    +1
    Local Time:
    5:19 PM
    Code:
    [08:05][[email protected] centminmod]# 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
    ionCube Loader
    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
    xml
    xmlreader
    xmlrpc
    xmlwriter
    xsl
    Zend OPcache
    zip
    zlib
    
    [Zend Modules]
    Zend OPcache
    the ionCube PHP Loader (enabled) + Intrusion Protection from ioncube24.com (unconfigured)
    
    Now my website is down.

    Code:
    [08:06][[email protected] ~]# php -v
    PHP 7.2.9 (cli) (built: Aug 31 2018 08:00:31) ( NTS )
    Copyright (c) 1997-2018 The PHP Group
    Zend Engine v3.2.0, Copyright (c) 1998-2018 Zend Technologies
        with the ionCube PHP Loader (enabled) + Intrusion Protection from ioncube24.com (unconfigured) v10.2.4, Copyright (c) 2002-2018, by ionCube Ltd.
        with Zend OPcache v7.2.9, Copyright (c) 1999-2018, by Zend Technologies

    This is one of my website
    Code:
    [08:08][[email protected] ~]# curl -I http://[remove].com
    HTTP/1.1 500 Internal Server Error
    Date: Fri, 31 Aug 2018 08:08:47 GMT
    Content-Type: text/html; charset=UTF-8
    Connection: keep-alive
    Set-Cookie: __cfduid=d153941c6d1bcdd5f7a9584f1659c525c1535702927; expires=Sat, 31-Aug-19 08:08:47 GMT; path=/; domain=.[remove]; HttpOnly
    X-Powered-By: centminmod
    X-Xss-Protection: 1; mode=block
    X-Content-Type-Options: nosniff
    Server: cloudflare
    CF-RAY: 452e02e3811c63e5-FRA
    
    Can you help me @eva2000 ?
     
    Last edited: Aug 31, 2018
  18. eva2000

    eva2000 Administrator Staff Member

    37,234
    8,134
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +12,523
    Local Time:
    8:19 PM
    Nginx 1.15.x
    MariaDB 5.5/10.x
    if you disable ioncube, the wordpress site is back up ? that could mean wp plugin encoder version could be issue so check with wp plugin dev

    or could be unrelated 500 error with another wp plugin - some folks related 500 errors due to latest cache enabler wp plugin update, they i think it could be clearfy wp plugin too see Wordpress - WP Cacher Enabler Plugin by KeyCDN folks

    what is wp plugin ?
     
  19. Matt

    Matt Moderator Staff Member

    795
    354
    63
    May 25, 2014
    Rotherham, UK
    Ratings:
    +537
    Local Time:
    10:19 AM
    1.5.15
    MariaDB 10.2
    you should also look into the error logs. If it's ioncube related, it usually spits out an error stating the files you are trying to use aren't encoded for a specific version.
     
  20. netheroez

    netheroez New Member

    20
    1
    3
    May 3, 2017
    Ratings:
    +1
    Local Time:
    5:19 PM
    If i remove ioncube, my web is alive.
    I use WP fastest Cache, do i deactivate first this plugin ?
    I use Magic Wallpress Plugin, it's just available on my country plugin. That's plugin who encrypt by ioncube.
     
..