Tuesday, October 21, 2014

WHMCS Cronjob Error

If you get the following error while you try to run the WHMCS cronjob from the command line:
Site error: the file <b>/var/www/accounts/admin/cron.php</b> requires the ionCube PHP Loader ioncube_loader_lin_5.3.so to be installed by the website operator. If you are the website operator please use the <a href="http://www.ioncube.com/lw/">ionCube Loader Wizard</a> to assist with installation.

You need to add your the ioncube zend extension to the CLI php.ini too: /etc/php5/cli/php.ini

1 comment:

  1. It was helpful. My situation was little bit complicated. Sharing it here so that someone could save hours.

    My OS is CentOS. I had php, apache installed from red hat rpm but later updated php with source. And after that I was not able to point out my php.ini file.

    [root@gtchost ~]# php --ini
    Configuration File (php.ini) Path: /usr/local/lib
    Loaded Configuration File: (none)
    Scan for additional .ini files in: (none)
    Additional .ini files parsed: (none)

    So, I just copied the php.ini-production file from installation directory to /usr/local/lib/php.ini and restarted httpd.

    My php.ini file is recognized now. After that just inserted below ioncube module information to php.ini under Extensions section

    zend_extension = /usr/local/src/ioncube/ioncube_loader_lin_5.3.so

    You can find the ioncube modules in your installation folder, or it is also available to download. You just need to create a directory under /usr/local/src/ and copy the module file according to your php version (#php -v).