Sometimes when loading the page an error appears:

2016/10/11 22:58:24 [error] 14697#14697: *113320 FastCGI sent in stderr: "PHP message: PHP Warning: file_get_contents(http://www.site.eu/scripts/vacstatus/sbvacapi.php?steam=STEAM_0:1:22222): failed to open stream: HTTP request failed! in /var/www/hooligun/data/www/site.ru/includes/RGAPI.php on line 33" while reading response header from upstream, client: 111.25.177.4, server: bans.rgmix.eu, request: "POST /index.php HTTP/1.1", upstream: "fastcgi://unix:/var/www/php-fpm/user.sock:", host: "bans.rgmix.eu", referrer: "http://site.ru/index.php?p=banlist&searchText=STEAM_0:1:222"

Worth nginx + php-fpm; Debian 7; ISPmanager 5.

I understand that you need to tweak some php-fpm values?

  • And what kind of request do you send in the 33rd line of the /var/www/hooligun/data/www/site.ru/includes/RGAPI.php file? - MANK
  • The problem is not in the server. I just can't get to the remote server. The reasons may be many. Since the lack of user agent in the request headers. Try rewriting to cURL. - YuS

0