Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!


Problem with Cron Job
New on LowEndTalk? Please Register and read our Community Rules.

All new Registrations are manually reviewed and approved, so a short delay after registration may occur before your account becomes active.

Problem with Cron Job

Hello!

As all providers know, WHMCS uses a cron to generate invoices automatically.

We recently did an update and now everything is screwed up.

When attempting to run the cron from Command Line

user@server php -q /path/to/directory/whmcs/admin/cron.php
Site error: the file /path/to/directory/whmcs/admin/cron.php 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 ionCube Loader Wizard to assist with installation.

This made me think that Ioncube wasn't installed correctly, but..

Any solutions or reccomendations?

Comments

  • php -q /path/to/ioncube/installer.php

  • @Rallias said:
    php -q /path/to/ioncube/installer.php

    There is no installer.php in any of the ioncube files. https://client.mcmyhost.net/files/

  • Just install ioncube loaders?google is your friend

  • @mcmyhost said:
    There is no installer.php in any of the ioncube files. https://client.mcmyhost.net/files/

    Massive facepalm.

  • Include paths are not always the same when something is run via cron/command line vs the web, why not include the Ioncube loaders into PHP.ini?

    If this isn't something you can sort out without posting on a forum you shouldn't be hosting anyone, ever... I can't wait to see what happens when something goes wrong on one of your nodes.

  • Kids these days...

  • There are two ini files, which are used by php-cli and mod-php. If you have installed IonCube loader, then it was configured in mod-php's php.ini file which is located at /etc/php5/apache2/php.ini

    Open that file and copy IonCube Extension (just search ioncube) directives to PHP-cli's php.ini , which is located at /etc/php5/cli/php.ini

    Once set, it will fix your problem

Sign In or Register to comment.