{"id":3511,"date":"2010-02-27T18:10:18","date_gmt":"2010-02-27T23:10:18","guid":{"rendered":"http:\/\/underhost.com\/blog\/?p=3511"},"modified":"2026-10-23T09:55:16","modified_gmt":"2026-10-23T13:55:16","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 to Install cURL and PHP cURL on a cPanel Server (EasyApache 4)"},"content":{"rendered":"<div class=\"uh-blog-hero\" style=\"margin:0 0 40px;text-align:center;padding:48px 24px;border-radius:20px;background:linear-gradient(135deg,#0D1F3C 0%,#125A8A 58%,#176EA5 100%);color:#ffffff;box-shadow:0 20px 40px -15px rgba(13,31,60,0.28);position:relative;overflow:hidden;\">\n<div style=\"display:inline-flex;align-items:center;gap:8px;padding:7px 14px;margin-bottom:16px;border:1px solid rgba(0,212,255,0.32);border-radius:999px;color:#DFF8FF;font-size:12px;font-weight:800;letter-spacing:.06em;text-transform:uppercase;background:rgba(0,212,255,0.10);\"><i class=\"fas fa-sliders-h\" style=\"color:#00D4FF;\"><\/i> Control Panels<\/div>\n<h1 style=\"color:#ffffff;font-size:clamp(32px,5vw,46px);line-height:1.12;margin:0 0 14px;font-weight:800;\">How to Install cURL and PHP cURL on a cPanel Server (EasyApache 4)<\/h1>\n<\/div>\n<div class=\"uh-blog-excerpt\" style=\"border-left:4px solid #00D4FF;padding:18px 20px;margin:0 0 34px;background:#F8FAFC;color:#1F2937;border-radius:0 14px 14px 0;box-shadow:0 8px 28px rgba(13,31,60,0.08);line-height:1.75;\"><strong style=\"color:#0D1F3C;\">Short answer:<\/strong> cURL comes in two parts. The <code>curl<\/code> command is part of the operating system: install or update it with <code>dnf install curl<\/code> and check it with <code>curl --version<\/code>. PHP&#8217;s cURL extension, which WordPress, WHMCS and most payment plugins need, is installed per PHP version in <strong>WHM &gt; EasyApache 4<\/strong> (package <code>ea-phpXX-php-curl<\/code>). Check it with <code>php -m | grep -i curl<\/code>.<\/div>\n<nav aria-label=\"Table of contents\" class=\"uh-toc\" style=\"background:#ffffff;border:1px solid #E5E7EB;border-radius:16px;padding:20px 22px;margin:0 0 34px;box-shadow:0 4px 12px rgba(13,31,60,0.08);\">\n<div style=\"font-size:12px;font-weight:800;letter-spacing:.06em;text-transform:uppercase;color:#176EA5;margin-bottom:10px;\"><i class=\"fas fa-list\" style=\"color:#00D4FF;\"><\/i> In this guide<\/div>\n<ol style=\"margin:0;padding-left:20px;columns:2 260px;column-gap:28px;line-height:1.9;\">\n<li><a href=\"#the-two-kinds-of-curl\" style=\"color:#176EA5;text-decoration:none;font-weight:600;\">The two kinds of cURL<\/a><\/li>\n<li><a href=\"#install-or-update-the-curl-command\" style=\"color:#176EA5;text-decoration:none;font-weight:600;\">Install or update the cURL command<\/a><\/li>\n<li><a href=\"#install-the-php-curl-extension-in-whm\" style=\"color:#176EA5;text-decoration:none;font-weight:600;\">Install the PHP cURL extension in WHM<\/a><\/li>\n<li><a href=\"#check-that-php-curl-works\" style=\"color:#176EA5;text-decoration:none;font-weight:600;\">Check that PHP cURL works<\/a><\/li>\n<li><a href=\"#useful-curl-commands-for-server-work\" style=\"color:#176EA5;text-decoration:none;font-weight:600;\">Useful cURL commands for server work<\/a><\/li>\n<li><a href=\"#a-simple-php-curl-request\" style=\"color:#176EA5;text-decoration:none;font-weight:600;\">A simple PHP cURL request<\/a><\/li>\n<li><a href=\"#use-curl-safely-in-scripts\" style=\"color:#176EA5;text-decoration:none;font-weight:600;\">Use cURL safely in scripts<\/a><\/li>\n<li><a href=\"#troubleshooting\" style=\"color:#176EA5;text-decoration:none;font-weight:600;\">Troubleshooting<\/a><\/li>\n<\/ol>\n<\/nav>\n<div class=\"uh-post-content\" style=\"color:#1F2937;font-size:16px;line-height:1.75;\">\n<h2 id=\"the-two-kinds-of-curl\" style=\"color:#0D1F3C;font-size:28px;line-height:1.25;margin:34px 0 14px;scroll-margin-top:90px;\"><i class=\"fas fa-angle-double-right\" style=\"color:#00D4FF;\"><\/i> The two kinds of cURL<\/h2>\n<div style=\"overflow-x:auto;margin:26px 0;border:1px solid #E5E7EB;border-radius:14px;-webkit-overflow-scrolling:touch;\">\n<table style=\"width:100%;border-collapse:collapse;background:#ffffff;color:#1F2937;font-size:15px;line-height:1.55;margin:0;min-width:600px;\">\n<thead>\n<tr style=\"background:#0D1F3C;color:#fff;\">\n<th style=\"padding:14px;text-align:left;\"><\/th>\n<th style=\"padding:14px;text-align:left;\">cURL command-line tool<\/th>\n<th style=\"padding:14px;text-align:left;\">PHP cURL extension<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td style=\"padding:14px;border-top:1px solid #E5E7EB;vertical-align:top;\">What it is<\/td>\n<td style=\"padding:14px;border-top:1px solid #E5E7EB;vertical-align:top;\">A program you run in the shell and in scripts<\/td>\n<td style=\"padding:14px;border-top:1px solid #E5E7EB;vertical-align:top;\">A PHP module that lets PHP code make web requests<\/td>\n<\/tr>\n<tr>\n<td style=\"padding:14px;border-top:1px solid #E5E7EB;vertical-align:top;\">Used by<\/td>\n<td style=\"padding:14px;border-top:1px solid #E5E7EB;vertical-align:top;\">Administrators, cron jobs, install scripts<\/td>\n<td style=\"padding:14px;border-top:1px solid #E5E7EB;vertical-align:top;\">WordPress, WooCommerce, WHMCS, payment and API plugins<\/td>\n<\/tr>\n<tr>\n<td style=\"padding:14px;border-top:1px solid #E5E7EB;vertical-align:top;\">Installed with<\/td>\n<td style=\"padding:14px;border-top:1px solid #E5E7EB;vertical-align:top;\">The operating system package manager<\/td>\n<td style=\"padding:14px;border-top:1px solid #E5E7EB;vertical-align:top;\">EasyApache 4, for each PHP version<\/td>\n<\/tr>\n<tr>\n<td style=\"padding:14px;border-top:1px solid #E5E7EB;vertical-align:top;\">Updated by<\/td>\n<td style=\"padding:14px;border-top:1px solid #E5E7EB;vertical-align:top;\">System updates<\/td>\n<td style=\"padding:14px;border-top:1px solid #E5E7EB;vertical-align:top;\">EasyApache 4 package updates<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<h2 id=\"install-or-update-the-curl-command\" style=\"color:#0D1F3C;font-size:28px;line-height:1.25;margin:34px 0 14px;scroll-margin-top:90px;\"><i class=\"fas fa-terminal\" style=\"color:#00D4FF;\"><\/i> Install or update the cURL command<\/h2>\n<pre style=\"background:#0D1F3C;color:#EAF6FF;padding:18px 20px;border-radius:14px;overflow-x:auto;line-height:1.7;font-size:15px;\"><code># AlmaLinux, Rocky Linux, CloudLinux\ndnf install -y curl\n\n# Development headers, only if you compile software against libcurl\ndnf install -y libcurl-devel\n\ncurl --version<\/code><\/pre>\n<p style=\"margin:0 0 18px;\">cURL is installed on almost every server already. Keep it updated with your normal system updates, because cURL security fixes arrive through the operating system packages. Do not compile cURL from source on a cPanel server; it can conflict with the system libraries.<\/p>\n<h2 id=\"install-the-php-curl-extension-in-whm\" style=\"color:#0D1F3C;font-size:28px;line-height:1.25;margin:34px 0 14px;scroll-margin-top:90px;\"><i class=\"fas fa-terminal\" style=\"color:#00D4FF;\"><\/i> Install the PHP cURL extension in WHM<\/h2>\n<ol style=\"margin:0 0 24px;padding-left:22px;\">\n<li style=\"margin:0 0 8px;\">Log in to WHM as root and open <strong>Software &gt; EasyApache 4<\/strong>.<\/li>\n<li style=\"margin:0 0 8px;\">Click <strong>Customize<\/strong> next to the currently installed packages.<\/li>\n<li style=\"margin:0 0 8px;\">Open <strong>PHP Extensions<\/strong> and search for <code>curl<\/code>.<\/li>\n<li style=\"margin:0 0 8px;\">Turn on <code>ea-phpXX-php-curl<\/code> for every PHP version your sites use, for example <code>ea-php83-php-curl<\/code>.<\/li>\n<li style=\"margin:0 0 8px;\">Click <strong>Review<\/strong>, then <strong>Provision<\/strong>.<\/li>\n<\/ol>\n<p style=\"margin:0 0 18px;\">You can install the same packages over SSH:<\/p>\n<pre style=\"background:#0D1F3C;color:#EAF6FF;padding:18px 20px;border-radius:14px;overflow-x:auto;line-height:1.7;font-size:15px;\"><code>dnf install -y ea-php83-php-curl ea-php84-php-curl\n\/scripts\/restartsrv_apache_php_fpm<\/code><\/pre>\n<p style=\"margin:0 0 18px;\">On CloudLinux servers that use PHP Selector, account owners can also turn the extension on themselves in <strong>Select PHP Version<\/strong>. See our <a href=\"https:\/\/underhost.com\/blog\/optimizing-php-performance-in-cloudlinux-with-php-selector\/\">PHP Selector guide<\/a>.<\/p>\n<h2 id=\"check-that-php-curl-works\" style=\"color:#0D1F3C;font-size:28px;line-height:1.25;margin:34px 0 14px;scroll-margin-top:90px;\"><i class=\"fas fa-clipboard-check\" style=\"color:#00D4FF;\"><\/i> Check that PHP cURL works<\/h2>\n<pre style=\"background:#0D1F3C;color:#EAF6FF;padding:18px 20px;border-radius:14px;overflow-x:auto;line-height:1.7;font-size:15px;\"><code># For one PHP version\n\/opt\/cpanel\/ea-php83\/root\/usr\/bin\/php -m | grep -i curl\n\n# Show the libcurl version PHP uses\n\/opt\/cpanel\/ea-php83\/root\/usr\/bin\/php -r \"print_r(curl_version()['version']);\"<\/code><\/pre>\n<p style=\"margin:0 0 18px;\">To check from a website, create a temporary <code>info.php<\/code> file with <code>&lt;?php phpinfo();<\/code>, open it in the browser, search for &#8220;curl&#8221;, then delete the file.<\/p>\n<h2 id=\"useful-curl-commands-for-server-work\" style=\"color:#0D1F3C;font-size:28px;line-height:1.25;margin:34px 0 14px;scroll-margin-top:90px;\"><i class=\"fas fa-terminal\" style=\"color:#00D4FF;\"><\/i> Useful cURL commands for server work<\/h2>\n<pre style=\"background:#0D1F3C;color:#EAF6FF;padding:18px 20px;border-radius:14px;overflow-x:auto;line-height:1.7;font-size:15px;\"><code>curl -I https:\/\/example.com\/              # headers only: status code, redirects, cache\ncurl -L -o file.zip https:\/\/example.com\/file.zip   # follow redirects and save to a file\ncurl -v https:\/\/example.com\/              # full connection details, useful for SSL problems\ncurl --resolve example.com:443:203.0.113.10 https:\/\/example.com\/   # test a new server before DNS\ncurl -X POST -d \"name=test\" https:\/\/example.com\/form   # send form data<\/code><\/pre>\n<h2 id=\"a-simple-php-curl-request\" style=\"color:#0D1F3C;font-size:28px;line-height:1.25;margin:34px 0 14px;scroll-margin-top:90px;\"><i class=\"fas fa-angle-double-right\" style=\"color:#00D4FF;\"><\/i> A simple PHP cURL request<\/h2>\n<pre style=\"background:#0D1F3C;color:#EAF6FF;padding:18px 20px;border-radius:14px;overflow-x:auto;line-height:1.7;font-size:15px;\"><code>&lt;?php\n$ch = curl_init('https:\/\/api.example.com\/status');\ncurl_setopt($ch, CURLOPT_RETURNTRANSFER, true);\ncurl_setopt($ch, CURLOPT_TIMEOUT, 10);\n$response = curl_exec($ch);\nif ($response === false) {\n    echo 'cURL error: ' . curl_error($ch);\n}\ncurl_close($ch);<\/code><\/pre>\n<p style=\"margin:0 0 18px;\">Always set a timeout, so a slow remote service cannot hold your PHP processes.<\/p>\n<h2 id=\"use-curl-safely-in-scripts\" style=\"color:#0D1F3C;font-size:28px;line-height:1.25;margin:34px 0 14px;scroll-margin-top:90px;\"><i class=\"fas fa-angle-double-right\" style=\"color:#00D4FF;\"><\/i> Use cURL safely in scripts<\/h2>\n<ul style=\"margin:0 0 24px;padding-left:22px;\">\n<li style=\"margin:0 0 8px;\">Never turn off certificate checks with <code>-k<\/code> or <code>CURLOPT_SSL_VERIFYPEER = false<\/code> in production. Fix the certificate problem instead.<\/li>\n<li style=\"margin:0 0 8px;\">Keep API keys out of the command line, where other users can see them in the process list. Read them from a protected file instead.<\/li>\n<li style=\"margin:0 0 8px;\">Download install scripts to a file and read them before you run them, rather than piping them straight into bash.<\/li>\n<\/ul>\n<h2 id=\"troubleshooting\" style=\"color:#0D1F3C;font-size:28px;line-height:1.25;margin:34px 0 14px;scroll-margin-top:90px;\"><i class=\"fas fa-exclamation-triangle\" style=\"color:#00D4FF;\"><\/i> Troubleshooting<\/h2>\n<div style=\"overflow-x:auto;margin:26px 0;border:1px solid #E5E7EB;border-radius:14px;-webkit-overflow-scrolling:touch;\">\n<table style=\"width:100%;border-collapse:collapse;background:#ffffff;color:#1F2937;font-size:15px;line-height:1.55;margin:0;min-width:600px;\">\n<thead>\n<tr style=\"background:#0D1F3C;color:#fff;\">\n<th style=\"padding:14px;text-align:left;\">Error<\/th>\n<th style=\"padding:14px;text-align:left;\">Likely cause<\/th>\n<th style=\"padding:14px;text-align:left;\">Fix<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td style=\"padding:14px;border-top:1px solid #E5E7EB;vertical-align:top;\">Call to undefined function curl_init()<\/td>\n<td style=\"padding:14px;border-top:1px solid #E5E7EB;vertical-align:top;\">The PHP cURL extension is not installed for the site&#8217;s PHP version<\/td>\n<td style=\"padding:14px;border-top:1px solid #E5E7EB;vertical-align:top;\">Install ea-phpXX-php-curl for that version, or enable it in Select PHP Version.<\/td>\n<\/tr>\n<tr>\n<td style=\"padding:14px;border-top:1px solid #E5E7EB;vertical-align:top;\">curl: (60) SSL certificate problem<\/td>\n<td style=\"padding:14px;border-top:1px solid #E5E7EB;vertical-align:top;\">Outdated CA certificates, or the remote site has a bad certificate<\/td>\n<td style=\"padding:14px;border-top:1px solid #E5E7EB;vertical-align:top;\">Update the system with <code>dnf update ca-certificates<\/code>, then check the remote certificate.<\/td>\n<\/tr>\n<tr>\n<td style=\"padding:14px;border-top:1px solid #E5E7EB;vertical-align:top;\">curl: (7) Failed to connect<\/td>\n<td style=\"padding:14px;border-top:1px solid #E5E7EB;vertical-align:top;\">A firewall blocks outgoing connections<\/td>\n<td style=\"padding:14px;border-top:1px solid #E5E7EB;vertical-align:top;\">Check the server firewall&#8217;s outgoing rules, for example TCP_OUT in CSF.<\/td>\n<\/tr>\n<tr>\n<td style=\"padding:14px;border-top:1px solid #E5E7EB;vertical-align:top;\">curl: (6) Could not resolve host<\/td>\n<td style=\"padding:14px;border-top:1px solid #E5E7EB;vertical-align:top;\">DNS resolution problem on the server<\/td>\n<td style=\"padding:14px;border-top:1px solid #E5E7EB;vertical-align:top;\">Check <code>\/etc\/resolv.conf<\/code> and test with <code>dig example.com<\/code>.<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<div aria-hidden=\"true\" class=\"uh-section-divider\" style=\"width:min(100% - 32px, 1080px);margin:44px auto;display:grid;grid-template-columns:1fr 32px 1fr;align-items:center;gap:18px;pointer-events:none;\"><span style=\"height:1px;background:linear-gradient(90deg,transparent,rgba(0,212,255,0.40),rgba(23,110,165,0.24),transparent);\"><\/span><img alt=\"\" decoding=\"async\" height=\"32\" loading=\"lazy\" src=\"https:\/\/cdn.underhost.com\/android-chrome-192x192.webp\" style=\"width:32px;height:32px;display:block;border-radius:8px;filter:drop-shadow(0 0 14px rgba(0,212,255,0.30));\" width=\"32\"\/><span style=\"height:1px;background:linear-gradient(90deg,transparent,rgba(23,110,165,0.24),rgba(0,212,255,0.40),transparent);\"><\/span><\/div>\n<\/div>\n<div class=\"uh-blog-cta\" style=\"background:linear-gradient(135deg,#0D1F3C 0%,#125A8A 58%,#176EA5 100%);color:#ffffff;padding:36px 24px;border-radius:20px;text-align:center;margin:44px 0;box-shadow:0 20px 40px -15px rgba(13,31,60,0.32);\">\n<h2 style=\"margin:0 0 12px;font-size:28px;line-height:1.25;color:#ffffff;\">Need help with this?<\/h2>\n<p style=\"font-size:17px;margin:0 auto 22px;color:#EAF6FF;max-width:720px;line-height:1.7;\">Need PHP extensions installed or a server tuned? Our server management team can do it for you.<\/p>\n<p><a href=\"https:\/\/underhost.com\/server-management.php\" style=\"background:linear-gradient(90deg,#00D4FF,#0077FF);color:#ffffff;padding:13px 28px;border-radius:10px;text-decoration:none;font-weight:800;display:inline-block;margin:8px;\">See server management plans<\/a><a href=\"https:\/\/customerpanel.ca\/client\/\" style=\"background:transparent;color:#ffffff;padding:12px 28px;border-radius:10px;text-decoration:none;font-weight:800;display:inline-block;margin:8px;border:1px solid rgba(255,255,255,0.32);\">Contact @CustomerPanel<\/a><\/div>\n<div class=\"uh-faq-section\" id=\"faq\" style=\"margin:34px 0;scroll-margin-top:90px;\">\n<h2 style=\"color:#0D1F3C;font-size:28px;line-height:1.25;margin:0 0 18px;border-bottom:2px solid rgba(0,212,255,0.22);padding-bottom:10px;\">Frequently asked questions<\/h2>\n<div style=\"margin-top:18px;background:#F8FAFC;padding:18px 20px;border-radius:14px;border:1px solid rgba(23,110,165,0.14);\">\n<h3 style=\"color:#0D1F3C;margin:0 0 8px;font-size:19px;\">How do I check if cURL is enabled in PHP?<\/h3>\n<p style=\"margin:0;color:#1F2937;line-height:1.7;\">Run php -m | grep -i curl for the PHP version your site uses, or look for the curl section in a phpinfo() page.<\/p>\n<\/div>\n<div style=\"margin-top:18px;background:#F8FAFC;padding:18px 20px;border-radius:14px;border:1px solid rgba(23,110,165,0.14);\">\n<h3 style=\"color:#0D1F3C;margin:0 0 8px;font-size:19px;\">Do I need to restart anything after installing PHP cURL?<\/h3>\n<p style=\"margin:0;color:#1F2937;line-height:1.7;\">EasyApache 4 restarts the services it needs. If you install over SSH, restart PHP-FPM with \/scripts\/restartsrv_apache_php_fpm.<\/p>\n<\/div>\n<div style=\"margin-top:18px;background:#F8FAFC;padding:18px 20px;border-radius:14px;border:1px solid rgba(23,110,165,0.14);\">\n<h3 style=\"color:#0D1F3C;margin:0 0 8px;font-size:19px;\">Can I install cURL on shared hosting?<\/h3>\n<p style=\"margin:0;color:#1F2937;line-height:1.7;\">The cURL command and the PHP extension are already installed on our shared hosting servers. On CloudLinux, check Select PHP Version.<\/p>\n<\/div>\n<div style=\"margin-top:18px;background:#F8FAFC;padding:18px 20px;border-radius:14px;border:1px solid rgba(23,110,165,0.14);\">\n<h3 style=\"color:#0D1F3C;margin:0 0 8px;font-size:19px;\">How do I update cURL for a security fix?<\/h3>\n<p style=\"margin:0;color:#1F2937;line-height:1.7;\">Run your normal system updates, for example dnf update curl libcurl. cPanel PHP packages update through EasyApache 4.<\/p>\n<\/div>\n<div style=\"margin-top:18px;background:#F8FAFC;padding:18px 20px;border-radius:14px;border:1px solid rgba(23,110,165,0.14);\">\n<h3 style=\"color:#0D1F3C;margin:0 0 8px;font-size:19px;\">Why does WordPress say cURL is missing?<\/h3>\n<p style=\"margin:0;color:#1F2937;line-height:1.7;\">The site&#8217;s PHP version does not have the cURL extension. Install it for that version in EasyApache 4.<\/p>\n<\/div>\n<\/div>\n<p><!-- uh-related-start --><\/p>\n<div style=\"background:#F4F8FC;border:1px solid #DCE7F3;border-radius:14px;padding:18px 22px;margin:32px 0 8px;\">\n<h2 style=\"margin:0 0 12px;font-size:22px;\">Related guides<\/h2>\n<ul style=\"margin:0;padding-left:20px;\">\n<li style=\"margin:0 0 8px;\"><a href=\"https:\/\/underhost.com\/blog\/install-gmp-cpanel-centos-servers\/\">How to Install GMP on a cPanel Server (EasyApache 4)<\/a><\/li>\n<li style=\"margin:0 0 8px;\"><a href=\"https:\/\/underhost.com\/blog\/install-mongodb-cpanel-server\/\">Updated Guide: How to Install MongoDB on a cPanel Server<\/a><\/li>\n<li style=\"margin:0 0 8px;\"><a href=\"https:\/\/underhost.com\/blog\/how-to-install-clamav-cpanel\/\">How to Install and Use ClamAV Antivirus in WHM\/cPanel<\/a><\/li>\n<li style=\"margin:0 0 8px;\"><a href=\"https:\/\/underhost.com\/blog\/how-to-uninstall-cloudlinux-from-cpanel\/\">How to Install or Uninstall CloudLinux from cPanel (Updated Guide)<\/a><\/li>\n<li style=\"margin:0 0 8px;\"><a href=\"https:\/\/underhost.com\/blog\/how-to-install-cpanel-on-centos-without-errors\/\">How to Install cPanel Without Errors<\/a><\/li>\n<\/ul>\n<\/div>\n<p><!-- uh-related-end --><br \/>\n<script type=\"application\/ld+json\">{\"@context\": \"https:\/\/schema.org\", \"@type\": \"FAQPage\", \"mainEntity\": [{\"@type\": \"Question\", \"name\": \"How do I check if cURL is enabled in PHP?\", \"acceptedAnswer\": {\"@type\": \"Answer\", \"text\": \"Run php -m | grep -i curl for the PHP version your site uses, or look for the curl section in a phpinfo() page.\"}}, {\"@type\": \"Question\", \"name\": \"Do I need to restart anything after installing PHP cURL?\", \"acceptedAnswer\": {\"@type\": \"Answer\", \"text\": \"EasyApache 4 restarts the services it needs. If you install over SSH, restart PHP-FPM with \/scripts\/restartsrv_apache_php_fpm.\"}}, {\"@type\": \"Question\", \"name\": \"Can I install cURL on shared hosting?\", \"acceptedAnswer\": {\"@type\": \"Answer\", \"text\": \"The cURL command and the PHP extension are already installed on our shared hosting servers. On CloudLinux, check Select PHP Version.\"}}, {\"@type\": \"Question\", \"name\": \"How do I update cURL for a security fix?\", \"acceptedAnswer\": {\"@type\": \"Answer\", \"text\": \"Run your normal system updates, for example dnf update curl libcurl. cPanel PHP packages update through EasyApache 4.\"}}, {\"@type\": \"Question\", \"name\": \"Why does WordPress say cURL is missing?\", \"acceptedAnswer\": {\"@type\": \"Answer\", \"text\": \"The site's PHP version does not have the cURL extension. Install it for that version in EasyApache 4.\"}}]}<\/script><\/p>\n<h2 id=\"sources\" style=\"color:#0D1F3C;font-size:28px;line-height:1.25;margin:34px 0 14px;scroll-margin-top:90px;\"><i class=\"fas fa-book\" style=\"color:#00D4FF;\"><\/i> Sources<\/h2>\n<ul style=\"margin:0 0 24px;padding-left:22px;\">\n<li style=\"margin:0 0 8px;\"><a href=\"https:\/\/curl.se\/docs\/\">curl project documentation<\/a><\/li>\n<li style=\"margin:0 0 8px;\"><a href=\"https:\/\/docs.cpanel.net\/whm\/software\/easyapache-4\/\">cPanel documentation: EasyApache 4<\/a><\/li>\n<li style=\"margin:0 0 8px;\"><a href=\"https:\/\/www.php.net\/manual\/en\/book.curl.php\">PHP manual: cURL<\/a><\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>cURL comes in two parts. The curl command is part of the operating system: install or update it with dnf install curl and check it with curl &#8211;version. PHP&#8217;s cURL extension, which WordPress, WHMCS and most payment plugins need, is installed per PHP version in WHM > EasyApache 4 (package ea-phpXX-php-curl). Check it with php -m | grep -i curl.<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3,202,81],"tags":[110,108,187,137,185,124],"class_list":["post-3511","post","type-post","status-publish","format-standard","hentry","category-control-panels","category-cpanel-whm","category-hosting-guides","tag-tag-cloudlinux","tag-tag-cpanel","tag-easyapache","tag-tag-firewall","tag-php","tag-tag-ssl"],"_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":11,"href":"https:\/\/underhost.com\/blog\/wp-json\/wp\/v2\/posts\/3511\/revisions"}],"predecessor-version":[{"id":7020,"href":"https:\/\/underhost.com\/blog\/wp-json\/wp\/v2\/posts\/3511\/revisions\/7020"}],"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}]}}