Hi I have installed wordpress 4.6 site on ubuntu 14.04 running php 5.6.
The admin page is not visible and i can see below error in logs :-
Fatal error: Call to undefined function curl_version() in /var/www/html/files/modules/postie/postie.php on line 274
How do i fix this?
I have verified that curl and php5-curl are installed on our server :-
ubuntu@ip-172-39-6-147:/var/www/html$ sudo apt-get install curl
Reading package lists... Done
Building dependency tree
Reading state information... Done
curl is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 137 not upgraded.
ubuntu@ip-172-39-6-147:/var/www/html$ sudo apt-get install php5-curl
Reading package lists... Done
Building dependency tree
Reading state information... Done
php5-curl is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 137 not upgraded.
On current versions of Debian and Ubuntu, you can likely solve this by installing the Curl extension for PHP, and restarting the webserver. Assuming the webserver is Apache 2:
sudo apt-get install php-curl
sudo service apache2 restart
It's possible you'll need to install more:
sudo apt-get install curl libcurl3 libcurl3-dev;
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With