duancaishi1897 2016-08-18 02:21
浏览 23
已采纳

cloud9,无法安装php cURL

I'm trying to execute my php script with a Curl request in cloud9. When I run, I have this Exception:

"Uncaught exception 'Exception' with message 'php function "curl_init" is missing' in /home/ubuntu/workspace/test.."

I tried to install curl with sudo apt-get install php-curl or sudo apt-get install php5.5-curl, also with "ppa:ondrej/php" repository.

Curl package seems to be installed successfully in the cloud9 virtual machine, but it hasn't been enabled in my php.ini.

  • 写回答

2条回答 默认 最新

  • dsf5632 2016-08-24 13:52
    关注

    Hope this works for you:

    sudo apt-get update
    

    Then:

    sudo apt-get install php5-curl
    
    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
查看更多回答(1条)
编辑
预览

报告相同问题?

悬赏问题

  • ¥15 PADS Logic 原理图
  • ¥15 PADS Logic 图标
  • ¥15 电脑和power bi环境都是英文如何将日期层次结构转换成英文
  • ¥20 气象站点数据求取中~
  • ¥15 如何获取APP内弹出的网址链接
  • ¥15 wifi 图标不见了 不知道怎么办 上不了网 变成小地球了