Php 无法安装laravel捆绑包

Php 无法安装laravel捆绑包,php,wamp,laravel,Php,Wamp,Laravel,如果我键入: PS C:\wamp\www\laravel-master> php artisan bundle:install bootstrapper 我得到: PHP Warning: file_get_contents(http://github.com/patricktalmadge/bootstrapper/zipball /master): failed to open stream: Unable to find the socket transport "ssl" -

如果我键入:

PS C:\wamp\www\laravel-master> php artisan bundle:install bootstrapper
我得到:

PHP Warning:  file_get_contents(http://github.com/patricktalmadge/bootstrapper/zipball
/master): failed to open stream: Unable to find the socket transport "ssl" -
did you forget to enable it when you configured PHP? in C:\wamp\www\laravel-m
aster\laravel\cli\tasks\bundle\providers\provider.php on line 69

我正在运行WAMP服务器,并且在
php.ini
中启用了
php\u openssl
,在
httpd.conf
中启用了
ssl\u模块。我认为这是由本地主机配置问题引起的,而不是特定于Laravel的问题。我还可以检查什么才能使其正常工作?

我遇到了这个问题,您确定“bundles”文件夹的权限吗,我的解决方案是更改权限。

您需要确保启用了
openssl
PHP扩展

打开
php.ini
并搜索
php\u openssl
。你应该有这样的东西

;extension=php_openssl.dll
删除
从开始,然后重新启动Apache。您现在应该能够安装捆绑包了


对不起,刚才注意到您启用了
openssl
并重新启动了服务器。据我所知,这应该能解决这个问题。很抱歉,我无法进一步提供帮助。

Wamp中phpinfo()的输出与从命令行运行的PHP使用的配置不同

要查找CMD中PHP正在运行的.ini文件,请键入
PHP--ini


确保在该文件中启用
扩展名=php\u openssl.dll
。(只需去掉前面的分号)。

我也遇到过这种情况。您需要在以下位置的两个php.ini文件中启用扩展名:

  • C:\wamp\bin\php\php5.3.13\php.ini
  • C:\wamp\bin\apache\apache2.2.22\bin\php.ini

  • 你重启网络服务器了吗?很好。很抱歉在这种情况下提出了一个愚蠢的问题;)那是为了我。我希望WAMP能让他们也这么做。这对我来说是成功的,而没有其他解决方案。我没有意识到有两个php.ini文件。