Update PHP in shell and install Mcrypt
The easiest solution for your problem is: (I don't know you experience with the terminal so just humor me if I take you for an unexperienced user)

which php


This will give you the php binary that is used. Use your Terminal and go to that folder:

cd /path/that/whichphp/gives/you


When you punch you way to the folder do this:


sudo mv php php.old &lt;- rename the old php binary to back it up (just in case :) )
sudo ln -s /path/to/the/new/php/binary php &lt;- This will create a symlink that points to your new php binary


Easiest way to locate all your php instances and identifying the new one would be:

sudo find / -name php


After you create the symlink write php -v again into the console and you should see the version output from you new instance.

If you still have problems just contact me.

I hope this helped you : had the same problem as you once :)