Skip to main content

updating zend and ioncube

Comments

11 comments

  • dalem
    yum remove ea-php56-php-ioncube yum install ea-php56-php-ioncube5
    0
  • durangod
    Hi, thanks i removed everything and confirmed via phpinfo that all of zend and all of ioncube was gone and then reinstalled both again. So that i dont have to hassle with ioncube next time i set up my own dir for the ioncube files [QUOTE] /opt/cpanel/ea-php56/root/usr/lib64/php/custom_modules/ioncube/ioncube_files
    and uploaded all the loaders there.. then i added a custom ini file to the php.d dir [QUOTE] /opt/cpanel/ea-php56/root/etc/php.d/custom_ioncube.ini
    the inside that ini file [QUOTE] ; Enable IonCube Loader extension module zend_extension="/opt/cpanel/ea-php56/root/usr/lib64/php/custom_modules/ioncube/ioncube_files/ioncube_loader_lin_5.6.so"
    then i restared apache, and then confirmed via phpinfo that my custom ini file was loaded. However, for some reason the system still feels that the ioncube .so file should be in [QUOTE] Failed loading /opt/cpanel/ea-php56/root/usr/lib64/php/modules/ioncube_loader_lin_5.6.so:
    and i dont know why.. i have checked the php.ini that shows on the phpinfo and that url is not in there. I have also checked the php.d dir for anything that might load that settings (by the look of the file name) and nothing.. I did finally just copy the .so file up there to satisfy the server. But where would that config or ini be that sets the default ioncube to that location... ?
    0
  • durangod
    i found it by doing this ... [QUOTE]grep -r "ioncube_loader" /opt
    it was in this file [QUOTE]/opt/cpanel/ea-php56/root/etc/php.d/02-pecl.ini:zend_extension="/opt/cpanel/ea-php56/root/usr/lib64/php/modules/ioncube_loader_lin_5.6.so"
    I guess that is the (p)hp (e)xtension (c)ommunity (l)ibrary - i never heard of that before, I sure wish i could disable that so i dont have to have two zend_extension statements in two dif files. Anyone know how to do that? UPDATE: since i want to keep my custom install of ioncube. Is there a way to put an if statement inside my custom ini so that if the pecl does not load then mine will. something like: (i dont know if we can do if staments in ini files or not. if(zend-extension == null) { zend-extension = "my version" } this will remove the error message im getting that ioncube is already loaded. Or maybe i can just remove the setting in the pecl.ini file... I dont know if the system needs that file or not.
    0
  • 24x7server
    Hi, Did you ever manually installed the IonCube on your server and used it? If not, then the above would not be the cause of the problem.. You should perform the ioncube update via EasyApache 4 interface, where it resolves all the dependencies properly..
    0
  • durangod
    Yes but the problem is that doing it that way is not working to accept the 5.6.so file. My question also is why is there a pear.conf file /opt/cpanel/ea-php56/root/etc/pear.conf with a call to a 02-pecl.ini file for ioncube? Its very confusing... it would seem that it would be in a php.conf file all i want to do is run my own custom ioncube seperate from the default, that way i dont have to go chasing files, i know exactly where things are.
    0
  • durangod
    OK after some research here is what i believed happened here.. In WHM under module installers there is an option for pecl and it gets its packages from there
    0
  • cPanelMichael
    Hello, The following document lists the current versions of IonCube we offer for each PHP version: PHP Options - EasyApache 4 - cPanel Documentation
    0
  • durangod
    ok thank you sir, appreciate the reply. But no its the 5.6.so but i was advised by someone outside of cpanel to do my own install because it would be easier to update. But if you update them rather quickly i will be glad to let cpanel handle it... less to worry about... thanks so much... :) nice job..
    0
  • cPanelMichael
    But no its the 5.6.so

    Could you confirm which specific version that's in reference to? Thanks!
    0
  • durangod
    sure sorry.... ioncube_loader_lin_5.6.so x86-64 does that help.
    0
  • cPanelMichael
    Hello, Yes, you'd simply install it using the following command: yum install ea-php56-php-ioncube5
    Upon doing so, you should see that version reflected in the ini file that's automatically populated: cat /opt/cpanel/ea-php56/root/etc/php.d/01-ioncube.ini ; Enable Experimental v5 IonCube Loader extension module zend_extension="/opt/cpanel/ea-php56/root/usr/lib64/php/modules/ioncube_loader_lin_5.6.so"
    Keep in mind you cannot use ionCube 4, ionCube 5, and ionCube 6 simultaneously. You must choose one version, and note that ionCube 4 and 5 are not compatible with PHP 7: PHP Loader: ionCube 5 - EasyApache 4 - cPanel Documentation Thank you.
    0

Please sign in to leave a comment.