简体   繁体   中英

artisan commands in laravel 4 not able to load php_mcrypt

I have been able to setup my laravel but everytime i try executing an artisan command on the command line i get this error

"unable to load dynamic library. " C:/wamp/bin/php/php5.4.12/ext/php_mcrypt.dll" - the specified module could not be found

From phpinfo() it is said that mcrypt is enabled

I have tried

adding "extension=php_mcrypt.dll" to my php.ini file as suggested on similar questions but it did not work

what can i do to solve this problem ?

Its because your PHP CLI is runing a different config to your PHP which your web server is running.

You need to update both php.ini files to load php_mcrypt.

/etc/php5/apache2/php.ini
apache2/php.ini

and maybe

cli/php.ini

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM