If this is the wrong list, please direct me to the right place.&nbsp; I&#39;m trying to get Catalyst working under apache/mod_perl (works fine with the standalone server). <br><br>Basically, I have a very simple app called Registration. In apache I set it up like:
<br><br>&lt;Location /registration&gt;<br>&nbsp;SetHandler perl-script <br>&nbsp;PerlHandler Registration<br>&lt;/Location&gt;<br><br>If I startup apache through the init.d script, it complains that it cant find <a href="http://Registration.pm">
Registration.pm</a> in @INC.&nbsp; The obvious way around this was to set the PERL5LIB env var to the path of my app lib dir, and so this does work:<br><br>&nbsp; PERL5LIB=/var/www/registration/lib&nbsp; /usr/sbin/apache2ctl start<br><br>
However, I need a way to set this way so it &quot;sticks&quot; on reboot, ideally so I can simply start apache through the /etc/init.d script. I suppose I could edit that script directly, but I&#39;d rather not (and assume there is a simpler way)
<br><br>I&#39;ve tried setting the variable in the apache conf, but this doesn&#39;t seem to work:<br>&nbsp;PerlSetEnv&nbsp; PERL5LIB&nbsp; /var/www/registration/lib<br><br>Any ideas here on what i&#39;m missing?&nbsp; <br><br><br>Second question.&nbsp; I am using the FormValidator::Simple plugin.&nbsp; In my lib/Registration.pm file, I set it up like this (per the documentation):
<br><br>__PACKAGE__-&gt;config(<br>&nbsp; validator =&gt; {<br>&nbsp;&nbsp;&nbsp; messages =&gt; &#39;messages.yml&#39;<br>&nbsp;}<br>}<br><br>Now when I startup apache (the one way I can get it to work) and hit my URL, I get the error:<br>&nbsp;failed to resolve handler `Registration&#39;: set hash reference or YAML file path. at /usr/local/share/perl/5.8.8/FormValidator/Simple/Messages.pm line 43\nCompilation failed in require at (eval 2) line 3.
<br><br>When I give the absolute path to messages.yml in the config above, the error resolves, however I dont want to set an absolute path here for obvious reasons.&nbsp; What are&nbsp; my options ?<br><br><br>Thanks !<br>John<br><br>
<br>