Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

wrong Ioncube Loader being loaded

Discussion in 'General Discussion' started by jimlongo, Oct 11, 2017.

  1. jimlongo

    jimlongo Well-Known Member

    Joined:
    Mar 20, 2008
    Messages:
    165
    Likes Received:
    3
    Trophy Points:
    68
    I ran the script /scripts/phpextensionmgr install IonCubeLoader

    phpinfo says I have Ioncube 4.75

    the app requires 5.6 to go with my PHP v5.6

    I looked at my php.ini and it has (uncommented)
    zend_extension="/usr/local/IonCube/ioncube_loader_lin_5.6.so"

    and that .so file is available in that location.

    What am I missing. I restarted apache.
     
  2. Muhammed Fasal

    Joined:
    Aug 9, 2017
    Messages:
    15
    Likes Received:
    1
    Trophy Points:
    3
    Location:
    India
    cPanel Access Level:
    Root Administrator
    Do you have EasyApache4 in your WHM? If yes, you can simply enable IonCube5.6 for PHP56.
     
  3. jimlongo

    jimlongo Well-Known Member

    Joined:
    Mar 20, 2008
    Messages:
    165
    Likes Received:
    3
    Trophy Points:
    68
    no I'm still on EA3
     
  4. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    38,658
    Likes Received:
    1,424
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Hello,

    Are you using any custom php.ini files within the account you are checking the PHPINFO file on?

    Thank you.
     
  5. jimlongo

    jimlongo Well-Known Member

    Joined:
    Mar 20, 2008
    Messages:
    165
    Likes Received:
    3
    Trophy Points:
    68
    I created a new folder at the root of the account, and put the app and its installer in there.
    PHPINFO doesn't indicate there are any other config files, it says /usr/local/lib/php.ini is the config file.

    So i don't think there's any other php.ini files involved.

    If I comment out the line zend_extension="/usr/local/IonCube/ioncube_loader_lin_5.6.so" then Ioncube is not loaded as you would expect.
    Uncomment it, and 4.75 is loaded.
     
    #5 jimlongo, Oct 11, 2017
    Last edited: Oct 11, 2017
  6. Muhammed Fasal

    Joined:
    Aug 9, 2017
    Messages:
    15
    Likes Received:
    1
    Trophy Points:
    3
    Location:
    India
    cPanel Access Level:
    Root Administrator
    You will need to install it manually.


    Download ioncube from their site according to your system: Loader Download - PHP Encoder, protection, installer and performance tools from ionCube

    So for example, for linux x86,
    Code:
    # cd /usr/local/src
    # wget http://downloads2.ioncube.com/loader_downloads/ioncube_loaders_lin_x86.tar.gz
    # tar -xfz ioncube_loaders_lin_x86.tar.gz
    # mv ioncube /usr/local 
    
    
    Use a text editor to open up php.ini in /usr/local/lib/phi.ini and insert:

    zend_extension=/usr/local/ioncube/ioncube_loader_lin_5.6.so

    according to your php version. Save and restart httpd.

    Let me know if it helps... ;)
     
    #6 Muhammed Fasal, Oct 11, 2017
    Last edited by a moderator: Oct 11, 2017
  7. jimlongo

    jimlongo Well-Known Member

    Joined:
    Mar 20, 2008
    Messages:
    165
    Likes Received:
    3
    Trophy Points:
    68
    Thanks, that sounds like what I've been thinking, but where are the download instructions from? I don't see them.
    Trying what you pasted,

    tar -xfz ioncube_loaders_lin_x86.tar.gz
    tar: z: Cannot open: No such file or directory
     
  8. Muhammed Fasal

    Joined:
    Aug 9, 2017
    Messages:
    15
    Likes Received:
    1
    Trophy Points:
    3
    Location:
    India
    cPanel Access Level:
    Root Administrator
    You need to download the tar file first from their site.

    For example, for linux x86, run below commands.
    Code:
    cd /usr/local/src
    wget http://downloads2.ioncube.com/loader_downloads/ioncube_loaders_lin_x86.tar.gz
    tar -xfz ioncube_loaders_lin_x86.tar.gz
    mv ioncube /usr/local
    
    Then follow the steps in my previous response. :)
     
    #8 Muhammed Fasal, Oct 11, 2017
    Last edited by a moderator: Oct 11, 2017
  9. jimlongo

    jimlongo Well-Known Member

    Joined:
    Mar 20, 2008
    Messages:
    165
    Likes Received:
    3
    Trophy Points:
    68
    Alright, I unzipped the proper package (x86-64) and ran the loader-wizard.php

    Now I have `with the ionCube PHP Loader (enabled) + Intrusion Protection from ioncube24.com (unconfigured) v10.0.3, Copyright (c) 2002-2017, by ionCube Ltd.`

    Thank you.
     
    #9 jimlongo, Oct 11, 2017
    Last edited: Oct 11, 2017
  10. Muhammed Fasal

    Joined:
    Aug 9, 2017
    Messages:
    15
    Likes Received:
    1
    Trophy Points:
    3
    Location:
    India
    cPanel Access Level:
    Root Administrator
    Glad to hear that it's working out for you! ;):)
     
Loading...

Share This Page