更新时间:2022-10-22 17:08:54
WAMP在CLI和Apache中使用不同的php.ini文件。当通过WAMP UI启用php_openssl时,您为Apache启用它,而不是为CLI启用它。
您需要修改C:\wamp\bin\php\php-5.4.3\ php.ini才能为CLI启用它。
Trying to install Composer dependency management tool on Win7/64 + WampServer 2.2 via the Setup Installer and I am getting the following message:
The openssl extension is missing, which will reduce the security and stability of Composer. If possible you should enable it or recompile php with --with-openssl
So here is what I did...
php > php extensions > php_openssl
php > php.ini
and searched for openssl to verifiy it was NOT commented) out. It was not.What am I missing?
Please advise.
WAMP uses different php.ini files in the CLI and for Apache. when you enable php_openssl through the WAMP UI, you enable it for Apache, not for the CLI. You need to modify C:\wamp\bin\php\php-5.4.3\php.ini to enable it for the CLI.