Answer the question
In order to leave comments, you need to log in
Lost network on ubuntu 14.?
I rented a server on reg.ru (Ubuntu 14) and installed Symfony on it, everything worked fine for a long time.
$ajson=file_get_contents('https://oauth.vk.com/access_token?client_id=********&client_secret=**********&redirect_uri='.$uri.'&code='.$_GET['code']);
Warning: file_get_contents(https://oauth.vk.com/access_token?client_id=**********&client_secret=**************&redirect_uri=************&code=****************): failed to open stream: Connection timed out
Answer the question
In order to leave comments, you need to log in
Try uncommenting line 54 in the /etc/gai.conf file:precedence ::ffff:0:0/96 100
Unfortunately it didn't help.
Found something similar, but did not understand what to do
forum.ubuntu.ru/index.php?topic=131452.0
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question