Submitted by shadowtor on Wed, 03/06/2019 - 02:30 Pro Licensee
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
Submitted by andreychek on Wed, 03/06/2019 - 08:50 Comment #1
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!
Submitted by shadowtor on Wed, 03/06/2019 - 14:41 Pro Licensee Comment #2
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! :)
Submitted by andreychek on Thu, 03/07/2019 - 09:33 Comment #3
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
Submitted by shadowtor on Thu, 03/07/2019 - 16:24 Pro Licensee Comment #4
Works perfectly, thanks a heap! :)
Submitted by IssueBot on Thu, 03/21/2019 - 17:30 Comment #5
Automatically closed - issue fixed for 2 weeks with no activity.