Hello,
Iām having a specific issue with WHMCS on Enhance servers: the cron is not running correctly.
I tested the recommended commands:
/usr/bin/php -q /path/to/whmcs/crons/cron.php
/opt/ecp-php83/bin/php -d zend_extension=/usr/local/ioncube/ioncube_loader_lin_8.3.so -q /path/to/whmcs/crons/cron.php
and also the method recommended by WHMCS itself with the crons directory moved outside public_html:
/usr/bin/php -q /hidden/path/to/whmcs/crons/cron.php
he issue is that, instead of executing the cron, it sometimes returns HTML as if it were being processed via the web server instead of CLI.
I have already confirmed:
- ionCube is installed
- correct PHP 8.3 is being used
- file permissions are correct
- database access is working
- correct path
- cron is correctly configured in Enhance
Interestingly, on the same server, WiseCP works perfectly with:
php -q /path/to/wisecp/cronjobs.php
So this seems to be something specific to WHMCS in the Enhance environment.
Has anyone encountered this issue?
Did you use a different PHP binary, specific CLI configuration, an alternative cron setup, or some other workaround?
Thank you.