I am running a script and I have this Fatal error: Call to undefined function curl_init() in /var/www/html/wp-content/plugins/accesspress-social-login-lite/twitter/twitteroauth.php on line 189
it appears curl is not enabled in my install, how may I go about it?
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.
run the following command
apt-get install php7.0-curl
Hi,
How can I install curl
in 7.1
version but doesn’t work and generate the error log:
Fatal error: Uncaught Error: Call to undefined function curl_init()
Please help me with the problem and working fine my code.
Hello,
If you’re using Nginx or Apache on Ubuntu 20 droplet:
Install PHP libraries for the server by running the following command:
sudo add-apt-repository ppa:ondrej/php
sudo apt update
sudo apt install curl
Check the version of curl installed by the command:
dpkg -l curl
You need to restart your webserver on which PHP is running: If you are using Apache server then use either of the following commands to restart the server:
sudo service apache2 restart
or
sudo /etc/init.d/apache2 restart
Similarly, if you are using Nginx server, then use either of the following commands:
sudo systemctl restart nginx
or
sudo /etc/init.d/nginx restart
Hope that this helps! Regards, Alex
Yes. Working perfectly too. Thanks
Depending on your distribution, install curl with one of the following:
On CentOS or other yum based package systems
On Debian or other apt-get based package systems
I haven’t used php7 as of yet. However, as newbie states above, you might try installing curl using apt-get install php7-curl or yum install php7-curl.
Click below to sign up and get $100 of credit to try our products over 60 days!
to get the list of all available php modules on my server, I typed
No list showed up: Then I typed
and the full list of modules was displayed. Then I ran the command below:
Unfortunately, the frontend of my site is now a blank white screen. Is there any way to resolve this. I server is ubuntu 14.04