Call to undefined function curl_init() even it is enabled in php7

前端 未结 10 652
旧巷少年郎
旧巷少年郎 2020-12-03 01:00

I\'ve just installed php7 to my Ubuntu. At first, there was no problem, my web site was working. But suddenly, it started to return Call to undefined function curl_init() er

10条回答
  •  野趣味
    野趣味 (楼主)
    2020-12-03 01:23

    I've had similar problem with curl after upgrade to XX (16.04). After reinstalling curl with:

    sudo apt-get install php-curl
    

    And server restart

    sudo service apache2 restart
    

    everything went back to normal :)

提交回复
热议问题