Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Register
    • Login

    status_squid.php hang forever (error504)

    webGUI
    1
    1
    286
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • M
      maba
      last edited by maba

      Hello !
      I have the webpage "status" of the gui of squid hanging for ever and finish with an error 504.
      When i see his php code :

      if (is_service_running('squid')) {
      init_config_arr(array('installedpackages', 'squidcache','config'));
      $proxy_ifaces = explode(",", $config['installedpackages']['squid']['config'][0]['active_interface']);
      foreach ($proxy_ifaces as $iface) {
      if (get_interface_ip($iface)) {
      $ip = get_interface_ip($iface);
      $lip = '127.0.0.1';
      } else {
      $ip = get_interface_ipv6($iface);
      $lip = '::1';
      }
      exec("/usr/local/sbin/squidclient -l " . escapeshellarg($lip) .
      " -h " . escapeshellarg($ip) . " mgr:info", $result);

      i understand it is trying to run this command : squidclient -l 127.0.01 -h IPv4interface mgr:info

      When i try this command in shell it just hang forever , if i add the port (-p XXXX) the command return result.

      is it normal to not pass port value or i miss something ?

      edit: if i add the port in the php script it works but it break if i change squid port .... does someone know the proper variable for squid port ? (. escapeshellarg($squiport??)

      thanks

      1 Reply Last reply Reply Quote 0
      • First post
        Last post
      Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.