HiUFHH01 -- thank you so much for the snarky reply:
If you spent a little more time reading the thread and a little less time trying to make me feel like an idiot, perhaps we might be able to make some progress on this issue. I'll quote some parts of earlier posts, since you can't seem to...
I agree with what you are saying, the only thing is, this worked from the command line but not from apache on the same server running the same script. Do you have any idea why that would be?
# cat /etc/resolv.conf
# Dynamic resolv.conf(5) file for glibc resolver(3) generated by resolvconf(8)
# DO NOT EDIT THIS FILE BY HAND -- YOUR CHANGES WILL BE OVERWRITTEN
nameserver 168.63.129.16
search kh3mcvbkkotedgeomcrzw5clac.ax.internal.cloudapp.net
Per the article you linked to: do you know how I would test "starting my apache before my network is set up" or change it so apache starts after my network is set up?
SElinux is not enabled:
$ sestatus
The program 'sestatus' is currently not installed. You can install it by typing:
sudo apt-get install policycoreutils
Plesk Version
# cat /usr/local/psa/version
12.5.30 Ubuntu 14.04 1205160608.09
I've seen this issue now on multiple servers and in two different functions, but the symptoms are the same. The underlying issue seems to be that PHP can't do a DNS lookup. We ran into it with mysql connections and...