Re: At the end of my rope with apache and mod_perl

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

From: Boysenberry Payne
Subject: Re: At the end of my rope with apache and mod_perl
Date: 11:21 on 10 Feb 2005
First of all I want to say thanks for your time and explanations...

I'm going to try and re-explain my scenario, only because this thread
has kind of bounced between two, kind of confusing them.  And, to make
it more complicated for me, it's on 4 lists.  So here I go.

About a week ago I decided to move from spending most of my time
developing in php4 to beginning my transition to perl.  I'm developing
a flash based content management system that's easier to use for 
novices.
Mostly I've stuck with a combo of Flash on the client (using 
actionscript 2.0,)
and PHP with MySQL on the back-end.  It's been working beautiful, but
it only goes so far.  We're going to need to automate account creation,
maintenance, etc...  Right now we've been using propriety systems like
cpanel and modernbill.  PHP is good, but doesn't do a lot of what we are
going to need.  So enters Perl.  It's that old saying, "I knew I'd be 
here someday;
I just didn't know yesterday, it would be today."

So I started writing and updater for our client sites.  Then, I learned 
about the
benefits of mod_perl over mod_cgi and I was off.  First thing I ran 
into was
a problematic DBD::mysql install.  When I couldn't get it to install I 
tried a lot
of different approaches.  That is when I think mod_perl got the 
databases
confused.  I did eventually find the solution to get it to install here:
http://www.truerwords.net/3556
Alas, it was too late, I had a confused mod_perl.  It was giving me the 
error
for a lib file that was for a database that was put in in one of my 
attempts
to get the DBD::mysql installed.  It wasn't the database I really use.
To make things even more complicated it was a fink 'unstable' package,
I wouldn't even really want to use.
It was at this point that I found out a couple of other things.
First, I can only use $r->print( "something" ) to get output to the 
browser
when I use Apache::Registry a regular print doesn't do it, it does under
mod_cgi though.  The second thing I figured out was when I ran 
DBD::mysql
under the perl command locally or as mod_cgi it connected to the right
database, just not under mod_perl using Apache::Registry.

Then I started to try and compile my own versions of Apache 1.3.33 (the 
same
as my production environment.)  With or without fink or darwinports, by 
itself
or DSO with mod_perl, I can't get a successful apache 1.3.33 working.

I've gotten a lot of great suggestions, all of which I've tried, none 
have worked.

I'm not sure it's necessarily the only way to fix my problem though.
Starting to think like a perl guy (TMTOWTDI, right.)  I'm guessing, not
sure but DBD::mysql or DBI is probably what set up mod_perl's lib.  So, 
maybe
I just need to reinstall them.  Otherwise, I can always back my user 
files
up and do a clean OS install (yuck!)  I could keep trying to install my 
own
apache1.3.33 too.  In fact, I'd like to be able to, regardless...

So as far as the dyld goes.  Is it something that is only effected 
during source
compiling?  If so I'd at least know it was one of the DB mods, for I 
haven't
compiled either apache or mod_perl successfully.  So if dylds only get 
linked
during compile, using the env vars you explained, then I just need to 
reset
them, maybe taking my /sw/ directory out of $PATH while I compile, 
right?
Otherwise if there is a way to do it after it's compiled via editing a 
header
doc or something, maybe I just need to trackdown the file using a combo
of the grep commands you gave examples for in your last email, right?

Thanks again,
Boysenberry

At the end of my rope with apache and mod_perl
Boysenberry Payne 21:01 on 08 Feb 2005

Re: At the end of my rope with apache and mod_perl
Barry Hoggard 23:02 on 08 Feb 2005

Re: At the end of my rope with apache and mod_perl
Boysenberry Payne 09:14 on 09 Feb 2005

Re: At the end of my rope with apache and mod_perl
Boysenberry Payne 07:46 on 10 Feb 2005

Re: At the end of my rope with apache and mod_perl
Barry Hoggard 18:39 on 10 Feb 2005

Re: At the end of my rope with apache and mod_perl
Geoffrey Young 19:01 on 10 Feb 2005

Re: At the end of my rope with apache and mod_perl
Barry Hoggard 19:03 on 10 Feb 2005

Re: At the end of my rope with apache and mod_perl
Boysenberry Payne 22:54 on 10 Feb 2005

Re: At the end of my rope with apache and mod_perl
Boysenberry Payne 11:21 on 10 Feb 2005

Re: At the end of my rope with apache and mod_perl
Boysenberry Payne 14:30 on 10 Feb 2005

preferred LB methods
Matthew Berk 16:54 on 10 Feb 2005

Re: preferred LB methods
Peter Leonard 17:14 on 10 Feb 2005

Re: preferred LB methods
Geoffrey Young 17:15 on 10 Feb 2005

Re: preferred LB methods
Malcolm J Harwood 17:47 on 10 Feb 2005

Generated at 10:21 on 11 Feb 2005 by mariachi v0.52