Setting up cURL
page last edited on 20 October 2017
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
- Table of contents
- cURL does not work on your web-server
- cURL does not work on your local machine
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
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
Edit each of them and replace there the following piece of code:
with the next one:
Ubuntu/Debian + Apache
Run the following command in your console
sudo apt-get install php5-curl