PHP 7.x ionCube Loader

Hello,

It is possible to install ioncube for PHP 5.6.
But for PHP 7.0 versions ioncube loader could not be loaded.
I think this is necessary for most scripts and software.
Whmcs, for example, sees PHP 7.0 as the front.
But it is not possible to use whmcs with PHP 7.0.

Hello
IonCube Loader works seamlessly with PHP 7.0
I tried to use these commands below to do the installation and configuration.

### DOWNLOAD AND INSTALLATION OF IONCUBE LOADER ###
wget https://downloads.ioncube.com/loader_downloads/ioncube_loaders_lin_x86-64.zip
Move the uncompressed folder to the path /usr/local/
Include the php.ini extension of the PHP7 .
[ioncube]
zend_extension = /usr/local/ioncube/ioncube_loader_lin_7.0.so

Do not forget that for WHMCS to run the cron you need to do these commands below.

### PHP CLI VERSION ###
cp /usr/local/lsws/lsphp71/bin/php /usr/bin/
or
cp /usr/local/lsws/lsphp70/bin/php /usr/bin/
php -v

I’m having trouble creating Cron Job for WHMCS, I’ve added it via CyberPanel, and directly in crontab, but unfortunately it does not work.

@sidneyandrewss I could not configure PHP binary to be globally accessible because I did not understand what should be done.

I need to add this cron job: */5 * * * * php -q /home/website.com/whmcsdata/crons/cron.php
Could someone help me make it work?

First install IonCube for the PHP version your WHMCS is using, then make it globally available using:

cp /usr/local/lsws/lsphpXX/bin/php /usr/bin/

Replace XX with your PHP version number.

I managed to fix. There was no problem with the server or CyberPanel. It was just the address of the cron configuration file (crons/config.php) that still had the old server address. As soon as I fixed the address the cron worked immediately.:blush:

in my cyberpanel editphp config show only php 7.2 , 7.3 , 7.4

but i need php 7.0

@sagardigital You can install CyberPanel on Centos, Ubuntu does not support PHP 7.0.