Join the community today
Become a Member

Install ioncube

Discussion in 'Add Ons' started by dooma, Oct 24, 2016.

  1. pamamolf

    pamamolf Premium Member Premium Member

    3,831
    374
    83
    May 31, 2014
    Ratings:
    +718
    Local Time:
    11:26 AM
    Nginx-1.17.x
    MariaDB 10.3.x
    Just check the latest installation that works great and permissions are set for 0644 there:

    Code:
    /usr/local/lib/php/extensions/no-debug-non-zts-20151012/ioncube.so
    All other extensions on that folder have 0755 permissions ....

    Is it better to use 0755 for ioncube.so also?
     
  2. eva2000

    eva2000 Administrator Staff Member

    44,780
    10,212
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +15,828
    Local Time:
    6:26 PM
    Nginx 1.17.x
    MariaDB 5.5/10.x
    just updated addons/ioncube.sh again, try update and re-run and see what file permissions are set
     
  3. pamamolf

    pamamolf Premium Member Premium Member

    3,831
    374
    83
    May 31, 2014
    Ratings:
    +718
    Local Time:
    11:26 AM
    Nginx-1.17.x
    MariaDB 10.3.x
    Now it is 0664 again and group:eek:wner change from root:root to 507:507 :(
     
  4. eva2000

    eva2000 Administrator Staff Member

    44,780
    10,212
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +15,828
    Local Time:
    6:26 PM
    Nginx 1.17.x
    MariaDB 5.5/10.x
    updated again, re-try now :D
     
  5. pamamolf

    pamamolf Premium Member Premium Member

    3,831
    374
    83
    May 31, 2014
    Ratings:
    +718
    Local Time:
    11:26 AM
    Nginx-1.17.x
    MariaDB 10.3.x
    Now it's ok :)

    if ok is root:root and 0755 :)
     
  6. pamamolf

    pamamolf Premium Member Premium Member

    3,831
    374
    83
    May 31, 2014
    Ratings:
    +718
    Local Time:
    11:26 AM
    Nginx-1.17.x
    MariaDB 10.3.x
    Also you may want to revert the previous fix with the -fa option ?

    If you revert the a option then it will be copied there as root and only 0755 will needed....

    maybe more easy to do it that way for your code?

    You know :)
     
  7. eva2000

    eva2000 Administrator Staff Member

    44,780
    10,212
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +15,828
    Local Time:
    6:26 PM
    Nginx 1.17.x
    MariaDB 5.5/10.x
    doesn't matter as chown and chmod override their preserved copied file attributes
     
  8. pamamolf

    pamamolf Premium Member Premium Member

    3,831
    374
    83
    May 31, 2014
    Ratings:
    +718
    Local Time:
    11:26 AM
    Nginx-1.17.x
    MariaDB 10.3.x
    Yes i know but in case that you don't need there an attribute that you overwrite in a few seconds after :)

    Thanks again !
     
  9. narji

    narji Member

    69
    6
    8
    Feb 4, 2016
    Ratings:
    +12
    Local Time:
    3:26 PM
    after upgrade php 7.1.0 from 7.0.13 centmin menu 22 then 2 ,back to centmin menu 5
    fail to load ioncube.so , mailparse.so
    Code:
    php -v
    Failed loading /usr/local/lib/php/extensions/no-debug-non-zts-20160303/ioncube.so:  /usr/local/lib/php/extensions/no-debug-non-zts-20160303/ioncube.so: cannot open shared object file: No such file or directory
    PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/local/lib/php/extensions/no-debug-non-zts-20160303/mailparse.so' - /usr/local/lib/php/extensions/no-debug-non-zts-20160303/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/no-debug-non-zts-20160303/redis.so' - /usr/local/lib/php/extensions/no-debug-non-zts-20160303/redis.so: cannot open shared object file: No such file or directory in Unknown on line 0
    PHP 7.1.0 (cli) (built: Dec  3 2016 02:00:54) ( NTS )
    Copyright (c) 1997-2016 The PHP Group
    Zend Engine v3.1.0-dev, Copyright (c) 1998-2016 Zend Technologies
        with Zend OPcache v7.1.0, Copyright (c) 1999-2016, by Zend Technologies
    
    remove svr ioncube
    # rm -rf /svr-setup/ioncube
    # cmdir
    /usr/local/src/centminmod /usr/local/lib/php/extensions/no-debug-non-zts-20160303
    # cd addons
    # ls -a
    .            avginstall.sh    ffmpeg.sh        golang.sh    linfo.sh        mysqladmin_shell.sh  passenger.sh         .rclone.conf  wpcli.sh
    ..           customcurl.sh    geoip.sh         ioncube.sh   maldet.sh       nodejs.sh            python27_install.sh  rclone.sh
    acmetool.sh  devtoolset-4.sh  git2_install.sh  ius-repo.sh  modsecurity.sh  opendkim.sh          python34_install.sh  wget.sh
    # ./ioncube.sh
    Failed loading /usr/local/lib/php/extensions/no-debug-non-zts-20160303/ioncube.so:  /usr/local/lib/php/extensions/no-debug-non-zts-20160303/ioncube.so: cannot open shared object file: No such file or directory
    PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/local/lib/php/extensions/no-debug-non-zts-20160303/mailparse.so' - /usr/local/lib/php/extensions/no-debug-non-zts-20160303/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/no-debug-non-zts-20160303/redis.so' - /usr/local/lib/php/extensions/no-debug-non-zts-20160303/redis.so: cannot open shared object file: No such file or directory in Unknown on line 0
    
    ioncube loader installation started
    ioncube loader only supports PHP 5.3, 5.4, 5.5, 5.6 & 7.0
    http://blog.ioncube.com/2016/09/15/php-7-ioncube-loaders/
    
    Failed loading /usr/local/lib/php/extensions/no-debug-non-zts-20160303/ioncube.so:  /usr/local/lib/php/extensions/no-debug-non-zts-20160303/ioncube.so: cannot open shared object file: No such file or directory
    PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/local/lib/php/extensions/no-debug-non-zts-20160303/mailparse.so' - /usr/local/lib/php/extensions/no-debug-non-zts-20160303/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/no-debug-non-zts-20160303/redis.so' - /usr/local/lib/php/extensions/no-debug-non-zts-20160303/redis.so: cannot open shared object file: No such file or directory in Unknown on line 0
    2016-12-03 16:01:45 URL:http://downloads3.ioncube.com/loader_downloads/ioncube_loaders_lin_x86-64.tar.gz [9125201/9125201] -> "ioncube_loaders_lin_x86-64.tar.gz" [1]
    ioncube/
    ioncube/ioncube_loader_lin_5.0.so
    ioncube/ioncube_loader_lin_4.3.so
    ioncube/ioncube_loader_lin_7.0_ts.so
    ioncube/ioncube_loader_lin_4.2.so
    ioncube/ioncube_loader_lin_5.6.so
    ioncube/ioncube_loader_lin_5.3.so
    ioncube/ioncube_loader_lin_5.5_ts.so
    ioncube/ioncube_loader_lin_5.4.so
    ioncube/loader-wizard.php
    ioncube/ioncube_loader_lin_4.3_ts.so
    ioncube/ioncube_loader_lin_5.5.so
    ioncube/LICENSE.txt
    ioncube/USER-GUIDE.pdf
    ioncube/ioncube_loader_lin_5.4_ts.so
    ioncube/ioncube_loader_lin_7.0.so
    ioncube/ioncube_loader_lin_5.3_ts.so
    ioncube/ioncube_loader_lin_4.4.so
    ioncube/ioncube_loader_lin_4.4_ts.so
    ioncube/ioncube_loader_lin_5.2.so
    ioncube/USER-GUIDE.txt
    ioncube/ioncube_loader_lin_4.1.so
    ioncube/README.txt
    ioncube/ioncube_loader_lin_5.1_ts.so
    ioncube/ioncube_loader_lin_5.0_ts.so
    ioncube/ioncube_loader_lin_5.1.so
    ioncube/ioncube_loader_lin_5.6_ts.so
    ioncube/ioncube_loader_lin_5.2_ts.so
    Failed loading /usr/local/lib/php/extensions/no-debug-non-zts-20160303/ioncube.so:  /usr/local/lib/php/extensions/no-debug-non-zts-20160303/ioncube.so: cannot open shared object file: No such file or directory
    PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/local/lib/php/extensions/no-debug-non-zts-20160303/mailparse.so' - /usr/local/lib/php/extensions/no-debug-non-zts-20160303/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/no-debug-non-zts-20160303/redis.so' - /usr/local/lib/php/extensions/no-debug-non-zts-20160303/redis.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-20160303/ioncube.so:  /usr/local/lib/php/extensions/no-debug-non-zts-20160303/ioncube.so: cannot open shared object file: No such file or directory
    PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/local/lib/php/extensions/no-debug-non-zts-20160303/mailparse.so' - /usr/local/lib/php/extensions/no-debug-non-zts-20160303/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/no-debug-non-zts-20160303/redis.so' - /usr/local/lib/php/extensions/no-debug-non-zts-20160303/redis.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-20160303/ioncube.so:  /usr/local/lib/php/extensions/no-debug-non-zts-20160303/ioncube.so: cannot open shared object file: No such file or directory
    PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/local/lib/php/extensions/no-debug-non-zts-20160303/mailparse.so' - /usr/local/lib/php/extensions/no-debug-non-zts-20160303/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/no-debug-non-zts-20160303/redis.so' - /usr/local/lib/php/extensions/no-debug-non-zts-20160303/redis.so: cannot open shared object file: No such file or directory in Unknown on line 0
    cp: cannot stat ‘ioncube/ioncube_loader_lin_7.1.so’: No such file or directory
    total 80K
    drwxr-xr-x. 2 root root 4.0K Dec  3 16:01 .
    drwxr-xr-x. 3 root root 4.0K Oct 26 18:44 ..
    -rw-r--r--  1 root root  350 Dec  3 01:23 a_customphp.ini
    -rw-r--r--  1 root root  350 Nov 27 21:56 a_customphp.ini-bak_031216-000939
    -rw-r--r--  1 root root  350 Dec  3 00:14 a_customphp.ini-bak_031216-011843
    -rw-r--r--  1 root root  350 Oct 20 13:39 a_customphp.ini-bak_041116-152636
    -rw-r--r--  1 root root  351 Sep 15 21:28 a_customphp.ini-bak_051016-211033
    -rw-r--r--  1 root root  350 Nov  4 15:31 a_customphp.ini-bak_101116-200631
    -rw-r--r--. 1 root root  350 Sep  6 02:35 a_customphp.ini-bak_150916-212418
    -rw-r--r--  1 root root  350 Oct  5 21:20 a_customphp.ini-bak_191016-210806
    -rw-r--r--  1 root root  350 Oct 19 21:11 a_customphp.ini-bak_201016-133605
    -rw-r--r--  1 root root  350 Nov 10 20:27 a_customphp.ini-bak_251116-150109
    -rw-r--r--  1 root root  350 Nov 25 15:06 a_customphp.ini-bak_271116-215201
    -rw-r--r--  1 root root   42 Dec  3 01:23 curlcainfo.ini
    -rw-r--r--. 1 root root   59 Dec  3 02:05 geoip.ini
    -rw-r--r--  1 root root   51 Dec  3 02:07 imagick.ini
    -rw-r--r--  1 root root   82 Dec  3 16:01 ioncube.ini
    -rw-r--r--. 1 root root   23 Sep  6 02:38 mailparse.ini
    -rw-r--r--. 1 root root   19 Sep  6 02:38 redis.ini
    -rw-r--r--  1 root root  695 Dec  3 01:23 zendopcache.ini
    
    total 2.6M
    drwxr-xr-x  2 root root 4.0K Dec  3 02:07 .
    drwxr-xr-x. 4 root root 4.0K Dec  3 00:50 ..
    -rwxr-xr-x  1 root root  82K Dec  3 02:05 geoip.so
    -rwxr-xr-x  1 root root 1.2M Dec  3 02:07 imagick.so
    -rwxr-xr-x  1 root root 811K Dec  3 02:05 opcache.a
    -rwxr-xr-x  1 root root 534K Dec  3 02:05 opcache.so
    
    ionCube Loader failed to install properly
    centos 7 123.09beta01
     
  10. eva2000

    eva2000 Administrator Staff Member

    44,780
    10,212
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +15,828
    Local Time:
    6:26 PM
    Nginx 1.17.x
    MariaDB 5.5/10.x
    ioncube doesn't have PHP 7.1.0 support yet
     
    Last edited: Dec 3, 2016
  11. ahmed

    ahmed Active Member

    338
    48
    28
    Feb 21, 2017
    Ratings:
    +60
    Local Time:
    10:26 AM
    Can we add a code to this automatically when upgrading PHP?

    most ppl will forget to run this until they see error on front end

    Code:
    ioncube loader installation completed
    you'll need to rerun ioncube.sh after each major PHP version upgrades
    PHP 5.3 to 5.4 or PHP 5.4 to PHP 5.5 to PHP 5.6 to PHP 7.0
    7.1 to 7.2, 7.2 to 7.3, 7.3 to 7.4 etc
     
  12. eva2000

    eva2000 Administrator Staff Member

    44,780
    10,212
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +15,828
    Local Time:
    6:26 PM
    Nginx 1.17.x
    MariaDB 5.5/10.x
    set PHPIONCUBE='y' in persistent config file /etc/centminmod/custom_config.inc to do it automatically :)
     
  13. ahmed

    ahmed Active Member

    338
    48
    28
    Feb 21, 2017
    Ratings:
    +60
    Local Time:
    10:26 AM
    Wow (period)

    is there anything centmin don’t have?