Introduction

cURL is a PHP extension that is used for creating connections to different types of servers. In particular, we are using cURL to connect to our marketplace and install modules from there. Usually hosting teams compile PHP with cURL enabled and everything works fine. If this is not your case, this article is for you.

There are several possible cases when cURL is not configured properly with your PHP and we will explain how to deal with these situations.

Table of contents

cURL does not work on your web-server

Usually this case can be solved if you contact your hosting team and ask them to compile PHP with cURL. Some hosting providers allow to enable cURL via Control Panel, so you may want to check this option before contacting hosting team. If you have dedicated server and manage extensions yourself, learn the section below for more instructions.

cURL does not work on your local machine

In this case, the solution will be different depending on the type of your web-server and operation system.

Windows + XAMPP

  1. Find three files on your PC:

    php?start_inline=1 C:\Program Files\xampp\apache\bin\php.ini C:\Program Files\xampp\php\php.ini C:\Program Files\xampp\php\php4\php.ini

  2. Edit each of them and replace there the following piece of code:

    php?start_inline=1 ;extension=php_curl.dll

    with the next one:

    php?start_inline=1 extension=php_curl.dll

  3. Restart Apache.

Ubuntu/Debian + Apache

  1. Run the following command in your console

    sudo apt-get install php5-curl
    
  2. Restart Apache.

###