Problem "php_network_getaddresses: getaddrinfo failed"

Problems with the Linux version of XAMPP, questions, comments, and anything related.

Problem "php_network_getaddresses: getaddrinfo failed"

Postby cit » 25. January 2010 01:15

Hi.

I had to format my linux server 1 week ago. With a fresh debian 5, I installed xampp 1.7.3a. All is working fine BUT accessing to any website from PHP... I mean:

- I can ping any website.
- I can lynx/links any website
- /etc/resolv.con using google ones : nameserver 8.8.8.8
- NSLOOKUP from shell:
Code: Select all
nslookup yahoo.com
Server:      8.8.8.8
Address:   8.8.8.8#53
Non-authoritative answer:
Name:   yahoo.com
Address: 69.147.114.224
Name:   yahoo.com
Address: 209.131.36.159
Name:   yahoo.com
Address: 209.191.93.53

- Same NSLOOKUP from PHP Passthru
Code: Select all
Server: 8.8.8.8 Address: 8.8.8.8#53 Non-authoritative answer: Name: yahoo.com Address: 69.147.114.224 Name: yahoo.com Address: 209.131.36.159 Name: yahoo.com Address: 209.191.93.53

- php.ini has : allow_url_fopen = On and allow_url_include = Off
- Firewall is open.

Can you please help me?, Im sure it will be a stupid mistake that I can't see.
I use Xampp for 3/4 years now. I never had this problem before, Im sure its a problem of the server conf but I can't find it.

Thanks a lot.

UPDATE: I installed php5, mysql, apache2 with apt, I disable xampp and it works!... so is something with the Xampp conf.
cit
 
Posts: 1
Joined: 25. January 2010 00:57

Return to XAMPP for Linux

Who is online

Users browsing this forum: No registered users and 84 guests