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

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.

3 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 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

Submit an Answer