2

I searched for similar issues at SO, but none worked for me.

I deployed my laravel 4 app on appfog and try to get content from an external website.

I've tried several things:

  • file_get_contents -> Connection timeout.
  • curl -> Connection timeout
  • Tried to set a custom timeout.not working

My PHP-Settings:

allow_url_fopen On
cURL support enabled

Is there something about appfog that you cannot access an external website?

Dave
  • 21,524
  • 28
  • 141
  • 221
Daniel Uzelac
  • 89
  • 1
  • 9
  • If you are able to connect to the target service from your local computer or a different server, you might be better off contacting them directly. – Daniel W. Jan 10 '14 at 14:02
  • Yes it is working normal on my local system. I sent this issue to the appfog support and waiting for an answer. I thougth there is maybe someone else who had the same problem – Daniel Uzelac Jan 10 '14 at 14:16
  • If you get an answer and post it here, that will be helpful for others then – Daniel W. Jan 10 '14 at 14:42
  • 1
    I just saw that people are complaining about the curl issue on the appfog-community-support for 2 days. It looks like that the problem only appears on EU-AWS serves. I'll keep this thread unsolved till I have clear solution on that problem – Daniel Uzelac Jan 10 '14 at 16:04

1 Answers1

0

I got response from the Appfog Team.

They say that it is a problem with their EU-AWS servers and they're trying to fix this. It isn't fixed yet.

So normaly file_get_contents and curl should work.

Meantime solution for this problem:
Move your app to US-AWS servers. Everything works fine there.

Daniel Uzelac
  • 89
  • 1
  • 9