Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

like image 900
Ibrahim Abdelhady Avatar asked Jul 04 '26 13:07

Ibrahim Abdelhady


2 Answers

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.

like image 189
Taco Avatar answered Jul 07 '26 03:07

Taco


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

like image 40
kaysa Avatar answered Jul 07 '26 03:07

kaysa



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!