无法安装 Laravel 包
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/13276298/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Cannot install laravel bundle
提问by user1292810
If I type:
如果我输入:
PS C:\wamp\www\laravel-master> php artisan bundle:install bootstrapper
I am getting:
我正进入(状态:
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
I am running WAMP Server and I have enabled php_openssl
in php.ini
and ssl_module
in httpd.conf
. I reckon that it is caused by localhost configuration issues and it is not the Laravel specific problem. What more can I check to get this working?
我正在运行 WAMP 服务器php_openssl
,php.ini
并且ssl_module
在httpd.conf
. 我认为这是由 localhost 配置问题引起的,而不是 Laravel 特定的问题。我还可以检查什么才能使其正常工作?
回答by J?rgen Sk?r Fischer
The output of phpinfo() in Wamp is not the same config that PHP running from commandline is using.
Wamp 中 phpinfo() 的输出与从命令行运行的 PHP 使用的配置不同。
To find the .ini file that PHP in CMD is running type php --ini
.
要查找 CMD 中 PHP 正在运行的 .ini 文件,请键入php --ini
.
Be sure to enable the extension=php_openssl.dll
in that file. (just remove the semicolon in front).
确保extension=php_openssl.dll
在该文件中启用。(只需删除前面的分号)。
回答by sherlack
This happend to me too. You need enable the extension in two php.ini files in:
这也发生在我身上。您需要在以下两个 php.ini 文件中启用扩展:
- C:\wamp\bin\php\php5.3.13\php.ini
- C:\wamp\bin\apache\apache2.2.22\bin\php.ini
- C:\wamp\bin\php\php5.3.13\php.ini
- C:\wamp\bin\apache\apache2.2.22\bin\php.ini
回答by Jason Lewis
You need to make sure that the openssl
PHP extension is enabled.
您需要确保openssl
启用了PHP 扩展。
Open your php.ini
and search for php_openssl
. You should have something like this.
打开您的php.ini
并搜索php_openssl
. 你应该有这样的东西。
;extension=php_openssl.dll
Remove the ;
from the start and then restart Apache. You should now be able to install bundles.
;
从一开始就删除Apache,然后重新启动。您现在应该可以安装捆绑软件了。
Oops, sorry, just noticed that you did enable openssl
and restart the server. As far as I know that should fix this problem. Sorry I can't help any further.
糟糕,抱歉,刚刚注意到您确实启用openssl
并重新启动了服务器。据我所知,应该可以解决这个问题。抱歉,我不能再提供任何帮助了。
回答by Fernando Montoya
I had that problem, Are you sure about the permissions of the "bundles" folder, my solution was change the permissions.
我遇到了这个问题,你确定“bundles”文件夹的权限,我的解决方案是更改权限。