Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

PHP

Bob Puccini
Bob Puccini
7,011 Points

How do I install cURL for PHP on an ubuntu server?

How do I install it. Please help.

3 Answers

Davide Pugliese
Davide Pugliese
4,091 Points

Hello, I manage 2 servers with Ubuntu, so I am gonna answer you.

You have to run in a shell (aka terminal or command prompt) the following commands having root access or being logged as a user belonging to the sudo group (aka sudoers).

apt-cache search curl | grep -i php

This way you find the name of the package, then you run:

apt-get install packagename

Where packagename is the name of the package you want to install.

As you can see here as well: http://packages.ubuntu.com/search?keywords=php5-curl

the name of the package is php5-curl

Cheers, Davide