moodle 2.4 cronjob error

Avatar
  • Answered
Hi,

I have a Moodle installation running with version 2.4.1 (the one you offer using Fantastic). When I try to run the cron job, receive the following error :
Moodle 2.1 or later requires at least PHP 5.3.2 (currently using version 5.2.6).
Some servers may have multiple PHP versions installed, are you using the correct executable?
I already change the php version to php 5.4 usign cpanel > Software services > php configuration.

How could you please help me solve my problem ?

Thanks
Avatar
JacobIMH
Hello GarciaFlamenco, and thank you for your question. I have gone ahead and adjusted your cronjob for you so that it operates properly now. The issue at hand was you were calling the cPanel PHP binary with this command:
/usr/local/cpanel/3rdparty/bin/php -q I have updated it so it just calls PHP normally like any website request would:
/usr/local/bin/php -q Please let us know if you continue to experience any problems. - Jacob