Get the most out of your Centmin Mod LEMP stack
Become a Member

ioncube loader Addon [beta]

Discussion in 'Add Ons' started by eva2000, Jul 8, 2014.

  1. pamamolf

    pamamolf Premium Member Premium Member

    4,068
    427
    83
    May 31, 2014
    Ratings:
    +832
    Local Time:
    9:53 AM
    Nginx-1.25.x
    MariaDB 10.3.x
    Great :)


    It should work with php7 also so all good :)

    Also as i can see they don't use versioning on the download link as the old versions so we will get automatically the latest version :)

    Cool :)
     
  2. pamamolf

    pamamolf Premium Member Premium Member

    4,068
    427
    83
    May 31, 2014
    Ratings:
    +832
    Local Time:
    9:53 AM
    Nginx-1.25.x
    MariaDB 10.3.x
    But after reading now the limitations i think it is better to use the old version 5.1.2 for php 5.6 and down and only when php 7 detected to use latest files.... as i think it will cause incompatibilities :(

    If you agree can you please adjust the addon?
     
  3. eva2000

    eva2000 Administrator Staff Member

    53,142
    12,108
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,643
    Local Time:
    4:53 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    maybe
     
  4. pamamolf

    pamamolf Premium Member Premium Member

    4,068
    427
    83
    May 31, 2014
    Ratings:
    +832
    Local Time:
    9:53 AM
    Nginx-1.25.x
    MariaDB 10.3.x
    Final thoughts :)

    Ok i think it is better to check for php 5.6 and down and use old link:

    Code:
    http://downloads3.ioncube.com/loader_downloads/ioncube_loaders_lin_x86-64_5.1.2.tar.gz
    and for new php 7 use latest link:

    Code:
    http://downloads3.ioncube.com/loader_downloads/ioncube_loaders_lin_x86-64.tar.gz
    As latest version of Ioncube on php 5.6 may not be the best option for compatibility ...

    Can you please adjust the script ? :)

    Thank you
     
    Last edited: Sep 30, 2016
  5. eva2000

    eva2000 Administrator Staff Member

    53,142
    12,108
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,643
    Local Time:
    4:53 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
  6. pamamolf

    pamamolf Premium Member Premium Member

    4,068
    427
    83
    May 31, 2014
    Ratings:
    +832
    Local Time:
    9:53 AM
    Nginx-1.25.x
    MariaDB 10.3.x
    Perfect :)

    Is the current code ready to use with option :

    Code:
    PHPIONCUBE='y'
    Also is there or needed any routine if i downgrade or upgrade to have a cleanup of other Ioncube versions newer or older ones so the new installation to be smooth without conflicts ?

    Thank you !!!!!
     
  7. eva2000

    eva2000 Administrator Staff Member

    53,142
    12,108
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,643
    Local Time:
    4:53 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    yes
    no just re-run addons/ioncube.sh after php upgrade or downgrade of major php versions i.e. going from 5.5 to 7.0 or 7.0 to 5.5
     
  8. arlon

    arlon Member

    95
    6
    8
    Feb 20, 2016
    Ratings:
    +12
    Local Time:
    1:53 PM
    1.13.6
    10.1
    ioncube supports php7 so you have to update this addon
    i got this when ran this addon:
     
  9. eva2000

    eva2000 Administrator Staff Member

    53,142
    12,108
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,643
    Local Time:
    4:53 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
  10. pamamolf

    pamamolf Premium Member Premium Member

    4,068
    427
    83
    May 31, 2014
    Ratings:
    +832
    Local Time:
    9:53 AM
    Nginx-1.25.x
    MariaDB 10.3.x
    Do i have to recompile php to remove ioncube or i can delete the related .ini file and just restart php?
     
  11. eva2000

    eva2000 Administrator Staff Member

    53,142
    12,108
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,643
    Local Time:
    4:53 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    command below lists all custom PHP extensions' ini file paths for extensions added by Centmin Mod specifically
    Code (Text):
    php --ini


    find the ioncube.ini path file and either delete it or edit it and comment out the extension load line and restart PHP-FPM service

    example
    Code (Text):
    php --ini
    Configuration File (php.ini) Path: /usr/local/lib
    Loaded Configuration File:         /usr/local/lib/php.ini
    Scan for additional .ini files in: /etc/centminmod/php.d
    Additional .ini files parsed:      /etc/centminmod/php.d/a_customphp.ini,
    /etc/centminmod/php.d/curlcainfo.ini,
    /etc/centminmod/php.d/geoip.ini,
    /etc/centminmod/php.d/igbinary.ini,
    /etc/centminmod/php.d/imagick.ini,
    /etc/centminmod/php.d/memcache.ini,
    /etc/centminmod/php.d/memcached.ini,
    /etc/centminmod/php.d/mongodb.ini,
    /etc/centminmod/php.d/redis.ini,
    /etc/centminmod/php.d/ioncube.ini

    then restart php-fpm
    Code (Text):
    service php-fpm restart

    or with command shortcut
    Code (Text):
    fpmrestart
     
  12. abakisensoy

    abakisensoy Member

    49
    3
    8
    Dec 2, 2016
    Ratings:
    +3
    Local Time:
    4:53 PM
    latest
    5.5
    how can i uninstall ioncube ?
     
  13. pamamolf

    pamamolf Premium Member Premium Member

    4,068
    427
    83
    May 31, 2014
    Ratings:
    +832
    Local Time:
    9:53 AM
    Nginx-1.25.x
    MariaDB 10.3.x
    Just read the above post....
     
  14. eva2000

    eva2000 Administrator Staff Member

    53,142
    12,108
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,643
    Local Time:
    4:53 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    yup post #31
     
  15. noly

    noly Member

    106
    16
    18
    Jul 24, 2017
    Germany
    Ratings:
    +28
    Local Time:
    8:53 AM
    1.18.x
    10.2.x
    While upgrading to php 7.0.26 and adding phpioncube to the custom_config.inc...

    Code:
    PHP_PGO='y'
    PHPDEBUGMODE='n'
    PHPFINFO='y'
    PHPIONCUBE='y'
    ...i get the following errors:

    Code:
    PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/local/lib/php/extensions/no-debug-non-zts-20151012/mailparse.so' - /usr/local/lib/php/extensions/no-debug-non-zts-20151012/mailparse.so: cannot open shared object file: No such file or directory in Unknown on line 0
    PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/local/lib/php/extensions/debug-non-zts-20151012/memcache.so' - /usr/local/lib/php/extensions/debug-non-zts-20151012/memcache.so: undefined symbol: _zval_ptr_dtor_wrapper in Unknown on line 0
    PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/local/lib/php/extensions/debug-non-zts-20151012/memcached.so' - /usr/local/lib/php/extensions/debug-non-zts-20151012/memcached.so: undefined symbol: _zval_ptr_dtor_wrapper in Unknown on line 0
    PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/local/lib/php/extensions/no-debug-non-zts-20151012/redis.so' - /usr/local/lib/php/extensions/no-debug-non-zts-20151012/redis.so: cannot open shared object file: No such file or directory in Unknown on line 0
    ...
    ...
    /svr-setup/php-7.0.25
    
    /svr-setup/php-7.0.25.tar.xz
    service php-fpm restart
    Gracefully shutting down php-fpm . done
    Starting php-fpm [27-Nov-2017 01:06:54] NOTICE: PHP message: PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/local/lib/php/extensions/no-debug-non-zts-20151012/mailparse.so' - /usr/local/lib/php/extensions/no-debug-non-zts-20151012/mailparse.so: cannot open shared object file: No such file or directory in Unknown on line 0
    [27-Nov-2017 01:06:54] NOTICE: PHP message: PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/local/lib/php/extensions/debug-non-zts-20151012/memcache.so' - /usr/local/lib/php/extensions/debug-non-zts-20151012/memcache.so: undefined symbol: _zval_ptr_dtor_wrapper in Unknown on line 0
    [27-Nov-2017 01:06:54] NOTICE: PHP message: PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/local/lib/php/extensions/debug-non-zts-20151012/memcached.so' - /usr/local/lib/php/extensions/debug-non-zts-20151012/memcached.so: undefined symbol: _zval_ptr_dtor_wrapper in Unknown on line 0
    [27-Nov-2017 01:06:54] NOTICE: PHP message: PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/local/lib/php/extensions/no-debug-non-zts-20151012/redis.so' - /usr/local/lib/php/extensions/no-debug-non-zts-20151012/redis.so: cannot open shared object file: No such file or directory in Unknown on line 0
     done
    PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/local/lib/php/extensions/no-debug-non-zts-20151012/mailparse.so' - /usr/local/lib/php/extensions/no-debug-non-zts-20151012/mailparse.so: cannot open shared object file: No such file or directory in Unknown on line 0
    PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/local/lib/php/extensions/debug-non-zts-20151012/memcache.so' - /usr/local/lib/php/extensions/debug-non-zts-20151012/memcache.so: undefined symbol: _zval_ptr_dtor_wrapper in Unknown on line 0
    PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/local/lib/php/extensions/debug-non-zts-20151012/memcached.so' - /usr/local/lib/php/extensions/debug-non-zts-20151012/memcached.so: undefined symbol: _zval_ptr_dtor_wrapper in Unknown on line 0
    PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/local/lib/php/extensions/no-debug-non-zts-20151012/redis.so' - /usr/local/lib/php/extensions/no-debug-non-zts-20151012/redis.so: cannot open shared object file: No such file or directory in Unknown on line 0
    7.0
    0
    And why is it saying "/svr-setup/php-7.0.25" when i am upgrading to 7.0.26 ? -_-
     
  16. eva2000

    eva2000 Administrator Staff Member

    53,142
    12,108
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,643
    Local Time:
    4:53 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    Using 123.09beta01 ? as it has better support for PHP 7+ extensions than 123.08stable.

    7.0.25 mention is just centmin mod purging previous download to keep disk usage in check

    recompiling those missing php extensions should fix it so for memcache/memcached centmin.sh menu option 10, for redis, centmin.sh 123.09beta01 menu option 13 submenu option 2

    mailparse doesn't have a dedicated menu option as it is auto reinstalled everytime you run centmin.sh menu option 5 for php update/downgrades.

    find your mailparse.ini full linux path via command
    Code (Text):
    php --ini
    

    output
    Code (Text):
    php --ini
    Configuration File (php.ini) Path: /usr/local/lib
    Loaded Configuration File:         /usr/local/lib/php.ini
    Scan for additional .ini files in: /etc/centminmod/php.d
    Additional .ini files parsed:      /etc/centminmod/php.d/a_customphp.ini,
    /etc/centminmod/php.d/curlcainfo.ini,
    /etc/centminmod/php.d/geoip.ini,
    /etc/centminmod/php.d/igbinary.ini,
    /etc/centminmod/php.d/imagick.ini,
    /etc/centminmod/php.d/mailparse.ini,
    /etc/centminmod/php.d/memcache.ini,
    /etc/centminmod/php.d/memcached.ini,
    /etc/centminmod/php.d/redis.ini,
    /etc/centminmod/php.d/zendopcache.ini
    

    then if you don't use mailparse php extension can just remove it and restart php-fpm
    Code (Text):
    rm -rf /etc/centminmod/php.d/mailparse.ini
    fpmrestart
    

    if you do use it, remove it like above but then re-run centmin.sh menu option 5 to recompile php version
     
  17. Rake-GH

    Rake-GH Active Member

    179
    93
    28
    Jul 29, 2019
    USA
    Ratings:
    +144
    Local Time:
    2:53 AM
    default
    default
    Just wanted to say I installed ioncube without any issues on the latest version of CMM using this script, thank you!
     
  18. eva2000

    eva2000 Administrator Staff Member

    53,142
    12,108
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,643
    Local Time:
    4:53 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    Thanks for sharing. Feedback is always nice :D
     
  19. eva2000

    eva2000 Administrator Staff Member

    53,142
    12,108
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,643
    Local Time:
    4:53 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
  20. Rake-GH

    Rake-GH Active Member

    179
    93
    28
    Jul 29, 2019
    USA
    Ratings:
    +144
    Local Time:
    2:53 AM
    default
    default
    They finally updated:

    Ioncube Loader v12
    It is important to remember that Ioncube Loader v12 is only compatible with PHP 8.1 and later

    (According to WHMCS + PHP 8.1 | WHMCS Blog )

    I had it installed on PHP 7.4.33 working fine.

    But trying to install IonCube Loader with the script failed on both PHP 8.1 and PHP 8.2

    Here's the error log:
    Code:
    Failed loading /usr/local/lib/php/extensions/no-debug-non-zts-20210902/ioncube.so:
    
    /usr/local/lib/php/extensions/no-debug-non-zts-20210902/ioncube.so: cannot open shared object file: No such file or directory
    
    PHP Startup: Unable to load dynamic library 'imagick.so' (tried: /usr/local/lib/php/extensions/no-debug-non-zts-20210902/imagick.so
    
    (/usr/local/lib/php/extensions/no-debug-non-zts-20210902/imagick.so: cannot open shared object file: No such file or directory)
    /usr/local/lib/php/extensions/no-debug-non-zts-20210902/imagick.so.so (/usr/local/lib/php/extensions/no-debug-non-zts-20210902/imagick.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0
    
    PHP Startup: Unable to load dynamic library '/usr/local/lib/php/extensions/no-debug-non-zts-20210902/memcache.so'
    (tried: /usr/local/lib/php/extensions/no-debug-non-zts-20210902/memcache.so
    (/usr/local/lib/php/extensions/no-debug-non-zts-20210902/memcache.so: cannot open shared object file: No such file or directory)
    /usr/local/lib/php/extensions/no-debug-non-zts-20210902//usr/local/lib/php/extensions/no-debug-non-zts-20210902/memcache.so.so
    (/usr/local/lib/php/extensions/no-debug-non-zts-20210902//usr/local/lib/php/extensions/no-debug-non-zts-20210902/memcache.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0
    
    Failed loading /usr/local/lib/php/extensions/no-debug-non-zts-20210902/ioncube.so:
    
    /usr/local/lib/php/extensions/no-debug-non-zts-20210902/ioncube.so: cannot open shared object file: No such file or directory
    
    PHP Startup: Unable to load dynamic library 'imagick.so' (tried: /usr/local/lib/php/extensions/no-debug-non-zts-20210902/imagick.so
    (/usr/local/lib/php/extensions/no-debug-non-zts-20210902/imagick.so: cannot open shared object file: No such file or directory)
    /usr/local/lib/php/extensions/no-debug-non-zts-20210902/imagick.so.so (/usr/local/lib/php/extensions/no-debug-non-zts-20210902/imagick.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0
    
    PHP Startup: Unable to load dynamic library '/usr/local/lib/php/extensions/no-debug-non-zts-20210902/memcache.so' (tried: /usr/local/lib/php/extensions/no-debug-non-zts-20210902/memcache.so
    (/usr/local/lib/php/extensions/no-debug-non-zts-20210902/memcache.so: cannot open shared object file: No such file or directory)
    /usr/local/lib/php/extensions/no-debug-non-zts-20210902//usr/local/lib/php/extensions/no-debug-non-zts-20210902/memcache.so.so
    (/usr/local/lib/php/extensions/no-debug-non-zts-20210902//usr/local/lib/php/extensions/no-debug-non-zts-20210902/memcache.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0
    cp: cannot stat ‘ioncube/ioncube_loader_lin_8.1.so’: No such file or directory
    
    chown: cannot access ‘/usr/local/lib/php/extensions/no-debug-non-zts-20210902/ioncube.so’: No such file or directory
    
    chmod: cannot access ‘/usr/local/lib/php/extensions/no-debug-non-zts-20210902/ioncube.so’: No such file or directory
    I didn't have much time to look at it yet