composer not install in windows 7

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

    1. Find a php.ini in C:\wamp\bin\php\php5.4.16\ (the configuration file of PHP).
    2. Remove ; in lines ;extension=php_openssl.dll and ;extension_dir = "ext". PHP will know that you are using a php_openssl extension and extension_dir is the location of extensions (you can see it in the comment above php_openssl).
    3. Run the Windows command prompt with administrator permissions.
    4. Execute the following command: mklink C:\Windows\php.ini C:\wamp\bin\php\php5.4.16\php.ini

    Composer search php.ini in C:\Windows\php.ini and you have your PHP in WAMP. With mklink command you create a link php.ini that aim to your WAMP's php.ini.

提交回复
热议问题