cURL / Mailing Lists / curl-users / Single Mail

curl-users

Re: Curl works in command-line but not on web...

From: Rune Fjellheim <rf_at_ghsdk.dk>
Date: Fri, 13 Oct 2006 12:40:01 +0200

Forgot to say that that was as a result of trying to curl www.google.dk in
the curl test.php described previously.

Rune

On 10/13/06, Rune Fjellheim <rf_at_ghsdk.dk> wrote:
>
> Dear all,
>
> I now checked the system log and this is what it says:
>
> Oct 13 12:27:05 arcticpeoples kernel: audit(1160735225.456:27): avc:
> denied { name_connect } for pid=2279 comm="httpd" dest=80
> scontext=root:system_r:httpd_t:s0 tcontext=system_u:object_r:http_port_t:s0
> tclass=tcp_socket
>
> Does this explain anything to you Linux wiz-kids? It tells me only that
> something went wrong.
>
> On 10/6/06, clemens fischer < ino-news_at_spotteswoode.dnsalias.org> wrote:
> >
> > On Fri, 6 Oct 2006 12:51:57 +0200 (CEST) Daniel Stenberg wrote:
> >
> > > On Fri, 6 Oct 2006, Rune Fjellheim wrote:
> > >
> > >> CURLERR7 Failed to connect to 127.0.0.1: Permission denied
> > >
> > > Clearly something in your system is forbidding libcurl to connect
> > > when running in the apache process/owner. Without knowing a lot more
> > > we can't tell what it is or why. This is not "normal" unix/linux
> > > behaviour.
> > >
> > > This is probably more of a Fedora Core 5 with Apache 2.2.2 problem
> > > than it is a curl problem. I would suspect it is some security module
> > > (selinux?) activated that does this.
> >
> > it might help to execute the process under "strace -f" to see if it
> > cannot find some libs or accesses wrong ones etc.
> >
> >
> > regards, clemens
> >
> >
>
Received on 2006-10-13