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.