If your system is the 64-bit version, download the following package:
wget http://downloads3.ioncube.com/loader_downloads/ioncube_loaders_lin_x86-64.tar.gz
Unpack the downloaded tar archive:
tar xfz ioncube_loaders_lin_x86-64.tar.gz
Then type this
sudo cp ioncube/ioncube_loader_lin_7.4.so /usr/lib/php/20190902
Open the php.ini file with your favorite text editor:
/etc/php/7.4/cli/php.ini
/etc/php/7.4/fpm/php.ini
and add the following line at the top of the file:
zend_extension = “/usr/lib/php/20190902/ioncube_loader_lin_7.4.so”
Reboot VPS now
Run the following command
php -v
Then the IonCube Loader is installed and you can see it
IonCube Loader is now active for php 7.4 only
You can also add IonCube Loader to other php versions by editing php.ini if desired.
I have used this for Vestacp and I also use it for Hestiacp without any problem