I develop on a VM (with Debian 7), but in the current project, I have to user Composer from my Windows 7 host system. To do this I "installed" PHP (downloaded and saved in C:\\Program Files\\php-5.6.8-Win32-VC11-x64
). As futher step I downloaded the Composer installer for Windows and started the Composer-Setup.exe
-- and got an error:
Some settings on your machine make Composer unable to work properly. Make sure that you fix the issues listed below and run this script again:
The openssl extension is missing, which means that secure HTTPS transfers are impossible. If possible you should enable it or recompile php with --with-openssl
OK. The php_openssl.dll
in the ext
folder. I created php.ini
from the php.ini-production
and enabled the line extension=php_openssl.dll
. But no effect. The OpenSSL modle is still not in the active modules list ( php -m
). I also tried to change the ext
folder, but also this setting is not getting updated.
What should one do, in order to change PHP settings on Windows?
Make sure that you have extension_dir
set as well, otherwise PHP will look for the extensions in an incorrect location.
The php.ini-production
file has this (commented out) by default:
; Directory in which the loadable extensions (modules) reside.
; http://php.net/extension-dir
; extension_dir = "./"
; On windows:
; extension_dir = "ext"
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.