The PHP cURL extension must be installed to use Guzzle 错误: ubuntu 安装 php-curl 拓展

php 错误:

PHP message: PHP Fatal error:  Uncaught exception 'Guzzle\Common\Exception\RuntimeException' wit    h message 'The PHP cURL extension must be installed to use Guzzle.'

首先输入
apt-cache search curl | grep php
查询curl的php支持名字
可能会返回如下内容:
php5-curl - CURL module for php5
安装:

sudo apt-get install php5-curl

重启apache
sudo /etc/init.d/apache2 restart
重启nginx
sudo /etc/init.d/nginx restart

sudo service nginx restart

你可能感兴趣的:(PHP,ubuntu)