gpt4 book ai didi

php - 调用未定义函数 curl_version

转载 作者:可可西里 更新时间:2023-10-31 22:40:25 26 4
gpt4 key购买 nike

您好,我已经在运行 php 5.6 的 ubuntu 14.04 上安装了 wordpress 4.6 站点。

管理页面不可见,我可以在日志中看到以下错误:-

fatal error :调用/var/www/html/files/modules/postie/postie.php 中的未定义函数 curl_version() 第 274 行

我该如何解决这个问题?

我已经确认我们的服务器上安装了 curl 和 php5-curl :-

ubuntu@ip-172-39-6-147:/var/www/html$ sudo apt-get install curl
Reading package lists... Done
Building dependency tree
Reading state information... Done
curl is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 137 not upgraded.
ubuntu@ip-172-39-6-147:/var/www/html$ sudo apt-get install php5-curl
Reading package lists... Done
Building dependency tree
Reading state information... Done
php5-curl is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 137 not upgraded.

最佳答案

在当前版本的 Debian 和 Ubuntu 上,您可能可以通过安装 PHP 的 Curl 扩展并重新启动网络服务器来解决此问题。假设网络服务器是 Apache 2:

sudo apt-get install php-curl

sudo service apache2 restart

您可能需要安装更多:

sudo apt-get install curl libcurl3 libcurl3-dev;

关于php - 调用未定义函数 curl_version,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/45001345/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com