WHM allows you to configure the firewall, eh? Allow outgoing access through port 80 / http there.
And why the getaddrinfo fails - no idea, whats the url of the image in question? if so, can you get to that image through the shell when trying to download it for example with wget from the server?
And why the getaddrinfo fails - no idea, whats the url of the image in question? if so, can you get to that image through the shell when trying to download it for example with wget from the server?