Jump to content

Ioncube and Cron Job


jordanashley13

Recommended Posts

Hi, I am using Ioncube in my php.ini and the installation of WHMCS works well.

 

BUT... When i try and run my Cron Job, I get the error that is needs Ioncube 5.2 to run.

 

Clip of my php.ini:

 

[Zend]

zend_extension="/usr/local/ioncube/ioncube_loader_lin_4.4.so"

zend_extension_ts="/usr/local/ioncube/ioncube_loader_lin_4.4_ts.so"

 

How can i add 5.2, so that my cron job will work as well?

Link to comment
Share on other sites

  • 7 months later...

We are having the exact same issue.

 

Basically, everything works within whmcs as it should, however whenever we try to run a cron using php, we get the error below:

 

 

We are having to run the crons using wget, which is not the best way tbh, and ideally we would be doing it with php.

 

Has anyone come across this, or better still, a solution to this?

Link to comment
Share on other sites

  • 7 months later...

This is from trying to use a Loader for the wrong version of PHP. The OP was trying to use Loaders for PHP 4.4 with PHP 5.2. Always check your configuration, and also make sure that you have the same version of PHP used on the command line (i.e. in cron scripts) as you have for the web server.

Link to comment
Share on other sites

Could also be PHP isn't compiled with ionCube server-wide. Assuming that is the case, try passing the php command line executable the path to a php.ini file setup for your WHMCS install:

 

Example: php -c /home/user/www/whmcs/php.ini /home/user/www/whmcs/admin/cron.php

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated