delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2001/03/29/19:11:13

Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT sources DOT redhat DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT sources DOT redhat DOT com>
List-Help: <mailto:cygwin-help AT sources DOT redhat DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT sources DOT redhat DOT com
Delivered-To: mailing list cygwin AT sources DOT redhat DOT com
Message-Id: <5.0.0.25.0.20010329082124.00c23c20@pop.bur.adelphia.net>
X-Sender: gwright AT pop DOT bur DOT adelphia DOT net
X-Mailer: QUALCOMM Windows Eudora Version 5.0
Date: Thu, 29 Mar 2001 08:28:33 -0500
To: Neil Lunn <neillunn AT gunz DOT com DOT au>
From: Grahame Wright <grahame AT baptiewright DOT com>
Subject: RE: Apache and MySQL
Cc: cygwin AT cygwin DOT com
In-Reply-To: <12F176DD950ED411B68E0050DA14ED103386AD@jupiter.gunzphoto.c
om.au>
Mime-Version: 1.0

Hi

I've tried running httpd as the regular Cygwin user (which is the user who 
is logged into windows), and also commenting out the user and group section 
of httpd.conf, but neither of those work.  MySQL is set to allow a 
connection from any user from the localhost, so that shouldn't be the 
problem.  I'm really stuck for ideas...

Thanks for your response

Grahame
=======

At 12:36 PM 3/29/2001 +1000, you wrote:
>Graham,
>
>What user is httpd running as? Is it different to that you are running the
>script from normally? Is this user allowed to connect to MySQL?
>
>I Didn't think that there was a way to restrict sockets permissions in
>cygwin! Probably wrong as usual.
>
>Neil
>
> > -----Original Message-----
> > From: Grahame Wright [mailto:cygwin AT baptiewright DOT com]
> > Sent: Thursday, March 29, 2001 3:59 AM
> > To: cygwin AT sources DOT redhat DOT com
> > Subject: Apache and MySQL
> >
> >
> > Hi
> >
> > I have managed to get Perl in Cygwin talking to my MySQL
> > server when I run
> > the script from the command line, but I cannot get the script
> > to work when
> > I run it from the browser connecting to Apache.  All I ever
> > get is the error :
> > DBI->connect(database=test;host=<my hostname>) failed: Can't
> > create IP
> > socket (1)
> >
> > I really don't know what could be causing this...does anyone
> > have any ideas
> > why it would work from the command line but not from apache?
> > Other scripts
> > run fine, it's just ones that connect to the MySQL server that fail.
> >
> > Thanks
> >
> > Grahame
> > =======
> >
> >
> > --
> > Want to unsubscribe from this list?
> > Check out: http://cygwin.com/ml/#unsubscribe-simple
> >
>
>__________________________________________________________________________
>Please Note :
>Only  the intended recipient is authorised to access or use this e-mail.  If
>you are not the intended recipient,
>please delete this e-mail and notify the sender immediately.   The contents
>of this e-mail are the writer's
>opinion and are not necessarily endorsed by the Gunz Companies unless
>expressly stated.
>
>We use virus scanning software but exclude all liability for viruses or
>similar in any attachment.
>
>
>
>--
>Want to unsubscribe from this list?
>Check out: http://cygwin.com/ml/#unsubscribe-simple


--
Want to unsubscribe from this list?
Check out: http://cygwin.com/ml/#unsubscribe-simple

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019