Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

noblemfd's avatar

Composer error: The PHP exe file you specified did not run correctly

Initially, I have composer version-1 on my Windows-10. I downloaded the latest version of the composer and tried to install on windows-10. When I run the setup.exe, I got this error:

The PHP exe file you specified did not run correctly: C:\xampp\php\php.exe

The php.ini used by your command-line PHP is: C:\xampp\php\php.ini

A setting in your php.ini could be causing the problem: Either the 'extension_dir' value is incorrect or a dll does not exist.

Program Output: PHP Warning: PHP Startup: Unable to load dynamic library 'php_imagick.dll' (tried: C:\xampp\php\ext\php_imagick.dll (The specified module could not be found.), C:\xampp\php\ext\php_php_imagick.dll.dll (The specified module could not be found.)) in Unknown on line 0

How do I resolve this?

Thanks

1 like
1 reply

Please or to participate in this conversation.