Forum: 

Installing Curl in apache?

Jeremy Selph's picture

I need the extension curl for php and cant find any documentation online on how to install it. Normally the libaries are there from what I have read. This is the message I get when I try to install it fromn the commad shell.

> sudo apt-get install curl libcurl3 libcurl3-dev php5-curl
Reading package lists...
Building dependency tree...
Reading state information...
E: Couldn't find package curl
 
Please note I am not a linux guru hence the reason for trying turnkey linux. If ayone has an idea or knows of a tutorial to install curl that would be great. I was able to find the libary online but not sure where to put it and how to install it.
Alon Swartz's picture

Try this:
apt-get update
apt-get install curl libcurl3 libcurl3-dev php5-curl
Landis Arnold's picture

Took quite a while but two parts here:

Do this in WebShell (not issue a Command from Webmin)

drop the middle libcurl2-dev from this command

apt-get install curl libcurl3 libcurl3-dev php5-curl

be sure to do both lines:  (needed for MageBridge Joomla)

apt-get update
apt-get install curl libcurl3 php5-curl

Still need now to upgrade php version to 5.2.8 or greater.  How to do that in Turnkey Joomla install (most recent version).

Guest's picture

Needed Curl for Yootheme Zoo - did what you said and rebooted machine and done!  Thanks

Jeremy Selph's picture

> apt-get update apt-get install curl libcurl3 libcurl3-dev php5-curl 
E: The update command takes no arguments

also tried this...

> apt-get install curl libcurl3 libcurl3-dev php5-curl 
Reading package lists... 
Building dependency tree... 
Reading state information... 
E: Couldn't find package curl

Jeremy Selph's picture

Sent this first....
 
> apt-get update 
Get:1 http://archive.turnkeylinux.org hardy-security Release.gpg [481B] 
Get:2 http://archive.turnkeylinux.org hardy Release.gpg [481B] 
Get:3 http://archive.turnkeylinux.org hardy-security Release [1926B] 
Get:4 http://archive.ubuntu.com hardy-security Release.gpg [189B] 
Get:5 http://archive.ubuntu.com hardy Release.gpg [189B] 
Get:6 http://archive.turnkeylinux.org hardy Release [1899B] 
Get:7 http://archive.ubuntu.com hardy-updates Release.gpg [189B] 
Get:8 http://archive.ubuntu.com hardy-security Release [58.5kB] 
Get:9 http://archive.turnkeylinux.org hardy-security/main Packages [29B] 
Get:10 http://archive.turnkeylinux.org hardy-security/universe Packages [3350B]
Get:11 http://archive.turnkeylinux.org hardy/main Packages [4377B] 
Get:12 http://archive.turnkeylinux.org hardy/universe Packages [47.9kB] 
Get:13 http://archive.ubuntu.com hardy Release [65.9kB] 
Get:14 http://archive.ubuntu.com hardy-updates Release [58.5kB] 
Get:15 http://archive.ubuntu.com hardy-security/main Packages [204kB] 
Get:16 http://archive.ubuntu.com hardy-security/universe Packages [102kB] 
Get:17 http://archive.ubuntu.com hardy/main Packages [1518kB] 
Get:18 http://archive.ubuntu.com hardy/universe Packages [5607kB] 
Get:19 http://archive.ubuntu.com hardy-updates/main Packages [566kB] 
Get:20 http://archive.ubuntu.com hardy-updates/universe Packages [251kB] 
Fetched 8491kB in 14s (592kB/s) Reading package lists...

then sent this...

> apt-get install curl libcurl3 libcurl3-dev php5-curl 
Reading package lists... 
Building dependency tree... 
Reading state information... 
Package libcurl3-dev is a virtual package provided by: libcurl4-openssl-dev 7.18.0-1ubuntu2.1 
You should explicitly select one to install. 
E: Package libcurl3-dev has no installation candidate

Landis Arnold's picture

apt-get update
apt-get install curl libcurl3 php5-curl

I have done this a few times and gotten Curl to post well.  Has worked w/ Hardy Joomla and lucid Lamp from the command

Also this is working to install GD (which I need for Magento - don't know what it is)  (need to drop the 5 in PHP to install php-apc  (accelerator) -- thanks to Adrian for his Magento Posts re GD and APC.

apt-get install php5-gd

drop the "dev" out of the libaries and use the text above -- I did this awhile back and was having the same trouble you were/or are.

Pinki Naskar's picture

Thank you very much Arnold.

It works.

Russell Manning's picture

This worked, we were getting a Joomla php_curl not enabled error while working with a Google Analytics module.

Guest's picture

Many thanks that sorted my curl prob, incidently, it didnt seem like curl was shipped with my default PHP5 install? (Ubuntu -s 64b)

Steve's picture

I'm runing the latest Joomla 1.6 on EC2.  Tried the above (without the dev part) and still get:

E: Couldn't find package libcurl13

 

Any ideas?

Jeremy Davis's picture

It's libcurl3 not libcurl13! Try that! :)

ethanthekiwi's picture

 

Jeremy Davis's picture

Just like Webmin but you use port 12320 (instead of 12321 like you do for Webmin) eg https://<appliance-name-or-IP>:12320

Alternatively you can use an SSH connection eg using a SSH client such as PuTTY.

Bjørn Otto Vasbotten's picture

Hello,

if you browse to the default start screen when you first boot up your LAMP stack VM, you will find a WebShell icon there which will take you to the webshell where you login with the root password you set up while installing the stack.

fookraa's picture

i have absolutely no idea about fopen() in php and php , however i suppose i am trobuled by this thing only... initially i was unaware about such thingh when i started this thread

http://www.turnkeylinux.org/forum/support/20111212/joomla-cannot-interact-internet

however this problem is now turning like a beast... webmin can esiely interact to external internet, however joomla is getting mad day by day.

Post new comment