howdy -

i've spent some time over the last couple of work days resolving this issue, and it's my hope that fellow monks can help expand my awareness of apache and mod-perl with their responses, although some of this may be distribution-specific (debian woody).

i have an in-house apache server i'm developing for use as a query server, and have just started migrating some working scripts from cgi to mod-perl. the query strategy followed in this specific instance is fairly generic - a frame is displayed in which a user defines parameters that return a set of parent records, from which the user selects a subset for a more detailed summary. as i first started testing under mod-perl, the intermediate stage started returning an erroneous result set, despite the fact that i could execute the sql statement in dbish and retrieve appropriate results.

i won't bore you with the diagnostic steps i took, suffice it to say that it took me a while to spot the apache-perl package in debian (doh). the faulty environment had involved the base apache and libapache-mod-perl packages.

my questions are two and a half-fold

1- why did this work at all, given that i had httpd.conf configured to use mod-perl, but the installed httpd had no perl interpreter? and since it did partially work, why did it fail only in one result set ... i was able to retrieve summaries from the child tables on the selected records, though they weren't the ones i really wanted.

2- during the process, i tried to back away from mod-perl, using debian's apt-get to remove everything and reinstall apache, replacing httpd.conf with the one from the previous working cgi environment. this was not effective - the bad result set continued to be returned in an environment that should have been the same as i had when i started. anyone have any idea why?

i remain, of course, eternally grateful for whatever shards of enlightenment are passed my way.

ralphie


In reply to for mod-perl gurus by ralphie

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.