Maybe there's a security system like selinux or AppArmor active that assigns the web server process a different security context than merely sudo'ing into the apache user?
Such a security context could very well prevent it from opening a network connection to another host.
So please consult your system administrator, or if you are your own administrator, read up on security systems.
In reply to Re: CGI script connecting via terminal but not via browser
by moritz
in thread CGI script connecting via terminal but not via browser
by nkrgupta
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |