SSL support - Facebook connect doesnt work

9 posts / 0 new
Last post
#1 Wed, 12/05/2012 - 05:45
Owdy

SSL support - Facebook connect doesnt work

In my new server i get these errors in Apache log:

Wed Dec 05 12:27:39 2012] [error] PHP Warning:  fsockopen(): php_network_getaddresses: getaddrinfo failed: Temporary failure in name resolution in /home/hoitajat/public_html/foorumi/ips_kernel/facebook/facebookoauth.php on line 308, referer: http://hoitajat.net/foorumi/
[Wed Dec 05 12:27:39 2012] [error] PHP Warning:  fsockopen(): unable to connect to ssl://graph.facebook.com:443 (php_network_getaddresses: getaddrinfo failed: Temporary failure in name resolution) in /home/hoitajat/public_html/foorumi/ips_kernel/facebook/facebookoauth.php on line 308, referer: http://*****.net/foorumi/
[W

Google says i should require SSL (openssl) support in PHP. How do i do that? Facbook login doesnt work in my new server now.

Wed, 12/05/2012 - 05:53
Owdy

Hmmm, phpinfo says OpenSSL support enabled

Wed, 12/05/2012 - 09:05
andreychek

Howdy,

It sounds like your having a DNS resolution problem.

Are the DNS servers listed in your /etc/resolv.conf file correct?

Normally that just contains "nameserver 127.0.0.1".

If that's not what's listed in there, you'd want to verify that the listed nameservers are accessible.

-Eric

Wed, 12/05/2012 - 09:11
Owdy
root@host1:/home/Osku# cat /etc/resolv.conf
# Dynamic resolv.conf(5) file for glibc resolver(3) generated by resolvconf(8)
#     DO NOT EDIT THIS FILE BY HAND -- YOUR CHANGES WILL BE OVERWRITTEN
nameserver 127.0.0.1
search localdomain
 
 
root@host1:/home/Osku# host graph.facebook.com
;; connection timed out; no servers could be reached
 
 
 
cat /etc/network/interfaces
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).
 
# The loopback network interface
auto lo
iface lo inet loopback
 
# The primary network interface
auto eth0
iface eth0 inet static
        address 95.211.217.***
        netmask 255.255.255.***
        network 95.211.217.***
        broadcast 95.211.217.***
        gateway 95.211.217.***
        dns-nameservers 127.0.0.1 85.17.150.123 85.17.96.69 85.17.150.123 62.212.64.122
        dns-domain localdomain
        # dns-* options are implemented by the resolvconf package, if installed

I have no idea how to fix this :\

Wed, 12/05/2012 - 09:23
Owdy

Seems /etc/resolv.conf is symbolic link to ../run/resolvconf/resolv.conf

In my old server same file contained this:

nameserver 127.0.0.1 nameserver 85.17.150.123 nameserver 85.17.96.69 nameserver 85.17.150.123 domain localdomain

Hmmm, moving srvers isnt easy ...

Wed, 12/05/2012 - 10:18
andreychek

You may want to verify that BIND is running on your server.

If for some reason it stopped, that would cause the problem you're seeing.

-Eric

Wed, 12/05/2012 - 10:26
Owdy

BIND start helped! Im allmost sure i havent used it in my old debian server :)

Thank you!

Thu, 12/06/2012 - 03:13
Owdy

Hmm, now it telss this:

# /etc/init.d/networking restart
 * Running /etc/init.d/networking restart is deprecated because it may not enable again some interfaces
 * Reconfiguring network interfaces...                                                                           
ssh stop/waiting
ssh start/running, process 59249

Everything seems working, should i worry?

Thu, 12/06/2012 - 10:11
andreychek

If it's all working, then that's great, I wouldn't worry about that warning :-)

-Eric

Topic locked