webrabin
By:
webrabin

WHMCS - cron job not working - Nginx for Ubuntu

March 21, 2017 263 views
Nginx Ubuntu 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 get-loader.ioncube.com for install assistance.

Plz help

4 Answers

@webrabin
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 ioncubeloaderlin7.0.so /etc/php/7.0/cli/conf.d
cp: cannot create regular file '/etc/php/7.0/cli/conf.d/ioncube
loaderlin7.0.so': 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/ioncubeloaderlin7.0.so"

sudo systemctl restart nginx

sudo systemctl restart php7.0-fpm.service

Have another answer? Share your knowledge.