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

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

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

Replies are listed 'Best First'.
Re: Re: •Re: Re: Re: Re: •Re: LWP::UserAgent connection problem as CGI
by matija (Priest) on Mar 03, 2004 at 21:57 UTC
    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.