How can I install mcrypt under PHP7? Laravel needs it
Even if you enable mcrypt in php.ini, this issue may occur.Try the following steps.
sudo apt-get updatesudo apt-get install mcrypt php7.0-mcrypt
I am working in ubuntu 16.04 and the following commands also helped me.
whereis php -shows the files with this namephp -v -shows the php versionwhich php -shows current php version that is running on the server