curl-users
Re: Curl works in command-line but not on web...
Date: Fri, 13 Oct 2006 12:48:06 +0200
Now I tested the suggestion from ralph mitchell to change the url to
file:///etc/hosts
That works: check http://www.arcticpeoples.org/test.php
I also on commandline tested to make a new user test as a group member of
apache and used that user to check the following commandline:
>curl "http://www.google.dk" and that also works
Rune
On 10/13/06, Rune Fjellheim <rf_at_ghsdk.dk> wrote:
>
> 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