In many cases, you need to enable cURL in PHP. Here we’ll provide an 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.
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.
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.
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.