Re: Need help getting DBI to work under mod_perl

[prev] [thread] [next] [Date index for 2005/02/06]

From: Boysenberry Payne
Subject: Re: Need help getting DBI to work under mod_perl
Date: 22:16 on 06 Feb 2005
I think I figured out what's wrong, but I don't know how to correct it.
After reading a web-blog that said to rename any fink created 
conflicting
directories namely /sw/lib/mysql or /sw/lib/perl5 I tried it.  Nothing 
worked
afterwords.  So, I'm guessing I have conflicting modules being used.
Try as I might to reinstall mod_perl I can't get it right.  The perl 
MakeFile.PL
asks me to find the apache source directory, which on Mac OS X 10.3 is
/usr/include/httpd/ I believe.  When I try it the sub directories it 
looks for
the apache handlers are all wrong.  I tried ln my 
/Library/MySQL/lib/mysql/
to the /sw/lib/mysql/ directory to no avail.  I needs the following:

dyld: /usr/sbin/httpd can't open library: 
/sw/lib/mysql/libmysqlclient.14.dylib  (No such file or directory, 
errno = 2)
[Sun Feb  6 16:08:18 2005] [notice] child pid 779 exit signal Trace/BPT 
trap (5)

Anyone know what my next step is?


On Feb 6, 2005, at 11:46 AM, Jay Scherrer wrote:

> It's trying to connect to port 49. By default MySQL listens to 3606.
> Somewhere it was changed.
> Jay Scherrer
> On Sunday 06 February 2005 06:24 am, Tom Schindl wrote:
>> Give it a try and add the hostname you are connecting to to the
>> DSN.
>>
>> Tom
>>
>> Boysenberry Payne wrote:
>>> I'm able to run DBI->connect() fine when I run my .pl and .pm
>>> scripts as mod_cgi.
>>> Once I set up my httpd.conf and startup.pl files it no longer
>>> works. I get the following:
>>>
>>> Can't connect to MySQL server on 'localhost' (49)
>>>
>>> I can't find what (49) means anywhere...
>>
>> Tom
>
>

Need help getting DBI to work under mod_perl
Boysenberry Payne 06:09 on 06 Feb 2005

Re: Need help getting DBI to work under mod_perl
Boysenberry Payne 06:32 on 06 Feb 2005

Re: Need help getting DBI to work under mod_perl
Jay Scherrer 17:46 on 06 Feb 2005

Re: Need help getting DBI to work under mod_perl
Boysenberry Payne 22:16 on 06 Feb 2005

Re: Need help getting DBI to work under mod_perl
Boysenberry Payne 21:54 on 07 Feb 2005

Re: Need help getting DBI to work under mod_perl
Boysenberry Payne 18:46 on 06 Feb 2005

Re: Need help getting DBI to work under mod_perl
jonathan vanasco 14:43 on 06 Feb 2005

Generated at 21:37 on 09 Feb 2005 by mariachi v0.52