Home » Php » php – cURL error 6: Could not resolve host: oauth2.googleapis.com is solved after a server restart but occur again after a few hours

php – cURL error 6: Could not resolve host: oauth2.googleapis.com is solved after a server restart but occur again after a few hours

Posted by: admin February 25, 2020 Leave a comment

Questions:

I have a Laravel app running on a Plesk server. Recently I started to get this error when I try to send an email. The problem is solved after a server restart but it happen again after a few hours. Is there a permanent solution?

How to&Answers: