I just followed the tutorial located at https://www.digitalocean.com/community/articles/how-to-install-linux-apache-mysql-php-lamp-stack-on-ubuntu while fixing multiple other er
For those using a LEMP stack (nginx & php5-fpm), this is the solution
apt-get install php5-mcrypt php5enmod mcrypt service php5-fpm restart service nginx restart
(run each with sudo, naturally)