Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Re: Re: Re: Re: •Re: LWP::UserAgent connection problem as CGI

by merlyn (Sage)
on Mar 03, 2004 at 20:13 UTC ( #333672=note: print w/ replies, xml ) Need Help??


in reply to Re: Re: Re: Re: LWP::UserAgent connection problem as CGI
in thread LWP::UserAgent connection problem as CGI

And you did that from the command line on the CGI host, correct? If that's the case, I don't know why LWP is having trouble looking up the host name.

-- Randal L. Schwartz, Perl hacker
Be sure to read my standard disclaimer if this is a reply.


Comment on Re: Re: Re: Re: •Re: LWP::UserAgent connection problem as CGI
Re: Re: Re: Re: Re: Re: LWP::UserAgent connection problem as CGI
by bassplayer (Monsignor) on Mar 03, 2004 at 20:21 UTC
    Yes, it was definitely on the CGI host. DNS was the first thing I thought of, especially since there were some DNS issues a few weeks back. But this script works from command line, whether as root or as apache user, and fails as a CGI. Frustrating.

    bassplayer bangs his head on his desk (again)...

    bassplayer

      Is your apache perhaps running in a chroot environment?

      I've had problems like this when my apache was in a chroot environment which didn't include the /etc/resolv.conf or other requirements for resolving DNS.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://333672]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others musing on the Monastery: (7)
As of 2015-07-07 10:08 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (88 votes), past polls