wrong Ioncube Loader being loaded

jimlongo

Well-Known Member
Mar 20, 2008
248
20
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.
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,910
2,213
363
Hello,

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

Thank you.
 

jimlongo

Well-Known Member
Mar 20, 2008
248
20
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.
 
Last edited:

Muhammed Fasal

Well-Known Member
Aug 9, 2017
54
10
8
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... ;)
 
Last edited by a moderator:

jimlongo

Well-Known Member
Mar 20, 2008
248
20
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
 

Muhammed Fasal

Well-Known Member
Aug 9, 2017
54
10
8
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. :)
 
Last edited by a moderator:

jimlongo

Well-Known Member
Mar 20, 2008
248
20
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.
 
Last edited: