Installing PhP curl on Ubuntu Amazon EC2

↘锁芯ラ 提交于 2019-12-07 15:36:24

问题


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). 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)


回答1:


You can install PHP-curl using the command

sudo apt-get install php5-curl

Also you may have to enable it in php.ini if it is commented using ;(semicolon) in it.




回答2:


BitNami WordPress uses it owns PHP version which already includes curl (not the ubuntu PHP). If you run /opt/bitnami/php/bin/php -m you will see curl in the list of modules loaded.

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).



来源:https://stackoverflow.com/questions/9715693/installing-php-curl-on-ubuntu-amazon-ec2

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!