WHMCS Virtualmin (Ioncube)

Hi All, Trying to setup the cron job for WHMCS (using script installer) Getting the following error (when testing manual cron logged in as server owner /usr/lib/php/20180731/ioncube_loader_lin_7.3.so: cannot open shared object file: No such file or directory (Cron cmd: php -q /home//domains//public_html/crons/cron.php) If you could please assist. Thanks! :)

Status: 
Closed (fixed)

Comments

Howdy -- thanks for contacting us!

You'd want to pass in the PHP "-c" parameter to point it to your domain's own php.ini file, as otherwise it defaults to the system-wide php.ini.

It's your domain's own php.ini file that has ioncube setup in it.

Let us know if you have any questions on that!

So just to clarify (as I struggle to understand cron jobs) I would be running the following: php -q -c /home//domains//public_html/crons/cron.php (On other note I should be adding the -c parameter for any other domains on virtualmin?) Thanks! :)

PHP's -c parameter also takes the path to the php.ini file for the domain.

So you'd use something like:

php -c /path/to/php.ini -q /home//domains//public_html/crons/cron.php

Works perfectly, thanks a heap! :)

Status: Fixed ยป Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.