hostname nor servname provided, or not known

This is a discussion on hostname nor servname provided, or not known within the PHP General forums, part of the PHP Programming Forums category; Hi, I have the weirdest problem on using the latest apache and php versions. Whenever i call a socket function ...


Go Back   Usenet Forums > PHP Programming Forums > PHP General

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 10-06-2007
Floris
 
Posts: n/a
Default hostname nor servname provided, or not known

Hi,

I have the weirdest problem on using the latest apache and php versions.
Whenever i call a socket function such as fsockopen() i see error
messages. Also i can't connect to the mailbox through squirrelmail. The
messages are:

warning: fsockopen() [function.fsockopen]: php_network_getaddresses:
getaddrinfo failed: hostname nor servname provided, or not known in ...
on line 2
fsockopen() [function.fsockopen]: unable to connect to
http://www.cnn.com:80 in ... on line 2

These messages to me suggests that something goes wrong while resolving
either the hostname (which is atlanta.globalwebhosting.nl) or a remote
host. However, i can resolve the hostname and any other host just fine
on the commandline.

I checked the contents of /etc/hosts, /etc/resolv.conf, httpd.conf and
php.ini. Contents seems fine.
allow_url_fopen is ON in php.ini
I recompiled apache, php and zend.
I checked whether DNS is correctly configured via http://www.sidn.nl
I disabled the firewall.

Problem remains. Any suggestions?

Thanks,
Floris
Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 01:58 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0