Ioncube php 8.1 installation problem

I have executed the following commands but ioncube is not showing

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)

eror massage

Cannot load the ionCube PHP Loader - it was already loaded
current php version of this system PHP-7.4
Your operating system is centos
‘ioncube/ioncube_loader_lin_7.4.so’ → ‘/usr/local/lsws/lsphp74/lib64/php/modules/ioncube_loader_lin_7.4.so’
Redirecting to /bin/systemctl restart lsws.service

** (pkttyagent:2290): WARNING **: 21:42:25.337: Unable to register authentication agent: GDBus.Error:org.freedesktop.PolicyKit1.Error.Failed: Cannot determine user of subject
Error registering authentication agent: GDBus.Error:org.freedesktop.PolicyKit1.Error.Failed: Cannot determine user of subject (polkit-error-quark, 0)
ioncube_loader_7.4 sucessfully installed

/usr/local/lsws/lsphp81/bin/php -v
output as below

Copyright (c) The PHP Group
Zend Engine v4.1.12, Copyright (c) Zend Technologies
with Zend OPcache v8.1.12, Copyright (c), by Zend Technologies

Hello @bluesky Happy you are here

Run

# php 8.1 is my default php version or version running for myslickdomain.com
$ cd /home/myslickdomain.com/public_html
# https://www.ioncube.com/loaders.php
$ wget -cv https://raw.githubusercontent.com/josephgodwinkimani/cyberpanel-mods/main/loader-wizard.php

Click on Fix Permissions on website’s file manager and then visit myslickdomain.com/loader-wizard.php

You will see instructions to download the loaders from the web and where to place them. For php 8.1 place the php 8.1 loader at /usr/local/lsws/lsphp81/lib/php/20210902

Lastly, you get the instruction to

Save this 00-inocube.ini file and put it in your ini files directory , /usr/local/lsws/lsphp81/etc/php/8.1/modes-available/

Now to confirm run the command

$ systemctl restart lsws && systemctl restart lscpd

Now go to myslickdomain.com/loader-wizard.php you will see a confirmation that ioncube was successfully installed.

Buddy your default php is 7.4 and you already installed it successfully.

Kindly to install for php 8.1 use /usr/local/lsws/lsphp81/bin/lsphp directly like you have done here

or direct lsws to your default php to set the default like ln -sf /usr/local/lsws/lsphp81/bin/lsphp /usr/bin/php

Why are we trying so hard, why can’t we choose the php version and install the extension? It’s a very difficult process, for example, we only need to choose php 7.4 version and click on install ioncube, but it’s not that easy in php 8.1 version, I checked other panels, I’ve never had this much difficulty, it’s a sad situation

Correct but its a free panel