Trying to install ioncube loader extension on php 8.1 with | (josephgodwinke script)

i’m using this script
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)
but I got this error after using it
image

Hello @Dark47 Happy you are here

Run this

wget https://downloads.ioncube.com/loader_downloads/ioncube_loaders_lin_x86-64.tar.gz
tar -xvf ioncube_loaders_lin_x86-64.tar.gz 
cp ioncube/ioncube_loader_lin_8.1.so /usr/local/lsws/lsphp81/lib/php/20210902/
echo "zend_extension=ioncube_loader_lin_8.1.so" >> /usr/local/lsws/lsphp81/etc/php/8.1/mods-available/01-ioncube.ini     
systemctl restart lsws
rm -rf ioncube_loaders_lin_x86-64.tar.gz
1 Like

Distributor ID: Ubuntu
Description: Ubuntu 20.04.5 LTS
Release: 20.04
Codename: focal

The script should work for you

i typed all the commands
but I still when I typed php -v
the ioncube version doesn’t show up like before

  • how do I know if I setup it up correctly
    thanks for answer :slight_smile: again

Run this command so that we can confirm the location of your extensions

php -i | grep extension_dir

ioncube doesn’t show up i think

image


No you have the correct value from the script. Seems ioncube_loader_lin_8.1.so was never copied

cd ~
wget https://downloads.ioncube.com/loader_downloads/ioncube_loaders_lin_x86-64.tar.gz
tar -xvf ioncube_loaders_lin_x86-64.tar.gz
cd ioncube
cp ioncube_loader_lin_8.1.so /usr/local/lsws/lsphp81/lib/php/20210902/
echo "zend_extension=ioncube_loader_lin_8.1.so" >> /usr/local/lsws/lsphp81/etc/php/8.1/mods-available/01-ioncube.ini     
systemctl restart lsws

Are you running as sudo user? Post screenshot of these commands as you have run them.

It still doesn’t show up on the phpinfo page, i don’t know why
the commands that I used | md_5 paste
http://49.12.240.118/phpinfo.php
image

It should show up when you run php -v

image

Here it worked, make sure you’re not doing something wrong. Or if you have a privileged user, or if you have the specified php version. =)

Try this