How to enable cURL in PHP / XAMPP / WAMP / Ubuntu

In many cases you need to enable cURL in PHP. Here we’ll provide the easy way to enable cURL in PHP. You only need to modify the php.ini file for enabling cURL in PHP / XAMPP server / WAMP server / Ubuntu Apache server.

How to enable cURL in PHP / XAMPP / WAMP / Ubuntu

In many cases you need to enable cURL in PHP. Here we’ll provide the easy way to enable cURL in PHP. You only need to modify the php.ini file for enabling cURL in PHP / XAMPP server / WAMP server / Ubuntu Apache server.

Enable cURL in XAMPP

 Open the xampp\apache\bin\php.ini file.
 Uncomment the following line in the php.ini file by removing the semicolon (;).

;extension=php_curl.dll

 Restart XAMPP.

Enable cURL in WAMP

 Open the WAMP\bin\php\(php version)\php.ini file.
 Uncomment the following line in the php.ini file by removing the semicolon (;).

;extension=php_curl.dll

 Open the WAMP\bin\Apache\(apache version)\bin\php.ini file.
 Uncomment the following line in the php.ini file by removing the semicolon (;).

;extension=php_curl.dll

 Restart WAMP.

Enable cURL in Ubuntu

 Open the etc/(php version)/(apache version)/php.ini file.
 Uncomment the following line in the php.ini file by removing the semicolon (;).

;extension=php_curl.dll

 Restart the Apache server.