How To Enable PHP cURL Extension?
Are you looking for the multiple way to enable PHP cURL extension into your server? In this article, we’ll share some of way to enable PHP cURL extension.
To enable the PHP-cURL extension onWindows systems
- Open php.ini file located under php installation folder.
- Search for extension=php_curl.dll.
- Uncomment it by removing the semi-colon(;) in front of it.
- Restart the Apache Server.
To enable the PHP-cURL extension on Linux Ubuntu/Debian, you must first install it with the command:
sudo apt-get install php-curl
Or so for the old PHP5 version:
sudo apt-get install php5-curl
You can activate/deactivate the PHP module like this:
sudo phpenmod curl sudo phpdismod curl
Restart Apache2 to apply the changes:
sudo /etc/init.d/apache2 restart
Check if curl is activated:
php -i | grep -i curl
How to enable CURL via the php.ini file by cPanel
Step 1: Login into cPanel.
Step 2: Navigate to the Files section and click the file manager icon.
Step 3: Navigate to the public_html directory and find the php.ini file.
Step 4: Select the php.ini file and right-click to edit button.
Step 5: You will appear a popup window and click on the Edit button and proceed.
Step 6: A new tab will appear in the browser and add the below code in your php.ini file
extension=php_curl.dll
Save the file, now you have successfully enabled the CURL extension.
I hope that this article will help you to How to enable PHP cURL extension.
If you have any query then please let me know in the comments section. If you think this post saved your time, please subscribe to our newsletter for regular updates.
Thank you in advance!