When you try to get the contents of the page via cURL or file_get_contents, the server hangs tight, and after 20-30 seconds it gives an empty page or an error occurs in 504. I tried different pages - the same result. At the same time, on a LAN and on another VDS with a similar PHP configuration, everything works quietly. What can be wrong?

ps At the same time, SSH and FTP connect extremely slowly (15-20 seconds), despite the fact that the site itself, which is hosted on this server, loads immediately

  • At the same time, SSH and FTP also connects extremely slowly (15-20 seconds), despite the fact that the site itself, which is hosted on this server, loads immediately. - mrcatmann
  • You will be helped faster if you post server logs - Naumov
  • The problem is that in AccessLog there is only this: [06 / Oct / 2016: 12: 22: 49 +0000] "GET /test.php HTTP / 1.0" 200. In the ErrorLog about this is empty. - mrcatmann
  • if you have php in it should be error_log, try to test the network status on the server, let's say run ping or curl or wget - Naumov
  • Guess: The provider is made protected by bots. If you add the correct cURL headers that will work. Such questions should be written in support of the provider! - E_p

0