composer not install in windows 7

前端 未结 12 2094
太阳男子
太阳男子 2020-12-09 12:13

I already uncommented in php.ini:

[PHP]

;;;;;;;;;;;;;;;;;;;
 ; About php.ini ;
;;;;;;;;;;;;;;;;;;;

;extension=php_oci8_11g.dll
extension=php_openssl.dll
;e         


        
12条回答
  •  既然无缘
    2020-12-09 13:06

    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.

    1. Find and Open php.ini located in your "php" folder In my case it is in xampp the file is in c:\xampp\php\
    2. Find "extension=php_openssl.dll"
    3. ";extension=php_openssl.dll" uncomment by removing the semicolon ";"
    4. Restart your xampp , now extension should be loaded after that.
    5. Try again now you are able to install composer.

    2nd solution(If the above solution not work for you then go with below solution . )

    This works in my case

    1. Find and Open php.ini located in your "php" folder In my case it is in xampp the file is in c:\xampp\php\
    2. Open SHELL from Xampp start panel by clicking on shell button.
    3. Write php in shell and hit enter
    4. If you get some waring message in your shell something like below .
    5. Then you have to fix these waring 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 for solving 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

    Follow above steps if you have more than one warning for each extension untill you are not getting any warning message in your shell.

    1. Restart your xampp , now extension should be loaded after that.
    2. Try again now you are able to install composer.

    Hope I can solve your issue .

    That's all folks . Happy coding !!! (amitamie.com) :-) ;-)

提交回复
热议问题