Newbie : how to install curl on centos 5

Whether you are using Linux on the desktop or as a server, it's still good that you're using Linux. Linux related questions go here.

Moderator: General Moderators

Post Reply
madnessken
Forum Newbie
Posts: 1
Joined: Sat Jun 05, 2010 5:33 am

Newbie : how to install curl on centos 5

Post by madnessken »

Hello I want to install curl-php on my server , I tried yum install curl but my code is still not working..
How can I install curl php for centos 5 ?
I read some tutorials but still don't got the point.

Thanks in advance,

madnessken
User avatar
John Cartwright
Site Admin
Posts: 11470
Joined: Tue Dec 23, 2003 2:10 am
Location: Toronto
Contact:

Re: Newbie : how to install curl on centos 5

Post by John Cartwright »

cURL usually comes with the installation packages, but is disabled by default. To enable curl, you simply need to uncomment the curl extension in your php.ini.

I.e.,

change

[text];extension=curl.so[/text]

to

[text]extension=curl.so[/text]

and restart Apache.
Doug G
Forum Contributor
Posts: 282
Joined: Sun Sep 09, 2007 6:27 pm

Re: Newbie : how to install curl on centos 5

Post by Doug G »

From a terminal you can do

Code: Select all

$ yum list "*curl*" (as root)
to see what curl packages you have installed and are available for install.
Post Reply