[Handel] mp1 database connectivity
tom.kirkpatrick at virusbtn.com
tom.kirkpatrick at virusbtn.com
Wed May 3 21:40:44 CEST 2006
I had this problem before... or at least, I think it's the same thing.
Handel::ConfigReader reads the connection settings from httpd.conf. You
need to ensure that you do the PerlSetVar statements BEFORE you preload
your handel app. Oh... but I just re-read your post and it seems you
already tried that.
damn it!
handel-bounces at lists.rawmode.org wrote on 03/05/2006 20:35:50:
> Christopher H. Laco wrote:
> >> Sure, attached :-)
> >>
> >> Like I say, the problem is ->connection unconditionally being called
in
> >> the BEGIN block in Handel/DBI.pm. If it was obvious to me how to
patch
> >> it so this happens in a condition without hosing your Handel apps, I
> >> wouldn't be wasting your time like this.
> >>
> >> Todd W.
> >>
> >
> > Not a waste of time at all really. Any MP code in there was just a
guess
> > on my part since I barely use it any more. I run the current site
under
> > FastCGI, and the demo [of course] doesn't have this issue. I'm sure
it's
> > just something I didn't think of about the MP lifecycle, and when
> > connections get set vs/ read from the httpd.conf...
> >
> > Just for giggles, what happens if you leave th offending line in
> > Handel::DBI, and put this in your FundRaiser.pm:
> >
> >
> > Handel::DBI->connection(
> > 'dbi:mysql:dbname=handel',
> > 'handeluser',
> > 'handelpass'
> > );
> >
> > -=Chris
>
> From the looks of it, that's exactly what I did under mp before I moved
> to FastCGI:
>
> http://svn.handelframework.com/handelframework.com/trunk/
>
>
> ******* start of LIZA substitution ************************
> This part of the email has been removed because the Sophos Remote
> Scanner cannot verify its contents.
>
> Filename: signature.asc
>
> File type, size and reason: application/pgp-signature 196 bytes
> Unknown:PGP armored data
>
> To retrieve the original message, please click on one of these
> links. Your message will then be forwarded to SophosLabs for
furtherchecking.
>
> Normal: mailto:pmx-release-request%
> 2b4459061B_68460_14157_1 at positron.sophos.com?Subject=Mail+check+request
>
> Confidential: mailto:pmx-release-request%
> 2b4459061B_68460_14157_1 at positron.sophos.com?Subject=%
> 5bConfidential%5d+Mail+check+request
>
> If you have problems with this process, please raise an IT request
> by emailing ITRequests or contact the IT service desk.
> ******* end of LIZA substitution ************************
> _______________________________________________
> Handel mailing list
> Handel at lists.rawmode.org
> http://lists.rawmode.org/cgi-bin/mailman/listinfo/handel
--
Tom Kirkpatrick
Web Developer - Virus Bulletin
More information about the Handel
mailing list