作者热门文章
- android - RelativeLayout 背景可绘制重叠内容
- android - 如何链接 cpufeatures lib 以获取 native android 库?
- java - OnItemClickListener 不起作用,但 OnLongItemClickListener 在自定义 ListView 中起作用
- java - Android 文件转字符串
您好,我已经在运行 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/
您好,我已经在运行 php 5.6 的 ubuntu 14.04 上安装了 wordpress 4.6 站点。 管理页面不可见,我可以在日志中看到以下错误:- fatal error :调用/var/
我正在尝试将 stripe 集成到我的 PHP 项目中,但在本地主机上出现此错误: Fatal error: Uncaught Error: Call to undefined function cu
我是一名优秀的程序员,十分优秀!