SELinux dropping PHP Connection

Johan Dindaine jojolapin972 at gmail.com
Mon Apr 12 12:21:06 UTC 2010


Good morning the list,

I am managing a Red Hat server which has got a standar LAMP
environment (PHP 5.3 + MYSQL 5.1 + Apache 2.2.3).
When I am trying to parse files that are external to my network or out
of my virtual host I got this weird error message:
Warning: file_get_contents(http://localhost:15000/solr...)
[function.file-get-contents]: failed to open stream: Permission denied
I suspect that SELinux is dropping the connection as I haven't set up
any limitation at PHP level (safe_mode is Off and allow_url_fopen is
ON).
My question is how can I modify this setting to allow my script to
call this external URL?




More information about the redhat-list mailing list