CoCoMonk
CoCoMonk

Reputation: 520

Composer can't find ext-mbstring even though it is installed

When I attempt to install Laravel 5 I get a dependency error. I'm using Uniform Server on Windows 7. I have enabled php_mbstring.dll and I checked it's loading properly. (I think)

Here is the console output (Composer):

Composer dependency error when installing laravel 5

Here are the extensions in my php.ini Php.ini extensions

Here are the phpinfo() mbstring details: mbstring installed

I don't know where to go from here. Any idea?

Upvotes: 7

Views: 7845

Answers (1)

Simone Cabrino
Simone Cabrino

Reputation: 931

Pay attention that, both in Windows and Linux, PHP can run with multiples php.ini configuration files.

In general, when you find this kind of issue, you have to double check that the configuration file loaded is the same that you are editing or you need to find the right path and add the extension also to the right php.ini configuration file.

While running a script through a web server, you can find the configuration file using the function

phpinfo();

and checking the line "Loaded Configuration File" (or just look for php.ini) PHP Info Screenshot

For what concern the CLI you can run in CMD

php --ini

and check the first lines in order to find the Loaded Configuration File value.

Upvotes: 1

Related Questions