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.
|Replies are listed 'Best First'.|
Re^2: CGI script connecting via terminal but not via browser
by nkrgupta (Novice) on Sep 18, 2012 at 10:44 UTC
by nkrgupta (Novice) on Sep 18, 2012 at 13:27 UTC