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
# 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/
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