After a few hours CURL doesn't seem to be able to resolve URL's to HTTPS hosts.
Currently using PHP-FPM 5.5.38 and 7.0.17 on different websites, both with the same issue.
When CURL can't resolve the hostname I can do via the terminal over SSH perfectly fine however.
If i reboot the server everything seems fine for the next 12+ hours.
What makes me think it might not be just a Plesk issue is various replies here: http://stackoverflow.com/questions/1341644/curl-and-https-cannot-resolve-host
Some are from people who have started to notice the same thing today / yesterday, however have previously had no issues / config changes for months, like myself.
I've added the following to my PHP configuration: curl_setopt($_h, CURLOPT_IPRESOLVE, CURL_IPRESOLVE_V4 );
This has apparently resolved the issue for some, however too early to confirm if this has worked for myself. The server doesn't have any, IPV6 address, just multiple IPV4 addresses.
I thought it might be worth posting about to see if anyone else has had the same issue in the last day or two
OS: Ubuntu 16.04.2 LTS
Plesk: Onyx 17.0.17 Update #20
Currently using PHP-FPM 5.5.38 and 7.0.17 on different websites, both with the same issue.
- The site on PHP 5.5.38 is Magento based and can't resolve live.sagepay.com to process payments
- The site on PHP 7.0.17 is Wordpress based and it can't resolve to update plugins.
When CURL can't resolve the hostname I can do via the terminal over SSH perfectly fine however.
If i reboot the server everything seems fine for the next 12+ hours.
What makes me think it might not be just a Plesk issue is various replies here: http://stackoverflow.com/questions/1341644/curl-and-https-cannot-resolve-host
Some are from people who have started to notice the same thing today / yesterday, however have previously had no issues / config changes for months, like myself.
I've added the following to my PHP configuration: curl_setopt($_h, CURLOPT_IPRESOLVE, CURL_IPRESOLVE_V4 );
This has apparently resolved the issue for some, however too early to confirm if this has worked for myself. The server doesn't have any, IPV6 address, just multiple IPV4 addresses.
I thought it might be worth posting about to see if anyone else has had the same issue in the last day or two
OS: Ubuntu 16.04.2 LTS
Plesk: Onyx 17.0.17 Update #20