嗨我已经在运行php 5.6的ubuntu 14.04上安装了wordpress 4.6站点.
管理页面不可见,我可以在日志中看到以下错误: –
致命错误:在第274行的/var/www/html/files/modules/postie/postie.php中调用未定义的函数curl_version()
我该如何解决?
我已经验证我们的服务器上安装了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扩展并重新启动Web服务器来解决这个问题.假设网络服务器是Apache 2:
sudo apt-get install php5-curl
sudo service apache2 restart
您可能需要安装更多:
sudo apt-get install curl libcurl3 libcurl3-dev;
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。