in reply to Geo::Coder::Google running as cgi

500 Can't connect to maps.google.com:80 (Bad hostname 'maps.google.com')
That means DNS (your computer) can't resolve maps.google.com into an IP address. Could be because of firewall, permissions or just because :)

Replies are listed 'Best First'.
Re^2: Geo::Coder::Google running as cgi
by Anonymous Monk on Sep 14, 2008 at 10:25 UTC
    thats what I thought initially, but being that it runs fine from the command line, wouldn't that indicate that it can be resolved. The only thing I can think of is some sort of apache.conf issue
      The webserver (apache/httpd) runs as some user (ex apache) which is not the same user (you) in the shell, so permissions can be different, %ENV ....
        That makes sense... but what is the differences? The paths?

        CGI
        PATH = /sbin:/usr/sbin:/bin:/usr/bin

        shell
        PATH = /usr/kerberos/sbin:/usr/kerberos/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin
        I assume it can read the perl modules ok, but it can't either resolve the DNS (where is that done??), or access out is blocked for the apache user (how do I check that?).
        Thanks in advance.