title: Install PHP MCrypt for CLI
body: <p>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.</p>
  
  <p>Here is my CRON job which executes an Artisan command every minute:</p>
  
  <pre><code>* * * * * /usr/bin/php /Users/Tim/Dropbox/orbis/artisan orbis:clear-players &gt; /Users/Tim/cron.log
  </code></pre>
  
  <p>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.</p>
  
  <p>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?</p>
  
  <p>Not sure how relevant this is, but I've added the following to my .bash_profile:</p>
  
  <pre><code>export PATH=/Applications/MAMP/bin/php/php5.4.4/bin:$PATH
  </code></pre>
  
  <p>Does that mean the CLI should be using the same PHP configuration file etc as MAMP?</p>
  
  <p>Sorry if this is a stupid question, but my knowledge is limited for this.</p>
  
  <p>Thanks!</p>