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
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
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 again
Run this command so that we can confirm the location of your extensions
php -i | grep extension_dir
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
It should show up when you run php -v
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
Hello! All good?
How do I upgrade ioncube 12 from PHP 8.1 to ioncube 13?
I use CyberPanel with Ubuntu 22.04.