composer not install in windows 7

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

    I have battled this several times. And this is the best solution I have found.

    As mentioned, you need to ensure that extension=php_openssl.dll is enabled but doing just that sometimes may not resolve the error.

    You should check that you have PHP on your path variable then see what INI file is loaded by typing php --ini in the console it should give you something like:

    Configuration File (php.ini) Path: C:\WINDOWS
    Loaded Configuration File:         C:\WINDOWS\php.ini
    Scan for additional .ini files in: (none)
    Additional .ini files parsed:      (none)
    

    Make sure you are enabling the settings in the correct ini file. If you dont have an ini file loaded put an ini file from the php directory into c:\windows.

    Also important I find it helps to change the extension_dir flag to an absolute path from relative to makesure the system can find php_opensll.dll.

    To do this uncomment the line starting extension_dir and change it to match from the drive root.

    Example: C:\php\ext instead of ext/

提交回复
热议问题