How to enable cURL in PHP
Last Update : 13 Dec, 2022In 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.