View Single Post
  #1 (permalink)  
Old 01-31-2009, 12:32 PM
Wizard's Avatar
Wizard Wizard is offline
Moderator
 
Join Date: Feb 2008
Location: east coast
Posts: 5,426
Thanks: 353
Thanked 293 Times in 144 Posts
Default Installing cURL on a cPanel sever

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/RHEL/Fedora
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 it's course (usually takes 15-20 minutes).


Final step is to recompile the php to enable cURL support
__________________
LiNK ALCHEMiST
Reply With Quote