I have installed mcrypt
and php56-mcrypt
on my Mac OS X El Capitan and also I installed Apache, MySQL and PHP separately including phpMyAdmin. All of these are working fine, but when I try to run a laravel application, I get the message that says Mcrypt PHP extension required.
.
I am using a virtual host and when I run this domain configured on the virtual host, it shows the mcrypt error above. This shows the VH is working fine the problem comes from Laravel and Mcrypt.
But when I run php -m
, I see that the mcrypt is enabled, below is the output.
[PHP Modules]
bcmath
bz2
calendar
Core
ctype
curl
date
dba
dom
ereg
exif
fileinfo
filter
ftp
gd
gettext
hash
iconv
json
ldap
libxml
mbstring
mcrypt
mhash
mysql
I have correctly included the mcrypt extension in the /etc/php.ini
file and set enable_dl = On
(as many solutions say). I don't know what I am missing.
I am also using PHP version 5.6 and below is the output
PHP 5.6.26 (cli) (built: Oct 1 2016 23:48:03)
Copyright (c) 1997-2016 The PHP Group
Zend Engine v2.6.0, Copyright (c) 1998-2016 Zend Technologies
Mcrypt version:
Mcrypt v.0.9.9 (i386-apple-darwin15.0.0)
Linked against libmcrypt v.2.5.8
Copyright (C) 1998-2002 Nikos Mavroyanopoulos (nmav@gnutls.org)
I have done an extensive Google search and tried all possible answers but nothing error message for requiring mcrypt is not going anywhere.
Please if there is more information that is needed in this question, just leave a comment and I will provide, I have done so much research on fixing this issue but to know avail, nothing is working. Thanks in advance.