Answers.Body: <p>Command-line curl and php-curl are usually different packages. Assuming you're using unix you would do something like <code>yum install php-curl</code> or <code>apt-get install php-curl</code>. The exact command depends on what OS and version.</p>
  
  <p>Or it might be installed, e.g. as part of the php-common package for example, but for whatever reason it's not enabled, in which case check /etc/php.d/20-curl.ini (the exact file/location depends again on which OS/version - it might even be directly in php.ini), and enable the curl module in there.</p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2017-11-27T21:50:36.233Z
Answers.Text: Ok so yes it seems installed, just as Chris notes /etc/php5/cli is only for command line. There should be another folder /etc/php5/apache2 or similar, and it should also have a conf.d subfolder that will contain 20-curl.ini
Answers.UserDisplayName: Demerit
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2017-11-27T23:23:45.717Z
Answers.Text: Thank you. Once You helped me understand that there was a different curl for command line and php, etc. I was able to get it installed.
Answers.UserDisplayName: Christia
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2017-11-28T02:28:47.883Z
Answers.Text: With `apt-get install php5-curl`
Answers.UserDisplayName: Christia
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2017-11-27T19:32:04.397Z
Answers.LastActivityDate: 2017-11-27T19:32:04.397Z
Answers.UserDisplayName: Demerit
Body: <p>When I go to certain parts of CiviCRM, such as <strong>Administer > Extensions</strong>, or the dashboard, I get a message saying that Curl isn't installed.</p>
  
  <p>I'm running Debian with Apache.</p>
  
  <p>When I run <code>curl --version</code> I am greeted with:</p>
  
  <pre><code>curl 7.38.0 (x86_64-pc-linux-gnu) libcurl/7.38.0 OpenSSL/1.0.1t zlib/1.2.8 libidn/1.29 libssh2/1.4.3 librtmp/2.3
  Protocols: dict file ftp ftps gopher http https imap imaps ldap ldaps pop3 pop3s rtmp rtsp scp sftp smtp smtps telnet tftp 
  Features: AsynchDNS IDN IPv6 Largefile GSS-API SPNEGO NTLM NTLM_WB SSL libz TLS-SRP
  </code></pre>
  
  <p>I've run <code>service apache2 reload</code> to reload apache and it's services, even though curl was already installed before I set the site up as well as cleared the caches <code>drush cc civicrm</code>.</p>
  
  <p>I've looked at the phpinfo in command line and don't see any reference to curl.</p>
  
  <p>This only seems to be an issue on my test site, running CiviCRM 4.7.15 on Drupal 7.</p>
  
  <p>Edit:
  <code>/etc/php5/cli/conf.d/20-curl.ini</code> shows:</p>
  
  <pre><code>; configuration for php CURL module
  ; priority=20
  extension=curl.so
  </code></pre>
  
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2017-11-27T21:23:23.873Z
Comments.Text: `/etc/php5/cli/*` applies to PHP on the CLI; you want one of the other directories eg `/etc/php5/fpm` to enable support for your webserver. This should happen automatically but does require a reload of the associated service. When it's reloaded, you'll see curl enabled in the output of `phpinfo()` (for Drupal 7 sites, visit `admin/reports/status/php`).
Comments.UserDisplayName: Chris Burgess
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2017-11-27T21:24:47.333Z
Comments.Text: The means of integrating Apache (a webserver) with PHP varies. Apache has several different ways of executing PHP scripts; *some* of these require you to reload Apache to pick up PHP config changes, while others require you to restart a separate service like `php5-fpm`.
Comments.UserDisplayName: Chris Burgess
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2017-11-27T21:26:13.823Z
Comments.Text: `/usr/bin/curl` is a CLI wrapper for cURL. `php-curl` and similar packages provide the same library to PHP.
Comments.UserDisplayName: Chris Burgess
Tags: <drupal>
Title: It looks like Curl is installed but still getting Curl not installed error
ThreadText: # It looks like Curl is installed but still getting Curl not installed error
  
  (Asked by: username_0 on 2017-11-27)
  
  When I go to certain parts of CiviCRM, such as **Administer > Extensions**, or the dashboard, I get a message saying that Curl isn't installed.
  
  I'm running Debian with Apache.
  
  When I run `curl --version` I am greeted with:
  
  ```
  curl 7.38.0 (x86_64-pc-linux-gnu) libcurl/7.38.0 OpenSSL/1.0.1t zlib/1.2.8 libidn/1.29 libssh2/1.4.3 librtmp/2.3
  Protocols: dict file ftp ftps gopher http https imap imaps ldap ldaps pop3 pop3s rtmp rtsp scp sftp smtp smtps telnet tftp 
  Features: AsynchDNS IDN IPv6 Largefile GSS-API SPNEGO NTLM NTLM_WB SSL libz TLS-SRP
  
  ```
  
  I've run `service apache2 reload` to reload apache and it's services, even though curl was already installed before I set the site up as well as cleared the caches `drush cc civicrm`.
  
  I've looked at the phpinfo in command line and don't see any reference to curl.
  
  This only seems to be an issue on my test site, running CiviCRM 4.7.15 on Drupal 7.
  
  Edit:
  `/etc/php5/cli/conf.d/20-curl.ini` shows:
  
  ```
  ; configuration for php CURL module
  ; priority=20
  extension=curl.so
  
  ```
  
  **Tags:** drupal
  
  > **Comments:**
  > **username_1**: `/etc/php5/cli/*` applies to PHP on the CLI; you want one of the other directories eg `/etc/php5/fpm` to enable support for your webserver. This should happen automatically but does require a reload of the associated service. When it's reloaded, you'll see curl enabled in the output of `phpinfo()` (for Drupal 7 sites, visit `admin/reports/status/php`).  
  > **username_1**: The means of integrating Apache (a webserver) with PHP varies. Apache has several different ways of executing PHP scripts; *some* of these require you to reload Apache to pick up PHP config changes, while others require you to restart a separate service like `php5-fpm`.  
  > **username_1**: `/usr/bin/curl` is a CLI wrapper for cURL. `php-curl` and similar packages provide the same library to PHP.  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_2 on 2017-11-27. Score: 2 | Accepted answer
  
  Command-line curl and php-curl are usually different packages. Assuming you're using unix you would do something like `yum install php-curl` or `apt-get install php-curl`. The exact command depends on what OS and version.
  
  Or it might be installed, e.g. as part of the php-common package for example, but for whatever reason it's not enabled, in which case check /etc/php.d/20-curl.ini (the exact file/location depends again on which OS/version - it might even be directly in php.ini), and enable the curl module in there.
  
  > **Comments:**
  > **username_2**: Ok so yes it seems installed, just as username_1 notes /etc/php5/cli is only for command line. There should be another folder /etc/php5/apache2 or similar, and it should also have a conf.d subfolder that will contain 20-curl.ini  
  > **username_0**: Thank you. Once You helped me understand that there was a different curl for command line and php, etc. I was able to get it installed.  
  > **username_0**: With `apt-get install php5-curl`  
  
  ---
  
  