I think this is the problem that was asked here , you can follow the solution or go to the next link depending on what you need.
composer does not install on Windows 7
I understood and successfully installed Composer in "My Windows 10 PC."
Here I use two solutions.
To solve your problem, you need to follow some steps.
1st decision.
- Find and open
php.ini
located in the "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 deleting the semicolon ";"
- Reboot xampp, then add the extension.
- Try again, now you can install the composer.
2nd solution (if the above solution does not work for you, go to the solution below.)
This works in my case.
- Find and open
php.ini
located in the "php" folder. In my case it is in xampp, the file is in c:\xampp\php\
- Open SHELL from the Xampp launcher by clicking on the shell button.
- Write
php
in the shell and press enter - If you get some kind of test message in your shell, as shown below.
Then you should fix this security message by commenting out all of these extensions in your php.ini
. (Actually, the reason for these warning messages is that more than once this extension is enabled or you can say un-commented in the php.ini
).
An example that is in my case.
a). You can see in the image above, there is a warning for curling.
Module 'curl' already loaded in Unknown on line 0 .
b) To fix this find php_curl.dll
file in your php.ini
and comment on this extension by adding a semicolon ";"
before this extension, for example, this ;extension=php_curl.dll
Follow the instructions above if you have several warnings for each extension until you receive some kind of warning in your shell.
- Reboot xampp, then add the extension.
- Try again, now you can install the composer.
Hope I can solve your problem.
What are all people. Happy coding !!! (amitamie.com) :-); -)
source share