CyberPanel Community

PHP 7.x ionCube Loader

er
erkannasir #1

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.

7 replies
si
sidneyandrewss #2

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

si
sidneyandrewss #3

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

jh
jhonathan #4

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?

us
usmannasir #5

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.

jh
jhonathan #6

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:

sa
sagardigital #7

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

but i need php 7.0

us
usmannasir #8

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

Sign in to reply