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.

Hmmm, phpinfo says OpenSSL support enabled

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

[code]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

[/code]

I have no idea how to fix this :\

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 …

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

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

Thank you!

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?

If it’s all working, then that’s great, I wouldn’t worry about that warning :slight_smile:

-Eric