Koken and "enable http loopback connexions"

netswitch

Verified User
Joined
Dec 15, 2003
Messages
225
Location
Belgium
Hello

We have a directadmin stack with cloudlinux and installatron running but I am confused with the "Koken" php script.

It keeps throwing the following error : The theme is not able to make contact with your Koken installation. Contact your host to see if they are blocking loopback connections.

I have googled around, it seems that it the scripts just needs to be able to call itself.
I have tryed various fixes read searching about the issue but none of them worked.

Do you have any idea on how to have koken running with directadmin ?
(I believe the problem might be in the per user httpd.conf not mentionning 127.0.0.1 as a possible ip)

Any help would be appreciated.

(the same issue seems to happen with BackupBuddy for wordpress)

(I read and tryed this out but no luck : http://serverfault.com/questions/420897/how-to-enable-http-loopback-connections)
 
By default apache should be listening on 0.0.0.0:80, so every IP and every interface.

How the application try to call itself? Does it run as a service on a specific port? If yes, what host are you trying to reach?

If it's running on a webserver i presume it has a virtualhost, so the IP would not be enough because of the VirtualHost, you may need to use the domain name in that case.

Regards
 
Hello

Thank you for your input, I can't find the information from Koken's website about what they really do with this loopback connexion.

Their site just states the following :
If when using Site you see an API error concerning themes, chances are your host is blocking loopback connections. To resolve, contact your web hosting provider and request they enable loopback connections for your domain. After that's been enabled try using Site again.

The solution proposed here and there is to add the virtualhost into the /etc/hosts file
127.0.0.1 www.example.com
but this didn't change anything.

I also did a test with csf disabled to make sure it isn't a firewall issue but no change iether.

I don't see the "http loopback connection" as a clearly defined concept anywhere...
 
Well i hope you didn't use www.example.com in your hostfile, unless your site is www.example.com

What function isn't working exactly? I tryed to install Koken on my system and everything went smoothly, so i'm courios to understand what function is actually not working.

Also, have you checked your error log in /var/log/httpd/domains/YOURDOMAIN.error.log?

Regards
 
Hello

Yes i changer example.com to the users's domaine ;)

Koken is installed using intallatron and when installed, the main page lands on an error :
API Error
The theme is not able to make contact with your Koken installation. Contact your host to see if they are blocking loopback connections.

If we use the koken auto installer, we get the following error before the installation :
Loopback connection failed. Your server must be configured to make requests to its own IP address over HTTP. Contact your host and ask them to enable "loopback connections" to resolve this issue."

WE have a cloulinux setup maybe this is part of the problem.
 
Manual install with the installe provided by koken :

Koken cannot download the necessary files from Amazon S3. Check with your host to see if they are limiting outgoing connections and if so, have them open a path to s3.amazonaws.com.

Loopback connection failed. Your server must be configured to make requests to its own IP address over HTTP. Contact your host and ask them to enable "loopback connections" to resolve this issue.

We have no firewall restriction to amazon S3. Maybe the installer is using the same way to get to S3 than for "loopback calls" ...
 
Very unlikely, it does look like your server is actually blocking outgoing connections to port 80 or 443.

As far as i can see from the script it use HTTPS to download from s3.

Maybe, you have some function restricted in your php.ini and that's blocking the platform.

Regards
 
Back
Top