Join the community today
Become a Member

ioncube loader Addon [beta]

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

  1. pamamolf

    pamamolf Premium Member Premium Member

    3,952
    402
    83
    May 31, 2014
    Ratings:
    +782
    Local Time:
    10:32 PM
    Nginx-1.17.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

    3,952
    402
    83
    May 31, 2014
    Ratings:
    +782
    Local Time:
    10:32 PM
    Nginx-1.17.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

    47,520
    10,785
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +16,765
    Local Time:
    6:32 AM
    Nginx 1.19.x
    MariaDB 5.5/10.x
    maybe
     
  4. pamamolf

    pamamolf Premium Member Premium Member

    3,952
    402
    83
    May 31, 2014
    Ratings:
    +782
    Local Time:
    10:32 PM
    Nginx-1.17.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

    47,520
    10,785
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +16,765
    Local Time:
    6:32 AM
    Nginx 1.19.x
    MariaDB 5.5/10.x
  6. pamamolf

    pamamolf Premium Member Premium Member

    3,952
    402
    83
    May 31, 2014
    Ratings:
    +782
    Local Time:
    10:32 PM
    Nginx-1.17.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

    47,520
    10,785
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +16,765
    Local Time:
    6:32 AM
    Nginx 1.19.x
    MariaDB 5.5/10.x
    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

    92
    6
    8
    Feb 20, 2016
    Ratings:
    +12
    Local Time:
    3:32 AM
    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

    47,520
    10,785
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +16,765
    Local Time:
    6:32 AM
    Nginx 1.19.x
    MariaDB 5.5/10.x
  10. pamamolf

    pamamolf Premium Member Premium Member

    3,952
    402
    83
    May 31, 2014
    Ratings:
    +782
    Local Time:
    10:32 PM
    Nginx-1.17.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

    47,520
    10,785
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +16,765
    Local Time:
    6:32 AM
    Nginx 1.19.x
    MariaDB 5.5/10.x
    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:
    6:32 AM
    latest
    5.5
    how can i uninstall ioncube ?
     
  13. pamamolf

    pamamolf Premium Member Premium Member

    3,952
    402
    83
    May 31, 2014
    Ratings:
    +782
    Local Time:
    10:32 PM
    Nginx-1.17.x
    MariaDB 10.3.x
    Just read the above post....
     
  14. eva2000

    eva2000 Administrator Staff Member

    47,520
    10,785
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +16,765
    Local Time:
    6:32 AM
    Nginx 1.19.x
    MariaDB 5.5/10.x
    yup post #31
     
  15. noly

    noly Member

    99
    16
    8
    Jul 24, 2017
    Germany
    Ratings:
    +28
    Local Time:
    9:32 PM
    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

    47,520
    10,785
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +16,765
    Local Time:
    6:32 AM
    Nginx 1.19.x
    MariaDB 5.5/10.x
    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 Premium Member Premium Member

    174
    90
    28
    Jul 29, 2019
    USA
    Ratings:
    +138
    Local Time:
    3:32 PM
    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

    47,520
    10,785
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +16,765
    Local Time:
    6:32 AM
    Nginx 1.19.x
    MariaDB 5.5/10.x
    Thanks for sharing. Feedback is always nice :D