status_squid.php hang forever (error504)
-
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