English  France













If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.



Reply
  #1 (permalink)  
Old 05-01-2009, 05:22 AM
UnderHost's Avatar
UnderHost Management
 
Join Date: Jul 2008
Posts: 581
Default How can i install cURL on my cPanel server?

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:
PHP Code:
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:
PHP Code:
/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!
__________________
UnderHostProviding Affordable and Quality USA Hosting & Offshore cPanel Hosting
24/7 Rapid Support / 99.9% Uptime Guarantee / Shared / Reseller / VPS / Dedicated
Premium VPSUSA Cloud Virtual Private Servers - Dedicated and Scalable Resources - Parallels® Virtuozzo
Hong Kong - Singapore - USA - Canada - Netherlands - UK - Germany - Panama - Malaysia
Reply With Quote
underhost.us
Reply

Thread Tools
Display Modes

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 On
Pingbacks are On
Refbacks are On

Loading...


All times are GMT -4. The time now is 02:18 PM.
Copyright © 2010 UnderHost Networks Ltd






Partners
Underhost Facebook  Underhost Twitter

Copyright © 2011 UnderHost Networks Ltd