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