Cronjob error

1 post / 0 new
#1 Sat, 03/02/2019 - 17:29
Amore

Cronjob error

Hello!

I just moved from cPanel to virtualmin. I have was able to install whmcs and upgrade virtualmin php verison to 7.1. I have also managed to install ioncube for php 7.1 Well, all seems working fine except the cronjob is not running correctly.

I hope you guys can help me with it.

I set up my cronjob for WHMCS as usual from Webmin -> systems -> Scheduled Cron Jobs.

The cronjob runs once per day. When I hit save and run I got those errors with this command /home/username/whmcs_crons/cron.php: /home/username/whmcs_crons/cron.php: line 1: syntax error near unexpected token <' /home/username/whmcs_crons/cron.php: line 1:

<?php
 //ICB0 56:0 71:3c30                                                    
?>

<?php //00ee8'

I used this command in cPanel */5 * * * * php -q /home/username/whmcs_crons/cron.php and it worked great but not in virtualmin.

If I have this command: php -q /home/cheapseovps/whmcs_crons/cron.php The output error: Failed loading /usr/lib64/php/modules/ioncube_loader_lin_7.1.so: /usr/lib64/php/modules/ioncube_loader_lin_7.1.so: cannot open shared object file: No such file or directory

Any suggestions please?

Thank you Amore

.