How do I enable loopback connections on Ubuntu 14.04?

July 7, 2014 3.8k views

I'm attempting to install Koken on Ubuntu 14.04 LAMP, and am getting the error: "The theme is not able to make contact with your Koken installation. Contact your host to see if they are blocking loopback connections."

Apparently this is a common problem for Koken installs on shared hosts, but I haven't found any specific instructions on enabling this for my own server. The closest I've gotten is opening up /etc/hosts and noticing an entry that refers to "ip6-loopback".

Thank you for any help!

Here is the contents of my etc/hosts:

127.0.0.1       localhost
127.0.1.1       elcontraption.com elcontraption

# The following lines are desirable for IPv6 capable hosts
::1     ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
1 Answer

OK figured it out, I just needed to add an entry for the domain I was using for Koken under 127.0.0.1:

127.0.0.1       localhost
127.0.1.1        example.com example
127.0.1.1        koken.example.com

# The following lines are desirable for IPv6 capable hosts
::1     ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
  • I've been setting up a ubuntu VPS for Koken. I had the install working perfectly except that I couldn't get images to process whatever processor I chose. Adding the URL to /etc/hosts as described above fixed that instantly.

Have another answer? Share your knowledge.