Question

i know the question was asked allot, but most answers were for linux/xOS systems and no thread about windows, lately im trying to learn laravel which need mcrypt extention enabled which was easy with wampmanager and it worked fine, but the CLI using php artisan doesnt work and only dd Laravel requires the Mcrypt PHP extension. I only have one version of php and accessing the php.ini i only find

[mcrypt]
; For more information about mcrypt settings see http://php.net/mcrypt-module-open

; Directory where to load mcrypt algorithms
; Default: Compiled in into libmcrypt (usually /usr/local/lib/libmcrypt)
mcrypt.algorithms_dir=

; Directory where to load mcrypt modes
; Default: Compiled in into libmcrypt (usually /usr/local/lib/libmcrypt)
mcrypt.modes_dir=

i tried configuring it by downloading libmcrypt and setting it in php\ext with no avail

Was it helpful?

Solution

Run php --ini to find out which config files are loaded.

CLI could use another config-file than php.ini.

EDIT:

Make sure the file got these things correct:

extension_dir This should point to your extension-directory. There may be a line there which you could just uncomment. Otherwise it's probably "ext/" or something like that.

Also, make sure

extension=php_mcrypt.dll is uncommented.

You can use php -info to check what extensions are available.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top