Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to enable php curl extension

Tags:

php

curl

hello guys anybody tell me how to enable php extension in php script not from php.ini. if there is any function or method available or not

Thanks

like image 528
Jethi Mayank Avatar asked Sep 10 '25 04:09

Jethi Mayank


2 Answers

Follow below steps to enable CURL via the php.ini

1.Locate your PHP.ini file. (normally located at in the bin folder of your apache install e.g.)

2.Open the PHP.ini in notepad.

3.Search or find the following : ';extension=php_curl.dll'

4.Uncomment this by removing the semi-colon ';' before it.

5.Save and Close PHP.ini.

6.Restart Apache

like image 93
Siddhartha esunuri Avatar answered Sep 12 '25 20:09

Siddhartha esunuri


Try to do

sudo nano /etc/php/7.4/apache2/conf.d/php.ini

add this: extension=curl.so

Restart apache

So now the problem is solved

like image 22
Mário Sérgio Avatar answered Sep 12 '25 22:09

Mário Sérgio