By Gamal Farag
i have a setup on a droplet that have ubuntu 16 + nginx + php7 i installed Wordpress and everything was fine, until i installed plugin that connects to some API’s…
the plugin gives me error saying (wp_remote_get() failed. Webservices won’t work with your server. Contact your hosting provider. Error: Could not resolve host: xxx.xxx.xxxx )
so how could i enable wp_remote_get(), i searched a lot till i knew its something related to CURL, which i have installed before and fully functional, any ideas ??
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
In addition to curl itself have you installed the php curl module to allow php to make requests?
sudo apt-get update
sudo apt-get install php7.0-curl
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.