必须安装PHP cURL扩展才能使用Guzzle

时间:2016-05-09 18:04:58

标签: ubuntu amazon-web-services curl slim guzzle

虽然这有多个答案,但我仍然无法解决问题。

  1. 我在AWS上使用Ubuntu堆栈

  2. 我已经安装了php5-curl并显示

  3. 我正在使用php服务器端

  4. 处理TokBox视频库

    每当我执行我的网址时,我都会得到例外:

    Slim Application Error
    The application could not run because of the following error:
    
    Details
    
    Type: Guzzle\Common\Exception\RuntimeException
    Message: The PHP cURL extension must be installed to use Guzzle.
    File:     /var/www/html/tokboxphpserver/vendor/guzzle/guzzle/src/Guzzle/Http/Client.php
    Line: 72
    Trace
    
    #0 /var/www/html/tokboxphpserver/vendor/opentok/opentok/src/OpenTok/OpenTok.php(50): Guzzle\Http\Client->__construct()
    #1 /var/www/html/tokboxphpserver/index.php(58): OpenTok\OpenTok->__construct(45573572, '1be4a65cd4e691d...')
    #2 /var/www/html/tokboxphpserver/vendor/slim/slim/Slim/Helper/Set.php(228): {closure}(Object(Slim\Helper\Set))
    #3 /var/www/html/tokboxphpserver/vendor/slim/slim/Slim/Helper/Set.php(88): Slim\Helper\Set->Slim\Helper\{closure}(Object(Slim\Helper\Set))
    #4 /var/www/html/tokboxphpserver/vendor/slim/slim/Slim/Slim.php(234): Slim\Helper\Set->get('opentok')
    #5 /var/www/html/tokboxphpserver/index.php(80): Slim\Slim->__get('opentok')
    #6 [internal function]: {closure}()
    #7 /var/www/html/tokboxphpserver/vendor/slim/slim/Slim/Route.php(468): call_user_func_array(Object(Closure), Array)
    #8 /var/www/html/tokboxphpserver/vendor/slim/slim/Slim/Slim.php(1357): Slim\Route->dispatch()
    #9 /var/www/html/tokboxphpserver/vendor/slim/slim/Slim/Middleware/Flash.php(85): Slim\Slim->call()
    #10 /var/www/html/tokboxphpserver/vendor/slim/slim/Slim/Middleware/MethodOverride.php(92): Slim\Middleware\Flash->call()
    #11 /var/www/html/tokboxphpserver/vendor/slim/slim/Slim/Middleware/PrettyExceptions.php(67): Slim\Middleware\MethodOverride->call()
    #12 /var/www/html/tokboxphpserver/vendor/slim/slim/Slim/Slim.php(1302): Slim\Middleware\PrettyExceptions->call()
    #13 /var/www/html/tokboxphpserver/index.php(156): Slim\Slim->run()
    #14 {main}
    

0 个答案:

没有答案