简体   繁体   English

在Ubuntu Amazon EC2上安装PhP curl

[英]Installing PhP curl on Ubuntu Amazon EC2

Im new to Amazon Ec2 and I'm 'NOT AN EXPERT', after I installed my word-press blog I found that Facebook comments of users are disabled, May be because I need to enable PhP Curl on the server (Im guessing). 我是亚马逊Ec2的新手,我不是一个专家',在我安装了我的文字新闻博客后,我发现用户的Facebook评论被禁用,可能是因为我需要在服务器上启用PhP Curl(我猜)。 I need a help on how to do that please, and I would really appreciate if you explain it in details so I can help my self as a beginner. 我需要一个如何做到这一点的帮助,如果你详细解释它我会非常感激,所以我可以帮助我自己作为一个初学者。 I really appreciate your help :) Im Mac user AMI: bitnami-wordpress-3.3-2-linux-x64-ubuntu-10.04-ebs (ami-6938ed00) 我非常感谢你的帮助:) Im Mac用户AMI:bitnami-wordpress-3.3-2-linux-x64-ubuntu-10.04-ebs(ami-6938ed00)

You can install PHP-curl using the command 您可以使用该命令安装PHP-curl

sudo apt-get install php5-curl

Also you may have to enable it in php.ini if it is commented using ;(semicolon) in it. 如果在其中使用;(分号)进行注释,您可能必须在php.ini中启用它。

BitNami WordPress uses it owns PHP version which already includes curl (not the ubuntu PHP). BitNami WordPress使用它拥有已经包含curl的PHP版本(不是ubuntu PHP)。 If you run /opt/bitnami/php/bin/php -m you will see curl in the list of modules loaded. 如果运行/opt/bitnami/php/bin/php -m您将在加载的模块列表中看到curl。

sudo apt-get install php5-curl would install curl in the system php which is not the php that is using your WordPress installation (from BitNami). sudo apt-get install php5-curl会在系统php中安装curl,这不是使用你的WordPress安装的php(来自BitNami)。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM