I'm trying to teach myself Dancer and using Apache and mod_fcgid on my Debian virtual server to do so. I've created a basic application called 'unite' and made some simple modifications to the automatically generated files. The issue I'm running into is that sometimes the page loads and sometimes it does not. Let me explain.

Loading the page will sometime give me an error:

Internal Server Error: The server encountered an internal error or misconfiguration and was unable to complete your request.

Checking the Apache logs, I get:

Error while loading /var/www/unite/bin/app.psgi: Attempt to reload unite.pm aborted.\nCompilation failed in require at /var/www/unite/bin/app.psgi line 8.\nBEGIN failed--compilation aborted at /var/www/unite/bin/app.psgi line 8.\n

Simply reloading the page once or twice will "fix" the issue, at least for a few page loads. If this is an Apache configuration error then it's obviously off topic here and I'll be happy to request assistance in a more appropriate forum. But since the error is a Perl module load error, I though I'd start here.

In reply to Dancer and Apache by BTrey

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.