free stats

How to enable cURL in PHP

Last Update : 13 Dec, 2022 How to Guide in PHP

In this article, you will learn to enable cURL in PHP, especially in XAMPP, WAMP, and Ubuntu servers.

cURL stands for Client URL and It is a tool used in PHP for getting data from URLs provided for client usage.

When you are working with PHP applications in many cases you need to enable cURL. This post provides an easy way to enable cURL in PHP.

Here, you can modify the php.ini file for enabling cURL in PHP of XAMPP, WAMP, and Ubuntu Apache server.

 

How to enable cURL in the WAMP server

 

  • Find and Open the WAMP\bin\php\(php version)\php.ini file in the WAMP server.
  • Remove the semicolon (;) of the following line in php.ini file.
;extension=php_curl.dll
  • Restart the WAMP server.

 

How to enable cURL in the XAMPP server

 

  • Find and Open the xampp\apache\bin\php.ini file in the XAMPP server.
  • Remove the semicolon (;) of the following line in php.ini file.
;extension=php_curl.dll
  • Restart the XAMPP server.

 

How to enable cURL in Ubuntu

 

  • Find and Open the etc/(php version)/(apache version)/php.ini file in the Apache server.
  • Remove the semicolon (;) of the following line in php.ini file.
;extension=php_curl.dll
  • Restart the Apache server.

 

You found this tutorial / article valuable? Need to show your appreciation? Here are some options:

01. Spread the word! Use following buttons to share this tutorial / article link on your favorite social media sites.

02. Follow us on Twitter, GitHub ,and Facebook.