Welcome to Top Forum

Top Forum - Rapidshare, Megaupload, Hotfile Downloads and more

  Top Forum - Rapidshare, Megaupload, Hotfile Downloads and more >TopForum Discussion >Helpdesk >Web Development

Web Development

Ask Questions and Share Web Related Info

Reply

Installing cURL on a cPanel sever

 
Thread Tools Rate Thread Display Modes
  #1 (permalink)  
Old 01-31-2009, 12:32 PM
Wizard's Avatar
Moderator
 
Join Date: Feb 2008
Location: east coast
Posts: 5,426
Thanks: 353
Thanked 281 Times in 142 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
  #2 (permalink)  
Old 03-31-2009, 08:31 PM
Wizard's Avatar
Moderator
 
Join Date: Feb 2008
Location: east coast
Posts: 5,426
Thanks: 353
Thanked 281 Times in 142 Posts
Default

recompile = restart apache server in whm

tested this on a vps and it works
__________________
LiNK ALCHEMiST
Reply With Quote
Reply

Tags
cpanel, curl, installing, sever

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off


All times are GMT -4. The time now is 08:19 AM.
Powered by vBulletin® Version 3.8.5
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.

Top Forum

Top Forum