WHMCS cron job says ioncube not installed despite ioncube being installed

This issue drove me batty for an hour – after installing WHMCS with PHP’s Ioncube extension installed successfully the cronjob required by WHMCS would not run, complaining about Ioncube not being installed. Yet php -v showed that it was in fact installed.

 

What gives?

 

Turns out that Ioncube had been enabled for PHP-FPM in the following directory:

 

/etc/php/7.0/fpm/conf.d/

 

…but had not been enabled in this directory also:

 

/etc/php/7.0/cli/conf.d/

 

…which is another directory that needs the same config file in. In my server’s case the config file was named 00-ioncube.ini and consisted of the following:

 

zend_extension = “/usr/lib/php/20151012/ioncube_loader_lin_7.0.so”

 

And with that, voila, cron job works. Can’t get that hour of my life back, though.

 

Update: For the php7.1 servers the zend_extension line read:

 

zend_extension = “/usr/lib/php/20160303/ioncube_loader_lin_7.1.so”


Posted

in

by