title: Laravel 4 - Mcrypt extension required
body: <p>I just finished installing Ubuntu, setting up Apache, MySQL, and PHP. I then decided to install the Laravel framework. I ran a <code>composer install</code> and got the following error:</p>
  
  <pre><code>Mcrypt PHP extension required. Script php artisan clear-compiled handling the post-install-cmd event returned with an error
  </code></pre>
  
  <p>I then installed mcrypt deal and all that remained was the artisan error. I decided to go on about my business because I couldn't find a solution online. </p>
  
  <p>Now I am starting my first laravel project. I ran <code>php artisan migrate:install</code> and it says <code>Mcrypt PHP extension required.</code></p>
  
  <p>What can I do to fix this?</p>
  
  <p>I ran this command and it didn't help:</p>
  
  <pre><code>sudo ln -s /etc/php5/conf.d/mcrypt.ini /etc/php5/apache2/conf.d/20-mcrypt.ini
  </code></pre>
  
  <p>I've ran this a couple of times and it just says its installed:</p>
  
  <pre><code>sudo apt-get install php5-mcrypt
  </code></pre>