Report this

What is the reason for this report?

How do I enable loopback connections on Ubuntu 14.04?

Posted on July 7, 2014

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


This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

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

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.