调用未定义的函数 curl_version [英] Call to undefined function curl_version

查看:33
本文介绍了调用未定义的函数 curl_version的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经在运行 php 5.6 的 ubuntu 14.04 上安装了 wordpress 4.6 站点.

Hi I have installed wordpress 4.6 site on ubuntu 14.04 running php 5.6.

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

The admin page is not visible and i can see below error in logs :-

致命错误:在第 274 行调用/var/www/html/files/modules/postie/postie.php 中未定义的函数 curl_version()

Fatal error: Call to undefined function curl_version() in /var/www/html/files/modules/postie/postie.php on line 274

我该如何解决这个问题?

How do i fix this?

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

I have verified that curl and php5-curl are installed on our server :-

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.

推荐答案

我最终解决了这个问题.

I was able to solve this eventually.

我的 ubuntu 机器上安装了三个 php - php5、php5.6 和 php7.php5 中安装了 curl,但被 apache 忽略.apache 使用的是 php5.6.我去了/etc/apache2/mods-enabled 并删除了除 php5 之外的所有 php 链接.

I had three php installations on my ubuntu box - php5, php5.6 and php7. php5 had curl installed in it but was being ignore by apache. apache was using php5.6. I went to /etc/apache2/mods-enabled and removed all the php links except for php5.

这篇关于调用未定义的函数 curl_version的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆