CyberPanel Community

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

da
dark123 #1

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

13 replies
jo
josephgodwinke #2

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
da
dark123 #3

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

da
dark123 #5

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
jo
josephgodwinke #6

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

php -i | grep extension_dir
jo
josephgodwinke #8

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.

jo
josephgodwinke #10

It should show up when you run php -v

JA
Joabe Arruda #12

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. =)

jo
josephgodwinke #13

Try this

Ro
Roberto #14

Hello! All good?
How do I upgrade ioncube 12 from PHP 8.1 to ioncube 13?
I use CyberPanel with Ubuntu 22.04.

Sign in to reply