简体   繁体   English

无法安装laravel捆绑

[英]Cannot install laravel bundle

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 . 我正在运行WAMP服务器和我已经启用php_opensslphp.inissl_modulehttpd.conf I reckon that it is caused by localhost configuration issues and it is not the Laravel specific problem. 我认为它是由localhost配置问题引起的,并不是Laravel特有的问题。 What more can I check to get this working? 我还能检查更多信息吗?

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. 一定要在该文件中启用extension=php_openssl.dll (just remove the semicolon in front). (只需删除前面的分号)。

This happend to me too. 这也发生在我身上。 You need enable the extension in two php.ini files in: 您需要在以下两个php.ini文件中启用扩展:

  1. C:\\wamp\\bin\\php\\php5.3.13\\php.ini C:\\ WAMP \\ BIN \\ PHP \\ php5.3.13 \\ php.ini中
  2. C:\\wamp\\bin\\apache\\apache2.2.22\\bin\\php.ini C:\\ WAMP \\ BIN \\ apache的\\ apache2.2.22 \\ BIN \\ php.ini中

You need to make sure that the openssl PHP extension is enabled. 您需要确保启用了openssl PHP扩展。

Open your php.ini and search for php_openssl . 打开php.ini并搜索php_openssl You should have something like this. 你应该有这样的东西。

;extension=php_openssl.dll

Remove the ; 删除; from the start and then restart Apache. 从一开始然后重启Apache。 You should now be able to install bundles. 您现在应该能够安装捆绑包。


Oops, sorry, just noticed that you did enable openssl and restart the server. 哎呀,抱歉,刚刚注意到你确实启用了openssl并重新启动了服务器。 As far as I know that should fix this problem. 据我所知,应该解决这个问题。 Sorry I can't help any further. 对不起,我不能再帮忙了。

我有这个问题,你确定“bundles”文件夹的权限,我的解决方案是更改权限。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM