我在PHP中安装了composer并启用了openSSL扩展,但我仍然收到错误(我重新启动了wamp两次)
Afflicto@Afflicto-PC /cygdrive/e/wamp/www/wirezapp2
$ composer create-project laravel/laravel wirezapp --prefer-dist
Installing laravel/laravel (v4.0.5)
- Installing laravel/laravel (v4.0.5)
Downloading: 100%
Downloading: 100%
Downloading: 100%
[Composer\Downloader\TransportException]
The "http://nodeload.github.com/laravel/laravel/zip/v4.0.5" file could not
be downloaded: failed to open stream: Unable to find the socket transport "
ssl" - did you forget to enable it when you configured PHP?
create-project [-s|--stability="..."] [--prefer-source] [--prefer-dist] [--repository-
url="..."] [--dev] [--no-dev] [--no-custom-installers] [--no-scripts] [--no-progress]
[-- keep-vcs] [package] [directory] [version]
答案 0 :(得分:0)
想出来:
wamp中的php.ini与apache / wamp使用的不同,所以我必须通过在wamp / bin / php / php5.4.3 / php.ini中找到的php.ini启用open ssl扩展