in reply to Re^2: Can't call method... works locally, but not on webserver.
in thread Can't call method... works locally, but not on webserver.

I ran into a similar problem (CGI script unable to access the network) and discovered that it stemmed in my case from SELinux, the NSA's secured Linux kernel. It is built into Fedora from core 3 onwards, as well as some other distros, and is installed on many individual servers besides. If you determine that you are running selinux (try the command /usr/sbin/selinuxenabled (default path). If it returns 0, you have it), it has a variable called httpd_can_network_connect. Set this to 1 and selinux will stop blocking CGI network connections.

Replies are listed 'Best First'.
Re^4: Can't call method... works locally, but not on webserver.
by jlk (Hermit) on Nov 08, 2006 at 17:54 UTC
    --> discovered that it stemmed in my case from SELinux

    And thus, this is the reason that I choose to completely avoid SELinux. Know though, that during the installation of Linux ( Fedora) you have the option of enabling or not enabling SELinux. Personally, I choose not to because of the extremely restrictive nature of SELinux. Granted, if you are trying to comletely secure a machine then it might be for you, but not the average user.

    #jlk

    Every time Linux boots, a penguin gets its wings.

      I agree with you wholeheartedly; the system in question belonged to my company, not myself personally. The only good thing for me about SELinux is how it entertainingly makes tinfoil hat-wearing paranoids torn between avoiding a product from the king of conspiratorial evils, the NSA; and securing their computer against invasion by evil forces.