鍍金池/ 問答/Java  PHP  Linux  數(shù)據庫/ win10x64專業(yè)版安裝laravel時報錯

win10x64專業(yè)版安裝laravel時報錯

E:\>laravel new blog
Crafting application...

  [GuzzleHttp\Exception\RequestException]
  Error creating resource: [message] fopen(http://cabinet.laravel.com/latest.zip): failed to open stream: Unable to f
  ind the socket transport "http" - did you forget to enable it when you configured PHP?
  [file] C:\Users\xiaoyi_wang\AppData\Roaming\Composer\vendor\guzzlehttp\guzzle\src\Handler\StreamHandler.php
  [line] 324
  [RuntimeException]
  Error creating resource: [message] fopen(http://cabinet.laravel.com/latest.zip): failed to open stream: Unable to f
  ind the socket transport "http" - did you forget to enable it when you configured PHP?
  [file] C:\Users\xiaoyi_wang\AppData\Roaming\Composer\vendor\guzzlehttp\guzzle\src\Handler\StreamHandler.php
  [line] 324

new [--dev] [--force] [--] [<name>]

E:\>

執(zhí)行l(wèi)aravel new blog時出現(xiàn)上面的錯誤,網上查好像都是說啟用openssl就可以了,我的extension=php_openssl.dll原來就是啟用的,老是提示這個錯誤,不知道怎么處理。
我有嘗試直接進對應的網頁,是可以的,網絡應該是正常的。

回答
編輯回答
亮瞎她

開啟allow url fopen

2018年3月4日 18:48