Domain Name Yahoo

Easy Help Troubleshoot Your Linux Box



  

PHP code Vs Firewall

Php code : file_get_contents , fsockopen couldnt compiled

This error log was generated from httpd log.

[error] [client 192.168.1.1] PHP Warning:  file_get_contents() [<a href=’function.file-get-contents’>function.file-get-contents</a>]: php_network_getaddresses: getaddrinfo failed: Temporary failure in name resolution in /var/www/html/search/test.php on line 2

[error] [client 192.168.1.1] PHP Warning:  file_get_contents(http://www.google.com) [<a href=’function.file-get-contents’>function.file-get-contents</a>]: failed to open stream: Connection refused in /var/www/html/search/park.php on line 2

The Solution is to turn off your firewall

# service firewall stop

September 25th, 2008 Posted by admin | Domain, General, Uncategorized, firewall | no comments

pinged before offer ( dhcpd )

Q : What does this error log message mean ?
dhcpd Error Abandoning IP address 192.168.10.16: pinged before offer

A: Before the DHCP server assigns an IP address to a client, it pings the address to make sure nobody is using it already. In this case, the test failed, so the server “abandons” the address and picks another one to assign. Another computer may have already had that IP address statically assigned, or maybe it was dynamically assigned but the server and that client miscommunicated.

In either case, it is a harmless message and no action is necessary.

September 25th, 2008 Posted by admin | CentOS, General, dhcpd | no comments