I think this is the problem that was asked here.
composer does not install on Windows 7
I figured this out and successfully installed Composer on a Windows 10 PC.
I share two solutions here.
There are several steps you must follow to solve your problem.
1st decision.
- Find and open
php.ini
located in your "php" folder. In my case, it is in xampp, the file is in c:\xampp\php\
- Find
"extension=php_openssl.dll"
";extension=php_openssl.dll"
uncomment by removing the semicolon ";"
- Restart your xampp, now the extension should be loaded after that.
- Try again, now you can install the composer.
2nd solution (if the above solution did not work for you, go to the next.)
This works in my case.
- Find and open
php.ini
located in your "php" folder. In my case, it is in xampp, the file is in c:\xampp\php\
- Open SHELL from the Xampp launch pad by clicking on the shell button.
- Type
php
in the shell and press Enter - If a warning message appears in your shell, similar to the image below:
Then you should fix this warning message by commenting out all of these extensions in your php.ini
. (Actually, the reason for these warning messages is that these extensions are included several times, but you can comment it out in the php.ini
to resolve the issue).
For example, which in my case.
a). You can see in the image above, there is a warning for twisting.
Module 'curl' already loaded in Unknown on line 0 .
b) To fix this, find the php_curl.dll
file in your php.ini
and comment on this extension by adding a semicolon ";"
before this extension, like this ;extension=php_curl.dll
Follow the steps above if you have multiple alerts for each extension until you get a warning in your shell.
- Restart your xampp, now the extension should be loaded after that.
- Try again, now you can install the composer.
Hope I can solve your problem.
These are all people. Good coding !!! (amitamie.com) :-) ;-)
source share