Page 1 of 1

ioncube whmcs cron job fails

Posted: Thu Aug 03, 2017 5:20 am
by bowsercloud
I have whmcs installed on vestacp. I've installed the ioncube add in by adding

Code: Select all

zend_extension = /usr/lib/php/20151012/ioncube_loader_lin_7.0.so
to

Code: Select all

/etc/php/7.0/apache2/php.ini
But, when the user runs the cron job, it fails asking for the ioncube loader to be installed. Has anyone else seen similar errors?

Re: ioncube whmcs cron job fails

Posted: Thu Aug 03, 2017 6:26 am
by chaosjester
The CLI can sometimes use a different ini, you can modify your cronjob and add "php -c /etc/php/7.0/apache2/php.ini /path/to/whmcs/cron.php"

Re: ioncube whmcs cron job fails

Posted: Thu Aug 03, 2017 11:35 pm
by bowsercloud
I got another error with that command.

Code: Select all

PHP Warning:  PHP Startup: Unable to load dynamic library 
I did get it working by adding the zend ioncube line to the

Code: Select all

/etc/php/7.0/cli/php.ini
file