WHMCS - cron job not working - Nginx for Ubuntu

Posted March 21, 2017 4.3k views
NginxUbuntu 16.04

I have installed WHMCS on on LEMP and also installed ionCube PHP Loade and website and admin everything working correctly but cron job not working and when i manually run corn command in terminal following error occurred:

Site error: the ionCube PHP Loader needs to be installed. This is a widely used PHP extension for running ionCube protected PHP code, website security and malware blocking.

Please visit for install assistance.

Plz help

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Submit an Answer
4 answers

Where did you add the ionCube loader in PHP?
You need to add the loader to /etc/php/7.0/cli/conf.d/ as well, for it to work in cronjobs and other CLI environments.

I tried to copy
cp /etc/php/7.0/cli/conf.d
cp: cannot create regular file ’/etc/php/7.0/cli/conf.d/ioncube’: Permission denied

Dear Sir,
Thanks! Its working now:

sudo nano /etc/php/7.0/cli/conf.d/00-ioncube.ini
and added: zendextension = “/usr/lib/php/20151012/”

sudo systemctl restart nginx

sudo systemctl restart php7.0-fpm.service