Question

WHMCS - cron job not working - Nginx for Ubuntu

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


Submit an answer

This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Sign In or Sign Up to Answer

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.

Dear Sir, Thanks! Its working now:

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

sudo systemctl restart nginx

sudo systemctl restart php7.0-fpm.service

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

@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.