composer not install in windows 7

前端 未结 12 2091
太阳男子
太阳男子 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 12:54

    For MAMP users, this is what worked for me.

    If your php.ini is located under a \MAMP\conf\

    1. copy the php.ini into a\MAMP\bin\php\php[your PHP version number]\
    2. Restart MAMP and the command-line window
    3. Go to a directory under a command-line window where you want to install composer
    4. run from a command line: php -r "readfile('http://getcomposer.org/installer');" | php

    NOTE: it is http not https !

    END

提交回复
热议问题