cloud9,无法安装 php cURL
cloud9, cannot install php cURL
我正在尝试在 cloud9 中使用 Curl 请求执行我的 php 脚本。
当我 运行,我有这个异常:
"Uncaught exception 'Exception' with message 'php function "curl_init" 在 /home/ubuntu/workspace/test.." 中丢失''
我尝试使用 sudo apt-get install php-curl
安装 curl
或 sudo apt-get install php5.5-curl
,
还带有 "ppa:ondrej/php" 存储库。
curl包好像在cloud9虚拟机安装成功了,但是在我的php.ini.
里面没有启用
希望这对你有用:
sudo apt-get update
然后:
sudo apt-get install php5-curl
如果您是 运行 Ubuntu,请使用
$ sudo apt-get install php-curl
这将在 2019 年 5 月 16 日安装 'php7.2-curl'。
我正在尝试在 cloud9 中使用 Curl 请求执行我的 php 脚本。 当我 运行,我有这个异常:
"Uncaught exception 'Exception' with message 'php function "curl_init" 在 /home/ubuntu/workspace/test.." 中丢失''
我尝试使用 sudo apt-get install php-curl
安装 curl
或 sudo apt-get install php5.5-curl
,
还带有 "ppa:ondrej/php" 存储库。
curl包好像在cloud9虚拟机安装成功了,但是在我的php.ini.
里面没有启用希望这对你有用:
sudo apt-get update
然后:
sudo apt-get install php5-curl
如果您是 运行 Ubuntu,请使用
$ sudo apt-get install php-curl
这将在 2019 年 5 月 16 日安装 'php7.2-curl'。