apache user is unable to resolve IP addresses in F10

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



The following PHP code is not working in F10:

<?php
$fp = fsockopen ("redhat.com", 80, $errno, $errstr, 30);
if (!$fp) echo "$errstr ($errno)<br>\n";
else { echo "worked"; fclose($fp); }
?>

Result: php_network_getaddresses: getaddrinfo failed: Name or service
not known (0)

Adding redhat.com's IP to my /etc/hosts gets it to work, but obviously
this is not the correct solution to the problem.

Can anyone else here reproduce this on their F10 web servers?  Or am I
all alone?

NOTE:  I get same results in both Permissive and Enforcing selinux modes.

This was working in F9, it just started happening when I upgraded.

-- 
fedora-devel-list mailing list
fedora-devel-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/fedora-devel-list

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Fedora Announce]     [Fedora Kernel]     [Fedora Testing]     [Fedora Formulas]     [Fedora PHP Devel]     [Kernel Development]     [Fedora Legacy]     [Fedora Maintainers]     [Fedora Desktop]     [PAM]     [Red Hat Development]     [Gimp]     [Yosemite News]
  Powered by Linux