CyberPanel Community

How to install ioncube loader extension on php 8.1

DT
Digital Tasweq #1

Hello,
How can i install ioncube loader on PHP 8.1 and ubuntu 20.04
Thank you

26 replies
jo
josephgodwinke #2

Hello @digitaltasweq

Try this:

sh <(curl https://raw.githubusercontent.com/josephgodwinkimani/cyberpanel-mods/main/php_ioncube_install.sh || wget -O - https://raw.githubusercontent.com/josephgodwinkimani/cyberpanel-mods/main/php_ioncube_install.sh)
DT
Digital Tasweq #3

i got this error

root@vps:~# cp ioncube/ioncube_loader_lin_8.1.so /usr/local/lsws/lsphp81/lib64/php/modules/ioncube_loader_lin_8.1.so
cp: cannot create regular file '/usr/local/lsws/lsphp81/lib64/php/modules/ioncube_loader_lin_8.1.so': No such file or directory
jo
josephgodwinke #4

Check there was error with that command just fixed it

Za
Zang #5

I had same error, I made a bash script for this. You can run with this command.

bash <(curl -Ls https://raw.githubusercontent.com/erenaksoy/lsws-ioncube-installer/main/install.sh)
an
antivirusadmin #6

@Zang @josephgodwinke @digitaltasweq

Hi
Is it possible to install the ioncube for php 8 on cyberpanel?
is it work with new wordpress plugins that are compatible with new version of ioncube?
and is it important if I’m runing the openlitespeed?

an
antivirusadmin #8

Hi
Thanks for respond
I just want for php 8 not 8.1
these are not the same
most of plugins are not compatible with php 8.1

jo
josephgodwinke #9
sh <(curl https://raw.githubusercontent.com/josephgodwinkimani/cyberpanel-mods/main/php_ioncube_install.sh || wget -O - https://raw.githubusercontent.com/josephgodwinkimani/cyberpanel-mods/main/php_ioncube_install.sh)

A direct answer would be:

cd /usr/local/
sudo apt install wget -y
wget https://downloads.ioncube.com/loader_downloads/ioncube_loaders_lin_x86-64.tar.gz
tar -xvf ioncube_loaders_lin_x86-64.tar.gz -C /usr/local
cp ioncube/ioncube_loader_lin_8.0.so /usr/local/lsws/lsphp80/lib/php/20200930/
echo "extension=ioncube_loader_lin_8.0.so" >> /usr/local/lsws/lsphp80/etc/php/8.0/mods-available/01-ioncube.ini     
systemctl restart lsws
an
antivirusadmin #10


in this file there is no sign of ioncube_loader_lin_8.0.so
so what next?

jo
josephgodwinke #11

Sorry man i just stumbled upon the fact that Ioncube is usually skipping x.0 version of PHP, so, if you need loader, you need to upgrade to PHP 8.1 or downgrade to PHP 7.4

an
antivirusadmin #12

Hi
Thanks a lot,
In fact the new version of php is better than other versions but I have limitation on using new php
Thanks

an
antivirusadmin #13

I installed the ioncube with the ioncube installer and it gives me these warnings

Download one of the following archives of Loaders for Linux x86-64:
tar.gz
zip
Put the Loader files in /usr/local/lsws/lsphp81/lib/php/20210902
Edit the file /usr/local/lsws/lsphp81/etc/php/8.1/litespeed/php.ini and before any other zend_extension lines ensure that the following is included:
zend_extension = /usr/local/lsws/lsphp81/lib/php/20210902/ioncube_loader_lin_8.1.so
Restart the server software.
When the server software has restarted, click here to test the Loader.


Open basedir restrictions are in effect. This may affect the operation of this Loader Wizard.



Please note that the following problems currently exist with the ionCube Loader installation:
The following ini files could not be found by the Wizard: /usr/local/lsws/lsphp81/etc/php/8.1/litespeed/php.ini,/usr/local/lsws/lsphp81/etc/php/8.1/mods-available/20-timezone.ini,/usr/local/lsws/lsphp81/etc/php/8.1/mods-available/40-apcu.ini,/usr/local/lsws/lsphp81/etc/php/8.1/mods-available/40-igbinary.ini,/usr/local/lsws/lsphp81/etc/php/8.1/mods-available/40-imagick.ini,/usr/local/lsws/lsphp81/etc/php/8.1/mods-available/40-msgpack.ini,/usr/local/lsws/lsphp81/etc/php/8.1/mods-available/50-memcached.ini,/usr/local/lsws/lsphp81/etc/php/8.1/mods-available/50-redis.ini,/usr/local/lsws/lsphp81/etc/php/8.1/mods-available/curl.ini,/usr/local/lsws/lsphp81/etc/php/8.1/mods-available/imap.ini,/usr/local/lsws/lsphp81/etc/php/8.1/mods-available/intl.ini,/usr/local/lsws/lsphp81/etc/php/8.1/mods-available/ldap.ini,/usr/local/lsws/lsphp81/etc/php/8.1/mods-available/mysqli.ini,/usr/local/lsws/lsphp81/etc/php/8.1/mods-available/opcache.ini,/usr/local/lsws/lsphp81/etc/php/8.1/mods-available/pdo_dblib.ini,/usr/local/lsws/lsphp81/etc/php/8.1/mods-available/pdo_mysql.ini,/usr/local/lsws/lsphp81/etc/php/8.1/mods-available/pdo_pgsql.ini,/usr/local/lsws/lsphp81/etc/php/8.1/mods-available/pdo_sqlite.ini,/usr/local/lsws/lsphp81/etc/php/8.1/mods-available/pgsql.ini,/usr/local/lsws/lsphp81/etc/php/8.1/mods-available/pspell.ini,/usr/local/lsws/lsphp81/etc/php/8.1/mods-available/snmp.ini,/usr/local/lsws/lsphp81/etc/php/8.1/mods-available/sqlite3.ini,/usr/local/lsws/lsphp81/etc/php/8.1/mods-available/tidy.ini
This may be due to server restrictions in place.
The necessary zend_extension line could not be found in the configuration.

after fixed the, the Ioncube was installed and worked for me
Thanks for your script @Zang
And thanks to you @josephgodwinke

an
antivirusadmin #14

To day I got error , when I active the plugins that code by ioncube , I got this:

PHP Fatal error:  The file /home/oldsite.com/public_html/wp-content/plugins/plus/app/Providers/RTL_License_7fd36fd6ae51be17.php encoded as type [1/72] cannot be decoded by this version of the ionCube Loader.
jo
josephgodwinke #15

Kindly share which wordpress plugin you are using and the version. This looks like an ioncube mismatch which can only be solved by downgrading ioncube versions or plugin version. I would not recommend the latter option

an
antivirusadmin #17

Hi @josephgodwinke
How are you?
Did you got time to test the plugins?
Do you gave any Idea how install ioncube in cyberpanel to work on php 8.1 and upgrade the ioncube in php 7.4?
Thanks

jo
josephgodwinke #18

Hello @av_admin Sorry buddy

I forgot to get back to you here. I managed to install but have not tested yet.

OR

use this script so long as php 8.1 is default php version

sh <(curl https://raw.githubusercontent.com/josephgodwinkimani/cyberpanel-mods/main/php_ioncube_install.sh || wget -O - https://raw.githubusercontent.com/josephgodwinkimani/cyberpanel-mods/main/php_ioncube_install.sh)
sl
slambo #21

Hello brother and what if i want to install to 8.1 does it mean i change the code to

cp ioncube/ioncube_loader_lin_8.1.so /usr/local/lsws/lsphp81/lib/php/20200930/ or am wrong?

sl
slambo #22

is it possible you post same code but for php 8.1
this is my current php info

it shows php 7.4 yet i have php 8.1 and i need the ioncube loader v12.0.5 on php 8.1

jo
josephgodwinke #25

Regrettably, that version is not currently supported at this time.

Ro
Roberto #26

Hello! And on Ubuntu 22.04, how do I upgrade from ioncube 12 to ioncube 13 in PHP 8.1?
If you can help me I would really appreciate it! Thanks!

JS
Jesus Suarez #27

Just a quick clarification: ionCube versions are tied to PHP versions, not updated like traditional software (e.g., “ionCube 12” to “ionCube 13”). You don’t upgrade ionCube independently—you install the appropriate loader for the specific PHP version you’re using.

For example, if you’re using PHP 8.1, you’ll need the loader like ioncube_loader_lin_8.1.so—nothing else is required.

To make this easier, I’ve created a bash script that automatically installs the correct ionCube Loader for the following PHP versions on CyberPanel:

  • PHP 7.2
  • PHP 7.3
  • PHP 7.4
  • PHP 8.1
  • PHP 8.2

You can find and use the script here: https://github.com/jesussuarz/cyberpanel-php-ioncube-installer

Let me know if you need help running it!

Sign in to reply