Comments on How to Install ionCube Loader on Debian 9
In this tutorial, we will explain how to install ionCube Loader on Debian 9 server. IonCube is a PHP extension that can be used for decoding secured encrypted PHP files at runtime.
7 Comment(s)
Comments
<quote>
Now, copy ioncube loader file to the PHP extension directory (/usr/lib/php/20151012) using the following command:
cd ioncube
cp ioncube_loader_lin_7.0.so /usr/lib/php/20151012/
</quote>
The command "cd ioncube" is not needed anymore since you have done it before:
<quote>
Now, change the directory to ioncube folder and run ls command to see all the extension:
cd ioncube
ls
</quote>
Hi, Thanks for this great tutorial.I have got the final output as shown here but when I try to install the script that requires ioncube loader, it throws an error that iconcube loader is disabled! Please advice...
Same for me :( ISPconfig tells "Site error: the ionCube PHP Loader needs to be installed. This is a widely used PHP extension for running ionCube protected PHP code, website security and malware blocking. Please visit get-loader.ioncube.com for install assistance."
I noticed in phpinfo() that "Loaded Configuration File" points to /etc/php5/cgi/ and I changed this php5-misslinking to /etc/php/7.3/cgi/ in the file: /var/www/php-fcgi-scripts/ispconfig/.php-fcgi-starter and restart apache2
The Site error disappeared but the Interface in Web, Mail, System, .. didn't come back to life.
Any Tipps or Ideas? Trying next night a reboot..
Thx
ISPConfig is not ioncube encoded and the file /var/www/php-fcgi-scripts/ispconfig/.php-fcgi-starter is not used for any websites hosted on your server, it is used exclusively for the non-ioncube encoded software that runs on port 8080, so adding ioncube there makes no sense and changing the config include path to a wrong PHP version must crash your system. To fix your problem, undo the changes that you made in /var/www/php-fcgi-scripts/ispconfig/.php-fcgi-starter
Back to your original problem, to enable ioncube in the website which runs ioncube encoded files, check out which php.ini is used on that site by using phpinfo() function and then add ioncube in that php.ini file, that's all.
The tutorial above adds ioncube loader for the PHP that ships with Debian, when you claim that you have php 7.3 installed, then that is definitely not the PHP from Debian as Debian 9 does not ship with PHP 7.3, it ships witrh PHP 7.0. So if you use a third party PHP 7.3 version and installed it in a different path, then you must edit the php.ini file of that third party PHP version and enable ioncube there and not in the default PHP from Debian.
Then you must have installed ioncube loader in a wrong php.ini which is not used by your script. use phpinfo() command in PHP in your website to find out which php.ini file is used by your website and then enable ioncube there.
Bonjour quand je fait php -v il dit : Failed loading /usr/lib/php/20180731/ioncube_loader_lin_7.3.so: /usr/lib/php/20180731/ioncube_loader_lin_7.3.so: wrong ELF class: ELFCLASS64
This means you are using a wrong binary type. Either your system runs a 32Bit kernel or your system is not an intel based processor, like a raspberry pi. In that case, download the right loaders for your processor platform.