Installing CURL on Cpanel/WHM

There are two common types of cURL installs on most cPanel servers. The first is a binary install, this is where the cURL binary (program) sits on your server (usually in /usr/bin) and can be run via the CLI or script. The second method is to have cURL built into PHP so that PHP's cURL functions can be used in PHP code. Below explains how to install each.

Installing the Binary Version on All versions of CentOS:

1. Log into the server via SSH or console as root.
2. Run the following command:

yum install curl curl-devel

3. When prompted to confirm the installation press y.

CURL is now installed and should reside in /usr/bin/curl

Adding cURL support into PHP:

1. Log into the server via SSH or console as root.
2. Run the following command:

/scripts/easyapache

3. Select 'Start customizing based on profile', leaving 'Previously Saved Config' checked.
4. Select the version of Apache you would like to run.
5. Select the branch and version of PHP you would like on the next two pages (it is not recommended to run both PHP 4 and 5).
6. Select 'Exhaustive Options List' on the following page.
7. Scroll down to the PHP configuration section to cURL, and proceed to th enext stop (cURL-SSL can also be enabled).
8. Select 'Save and Build', and let the compilation run its course (usually takes 15-20 minutes).

The system will now recompile PHP with cURL support!
 
  • 0 användare blev hjälpta av detta svar
Hjälpte svaret dig?

Relaterade artiklar

Hostname Change: Warning: Signed SSL Certificate does not match current hostname!

You've recently changed your hostname under Cpanel/WHM and are now getting an error as...

Generate an SSL Certificate and Signing Request

Synopsis:You can use this feature to simultaneously generate both a self-signed SSL certificate...

How can I setup webmail to go directly to Horde, SquirrelMail or RoundCube?

1. Login to the webmail program you prefer. You can get there by going to yourdomain.com/webmail....

How to add an account in WHM

To add a web hosting (cPanel) account in WHM, after logging in, click Home » Account Functions »...

How To Backup Your Website with cPanel

How-to Steps:1. Log into the cPanel account of your website...