【发布时间】:2014-10-04 03:11:09
【问题描述】:
我正在尝试安装 composer 但是当我去安装它时,我收到了这个错误:
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
我目前拥有php 5.4.31 并且正在运行WAMP2.2 我已经检查了bin/php/php5.4.31/ 中的php.ini 文件,并确保未注释以下行:
extension=php_openssl.dll
错误仍然解决,我不知道如何修复它。正如我认为通过取消注释该行将启用它。
另外,当我在终端窗口php --ini 中运行此命令时,我收到以下消息:
PHP Warning: PHP Startup: Unable to load dynamic library 'C:\php\php_openssl.dll' - The specified module could not be found
【问题讨论】:
-
确保请求的 dll 文件位于正确的位置。如您所见,错误是找不到文件。还要确保 wamp 下的 apache 服务器支持 ssl。
标签: php laravel openssl composer-php