SELinux dropping PHP Connection

Marti, Robert RJM002 at shsu.edu
Mon Apr 12 12:58:39 UTC 2010


Anything showing up in /var/log/messages?

Sent from my iPhone

On Apr 12, 2010, at 7:48, "Johan Dindaine" <jojolapin972 at gmail.com>  
wrote:

> 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?
>
> -- 
> redhat-list mailing list
> unsubscribe mailto:redhat-list-request at redhat.com?subject=unsubscribe
> https://www.redhat.com/mailman/listinfo/redhat-list




More information about the redhat-list mailing list