Setting up a CRON job for a Laravel 4 application and I've ran into a roadblock. The CRON is working, but it's returning a "Laravel requires the Mcrypt PHP extension" error to the CRON log file I have set up.
Here is my CRON job which executes an Artisan command every minute:
* * * * * /usr/bin/php /Users/Tim/Dropbox/orbis/artisan orbis:clear-players > /Users/Tim/cron.log
This command runs if I cd into the Laravel project folder (/Users/Tim/Dropbox/orbis), but the MCrypt isn't being detected for the CRON.
I read that sometimes the CLI uses a different php.ini file and that MCrypt may not be enabled for the CLI specifically. How can I get MCrypt installed for the CLI as well?
Not sure how relevant this is, but I've added the following to my .bash_profile:
export PATH=/Applications/MAMP/bin/php/php5.4.4/bin:$PATH
Does that mean the CLI should be using the same PHP configuration file etc as MAMP?
Sorry if this is a stupid question, but my knowledge is limited for this.
Thanks!