I have trouble installing Composer
. After I select the php.exe
path in the wizard and next thing it shows is the below error description.
The PHP exe file you specified did not execute correctly: D:\wamp\bin\php\php5.5.12\php.exe Running it from the command line might highlight the problem. Internal Error [ERR_INVALID], exit code 1
I guess this is a problem which had been asked here .
composer not install in windows 7
I figured it out and successfully installed Composer in My windows 10 PC.
I am sharing two solutions here.
There are some steps you have to follow in order to solve your problem.
1st solution.
php.ini
located in your "php" folder In my case it is in xampp the file is in c:\xampp\php\
"extension=php_openssl.dll"
";extension=php_openssl.dll"
uncomment by removing the semicolon ";"
2nd solution(If the above solution didn't work for you then go with one below. )
This works in my case
php.ini
located in your "php" folder In my case it is in xampp the file is in c:\xampp\php\
php
in shell and hit enterThen you have to fix these warning message by commenting all these extension in your php.ini
file.(Actually cause of these warning messages are because more than one time these extensions are enabled but you can un-comment it in php.ini
file to solve the issue).
For Example which is in my case.
a). You can see in above image there is warning message for curl.
Module 'curl' already loaded in Unknown on line 0 .
b) To fix this find php_curl.dll
file in your php.ini
file and comment that extension by adding semicolon ";"
in front of that extension like this ;extension=php_curl.dll
Hope I can solve your issue .
That's all folks . Happy coding !!! (amitamie.com) :-) ;-)
This worked for me..,
There are some steps you might want to follow in order to solve your problem
You can try to change extension_dir
in xampp\php\php.ini
to full direction
like :
extension_dir = "E:\xampp\php\ext"
Install it manually Is there any way to install Composer globally on Windows? or you can do it by open XAMPP Shell and write this
php -r "readfile('https://getcomposer.org/installer');" | php
Just install it in C:\
partition, I think it will work .
I think the problem its in the Windows8 and above that not give Full permission to use CMD
.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With