On 02/15/14 01:15, David Booth wrote:See, now therein lies the problem. I'm starting with that tut and the same code but by using my module name so that I can test some other features when I actually get it working (such as reload).
I used this tutorial to get mod_perl working the first time:
Can you get that exact example (Rocks.pm) to work, following those instructions? Please try that first, rather than your actual project, just to get the invocation debugged.
So basically I have the code for rocks.pm in the module, just with a different module/package name.
Thats what stinks about the whole problem :-)
On 02/14/2014 09:54 AM, Da Rock wrote:
Unfortunately that didn't work in the startup.pl, as has been mentioned
in both replies. Still got the same error with both startup.pl with use
lib <path>, as well as PerlSwitches -I.
I should mention I've tried both modperl and perl-script options to
There is one other error that shows up in the logs depending on changes
made to the config:
[error] Can't load Perl module
It definitely seems to be an issue with @inc, but what?
On 02/14/14 23:52, John Dunlap wrote:
Do you have a use lib 'PATH'; at the top of your startup.pl
<http://startup.pl>? This is typically how your module is added to the
perl include path
On Feb 14, 2014 8:38 AM, "Da Rock" <email@example.com
I know this may seem straight forward and a RTFM response may be
in order, but I have been trying to crack this for some days now
(following attempts on and off, too, mind) and nothing I can
google seems to point to an accurate answer on what the problem is
I'm running FreeBSD 9.x with Apache22, and installed mod_perl2 to
try to switch away from php based development based on current
I have tried using a startup.pl <http://startup.pl>, but I would
like to just use PerlSwitches -I instead (which from what I read
is possible); regardless the issue remains the same.
I get a 500 response in the browser, and the logs have these errors:
"failed to resolve handler `Mod_home::Mod': Can't locate
Mod_home/Mod.pm in @INC"
and simply "failed to resolve handler" in the main server log.
My config looks like this:
CustomLog "/var/log/apache/<VHOST>-access.log" common
Allow from all
I also have PerlModule Apache2::Reload in the httpd.conf.
Just to reiterate - I have tried this both as vhosting and as
single server setup, and I cannot seem to resolve the same issue
every single time.
Can someone please give the magical incantation to make this thing
work? :-) or at least point me in the right direction? I'm really
starting to lose patience with this thing, and I now have a
deadline to sort this out which is fast approaching.