{"id":3511,"date":"2010-02-27T18:10:18","date_gmt":"2010-02-27T23:10:18","guid":{"rendered":"http:\/\/underhost.com\/blog\/?p=3511"},"modified":"2016-02-27T18:10:49","modified_gmt":"2016-02-27T23:10:49","slug":"how-can-i-install-curl-on-my-cpanel-server","status":"publish","type":"post","link":"https:\/\/underhost.com\/blog\/how-can-i-install-curl-on-my-cpanel-server\/","title":{"rendered":"How can i install cURL on my cPanel server?"},"content":{"rendered":"<p>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&#8217;s cURL functions can be used in PHP code. Below explains how to install each.<br \/>\n<b>Installing the Binary Version on All versions of CentOS\/RHEL\/Fedora:<\/b><\/p>\n<blockquote><p>1. Log into the server via SSH or console as root.<br \/>\n2. Run the following command:<\/p>\n<blockquote>\n<div>\n<div class=\"smallfont\">PHP Code:<\/div>\n<div class=\"alt2\" dir=\"ltr\"><code><code>yum\u00a0install\u00a0curl\u00a0curl-devel<br \/>\n<\/code><\/code><\/div>\n<\/div>\n<\/blockquote>\n<p>3. When prompted to confirm the installation press y.<\/p><\/blockquote>\n<p>CURL is now installed and should reside in \/usr\/bin\/curl<br \/>\n<b>Adding cURL support into PHP:<\/b><\/p>\n<blockquote><p>1. Log into the server via SSH or console as root.<br \/>\n2. Run the following command:<\/p>\n<blockquote>\n<div>\n<div class=\"smallfont\">PHP Code:<\/div>\n<div class=\"alt2\" dir=\"ltr\"><code><code>\/scripts\/easyapache<br \/>\n<\/code><\/code><\/div>\n<\/div>\n<\/blockquote>\n<p>3. Select &#8216;Start customizing based on profile&#8217;, leaving &#8216;Previously Saved Config&#8217; checked.<br \/>\n4. Select the version of Apache you would like to run.<br \/>\n5. Select the branch and version of PHP you would like on the next two pages (it is <b>not <\/b>recommended to run both PHP 4 and 5).<br \/>\n6. Select &#8216;Exhaustive Options List&#8217; on the following page.<br \/>\n7. Scroll down to the PHP configuration section to cURL, and proceed to th enext stop (cURL-SSL can also be enabled).<br \/>\n8. Select &#8216;Save and Build&#8217;, and let the compilation run its course (usually takes 15-20 minutes).<\/p><\/blockquote>\n<p>The system will now recompile PHP with cURL support!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>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&#8217;s cURL [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3,11],"tags":[],"class_list":["post-3511","post","type-post","status-publish","format-standard","hentry","category-controlpanel","category-how-to"],"_links":{"self":[{"href":"https:\/\/underhost.com\/blog\/wp-json\/wp\/v2\/posts\/3511","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/underhost.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/underhost.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/underhost.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/underhost.com\/blog\/wp-json\/wp\/v2\/comments?post=3511"}],"version-history":[{"count":1,"href":"https:\/\/underhost.com\/blog\/wp-json\/wp\/v2\/posts\/3511\/revisions"}],"predecessor-version":[{"id":3512,"href":"https:\/\/underhost.com\/blog\/wp-json\/wp\/v2\/posts\/3511\/revisions\/3512"}],"wp:attachment":[{"href":"https:\/\/underhost.com\/blog\/wp-json\/wp\/v2\/media?parent=3511"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/underhost.com\/blog\/wp-json\/wp\/v2\/categories?post=3511"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/underhost.com\/blog\/wp-json\/wp\/v2\/tags?post=3511"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}