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
I am on a Mac OS X Yosemite using Terminal, and I fix this error
the requested PHP extension mcrypt is missing from your system
by running the following commands :
brew update
brew upgrade
brew tap homebrew/dupes
brew tap josegonzalez/homebrew-php
brew install php54-mcrypt
Try this:
sudo apt-get install php5-mcrypt
sudo ln -s /etc/php5/conf.d/mcrypt.ini /etc/php5/mods-available
sudo php5enmod mcrypt
sudo service apache2 restart
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)
I've followed the exact tutorial with OP on digital ocean. The only steps that missing is to
sudo php5enmod mcrypt
sudo service apache2 restart
and the error gone after restarting the apache service
Try this:
sudo apt-get install mcrypt php5-mcrypt; php5enmod mcrypt; service apache2 restart
I just stuffed a symbolic link into the Apache portion of php configuration. Platform: Xubuntu 14.04 LTS.
Details:
HTH.