all of this is WRONG!!!!!!!!!!!! The correct answer is as follows:
echo “net.ipv6.conf.default.disable_ipv6=1” >> /etc/sysctl.conf
echo “net.ipv6.conf.all.disable_ipv6 = 1” >> /etc/sysctl.conf
then run the following command
sysctl -p
no reboot is required
note the space before and after the =
if you want to test the config on the fly without editing the sysctl.conf file execute the following commands

@CDSU
Only one that works. Thank u so much. After 48 hours of mind numbing frustration, i finally have my new dedicated server working! 🙂 If u are a chick (i realize the chances are quite low, i would soooo take u out to a dinner dinner 🙂

My tired morning eyes made the mistake on a test system and I’ve lost sysctl.conf.. Yes, it’s my own fault entirely (grumble grumble don’t paste commands from the internet…), but potentially countless others have done the same thing, without a resolution!