<HTML><BODY style="word-wrap: break-word; -khtml-nbsp-mode: space; -khtml-line-break: after-white-space; ">Could it be a permission issue? does apache run as the same user as the test-server?<DIV><BR class="khtml-block-placeholder"></DIV><DIV>Could perhaps make a seperate directory for development and deployment, and run one with apache and one with test-server.</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>andreas</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV><BR><DIV><DIV>On 12. okt. 2006, at 10.56, Marc Logghe wrote:</DIV><BR class="Apple-interchange-newline"><BLOCKQUOTE type="cite"> <DIV><SPAN class="771484008-12102006"></SPAN><FONT face="Arial"><FONT color="#0000ff"><FONT size="2">I�think�I�am�getting�crazy�here.</FONT></FONT></FONT></DIV> <DIV><FONT face="Arial" color="#0000ff" size="2"></FONT>�</DIV> <DIV><SPAN class="771484008-12102006"></SPAN><FONT face="Arial"><FONT color="#0000ff"><FONT size="2">I<SPAN class="771484008-12102006"> traced it down to Template::Provider::_fetch_path.</SPAN></FONT></FONT></FONT></DIV> <DIV><FONT><FONT color="#0000ff"><FONT size="2"><SPAN class="771484008-12102006"></SPAN></FONT></FONT></FONT><SPAN class="771484008-12102006"></SPAN><FONT face="Arial"><FONT color="#0000ff"><FONT size="2">S<SPAN class="771484008-12102006">ome extra debug statements give this in the logs:</SPAN></FONT></FONT></FONT></DIV> <DIV><FONT face="Arial"><FONT color="#0000ff"><FONT size="2"><SPAN class="771484008-12102006">In apache (user apache):</SPAN></FONT></FONT></FONT></DIV> <DIV><FONT face="Arial"><FONT color="#0000ff"><FONT size="2"><SPAN class="771484008-12102006">[Template::Provider] fetching search.tt2<BR>[Template::Provider] _fetch_path(search.tt2)<BR>[Template::Provider] searching path: /home/marcl/catalyst/posedb/root/src/search.tt2<BR>[Template::Provider] path not found: /home/marcl/catalyst/posedb/root/src/search.tt2<BR>[Template::Provider] searching path: /home/marcl/catalyst/posedb/root/lib/search.tt2<BR>[Template::Provider] path not found: /home/marcl/catalyst/posedb/root/lib/search.tt2</SPAN></FONT></FONT></FONT></DIV> <DIV><FONT face="Arial"><FONT color="#0000ff"><FONT size="2"><SPAN class="771484008-12102006">... (skipped)</SPAN></FONT></FONT></FONT></DIV> <DIV><FONT face="Arial"><FONT color="#0000ff"><FONT size="2"><SPAN class="771484008-12102006"></SPAN></FONT></FONT></FONT>�</DIV> <DIV><FONT face="Arial"><FONT color="#0000ff"><FONT size="2"><SPAN class="771484008-12102006">In catalyst test server (user marcl, working in home directory):</SPAN></FONT></FONT></FONT></DIV> <DIV><FONT face="Arial"><FONT color="#0000ff"><FONT size="2"><SPAN class="771484008-12102006">[Template::Provider] fetching search.tt2<BR>[Template::Provider] _fetch_path(search.tt2)<BR>[Template::Provider] searching path: /home/marcl/catalyst/posedb/root/src/search.tt2<BR>[Template::Provider] slot = ARRAY(0xa101c88)<BR>[Template::Provider] _refresh([ ARRAY(0xa103d8c), /home/marcl/catalyst/posedb/root/src/search.tt2, Template::Document=HASH(0xa0f0eb0), 1160464516, <undef>, 1160641995])<BR>[Template::Provider] fetching config/main<BR>... (skipped)</SPAN></FONT></FONT></FONT></DIV> <DIV><FONT face="Arial"><FONT color="#0000ff"><FONT size="2"><SPAN class="771484008-12102006"></SPAN></FONT></FONT></FONT>�</DIV> <DIV><FONT face="Arial"><FONT color="#0000ff"><FONT size="2"><SPAN class="771484008-12102006"></SPAN></FONT></FONT></FONT>�</DIV> <DIV><FONT face="Arial"><FONT color="#0000ff"><FONT size="2"><SPAN class="771484008-12102006">The relevant code in Template::Provider::_fetch_path is:</SPAN></FONT></FONT></FONT></DIV> <DIV><FONT face="Arial"><FONT color="#0000ff"><FONT size="2"><SPAN class="771484008-12102006">����������� if ($caching && ($slot = $self->{ LOOKUP }->{ $path })) {<BR>��������������� # cached entry exists, so refresh slot and extract data<BR>$self->debug("slot = $slot");<BR>��������������� ($data, $error) = $self->_refresh($slot);<BR>��������������� $data = $slot->[ DATA ]<BR>������������������� unless $error;<BR>��������������� last INCLUDE;<BR>����������� }<BR>����������� elsif (-f $path) {<BR>��������������� $compiled = $self->_compiled_filename($path)<BR>������������������� if $compext || $compdir;<BR>$self->debug("compiled_filename = $compiled");</SPAN></FONT></FONT></FONT></DIV> <DIV><FONT face="Arial" color="#0000ff" size="2"></FONT>�</DIV> <DIV><FONT face="Arial"><FONT color="#0000ff"><FONT size="2"><SPAN class="771484008-12102006"></SPAN></FONT></FONT></FONT>�</DIV> <DIV><FONT face="Arial"><FONT color="#0000ff"><FONT size="2"><SPAN class="771484008-12102006">So, it seems that in case of the catalyst server, the cache is found. In case of apache, the cache slot is not found and the file path '/home/marcl/catalyst/posedb/root/src/search.tt2' is not found neither.</SPAN></FONT></FONT></FONT></DIV> <DIV><FONT face="Arial"><FONT color="#0000ff"><FONT size="2"><SPAN class="771484008-12102006">How the heck is that possible, the file is really there (it is paranoia, but I actually did a test -f on the command line and it returned true) !!</SPAN></FONT></FONT></FONT></DIV> <DIV><FONT face="Arial"><FONT color="#0000ff"><FONT size="2"><SPAN class="771484008-12102006">Can the expression "-f $path" fail�or�succeed depending on the user (apache user versus marcl) ?</SPAN></FONT></FONT></FONT></DIV> <DIV><FONT face="Arial"><FONT color="#0000ff"><FONT size="2"><SPAN class="771484008-12102006"></SPAN></FONT></FONT></FONT>�</DIV> <DIV><FONT face="Arial"><FONT color="#0000ff"><FONT size="2"><SPAN class="771484008-12102006">regards,</SPAN></FONT></FONT></FONT></DIV> <DIV><FONT face="Arial"><FONT color="#0000ff"><FONT size="2"><SPAN class="771484008-12102006">Marc�</SPAN></FONT></FONT></FONT></DIV> <DIV><FONT face="Arial"><FONT color="#0000ff"><FONT size="2"><SPAN class="771484008-12102006"></SPAN></FONT></FONT></FONT>�</DIV> <DIV><FONT face="Arial" color="#0000ff" size="2"></FONT><FONT face="Arial" color="#0000ff" size="2"></FONT><FONT face="Arial" color="#0000ff" size="2"></FONT><FONT face="Arial" color="#0000ff" size="2"></FONT><BR></DIV> <BLOCKQUOTE dir="ltr" style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #0000ff 2px solid; MARGIN-RIGHT: 0px"> <DIV class="OutlookMessageHeader" lang="en-us" dir="ltr" align="left"> <HR tabindex="-1"> <FONT face="Tahoma" size="2"><B>From:</B> catalyst-bounces@lists.rawmode.org [<A href="mailto:catalyst-bounces@lists.rawmode.org">mailto:catalyst-bounces@lists.rawmode.org</A>] <B>On Behalf Of </B>Marc Logghe<BR><B>Sent:</B> Wednesday, October 11, 2006 11:48 AM<BR><B>To:</B> <A href="mailto:catalyst@lists.rawmode.org">catalyst@lists.rawmode.org</A><BR><B>Subject:</B> [Catalyst] problem deploying with apache: templates not found<BR></FONT><BR></DIV> <DIV></DIV> <DIV><SPAN class="720094409-11102006"><FONT face="Arial" size="2">Hi all, </FONT></SPAN></DIV> <DIV><SPAN class="720094409-11102006"><FONT face="Arial" size="2">I tried to deploy my little test application with apache, basically just like indicated here:</FONT></SPAN></DIV> <DIV><SPAN class="720094409-11102006"><FONT face="Arial" size="2"><A href="http://www.mail-archive.com/catalyst@lists.rawmode.org/msg01410.html">http://www.mail-archive.com/catalyst@lists.rawmode.org/msg01410.html</A></FONT></SPAN></DIV> <DIV><SPAN class="720094409-11102006"><FONT face="Arial" size="2"></FONT></SPAN>�</DIV> <DIV><SPAN class="720094409-11102006"><FONT face="Arial" size="2">Apache starts without errors but when a request is send for <A href="http://localhost/pdfjoin">http://localhost/pdfjoin</A>, I get the catalyst error dump saying it can not find the template.</FONT></SPAN></DIV> <DIV><SPAN class="720094409-11102006"><FONT face="Arial" size="2">Running the very same application using the test server all works fine.</FONT></SPAN></DIV> <DIV><SPAN class="720094409-11102006"><FONT face="Arial" size="2"></FONT></SPAN>�</DIV> <DIV><SPAN class="720094409-11102006"><FONT face="Arial" size="2">The paths for TTSite are configured as shown in the examples:</FONT></SPAN></DIV> <DIV><SPAN class="720094409-11102006"><FONT face="Arial" size="2">__PACKAGE__->config({<BR>#��� CATALYST_VAR => 'Catalyst',<BR>��� INCLUDE_PATH => [<BR>������� posedb->path_to( 'root', 'src' ),<BR>������� posedb->path_to( 'root', 'lib' )<BR>��� ],<BR>��� PRE_CHOMP� => 1,<BR>....</FONT></SPAN></DIV> <DIV><SPAN class="720094409-11102006"><FONT face="Arial" size="2"></FONT></SPAN>�</DIV> <DIV><SPAN class="720094409-11102006"><FONT face="Arial" size="2">Any clues ?</FONT></SPAN></DIV> <DIV><SPAN class="720094409-11102006"><FONT face="Arial" size="2"></FONT></SPAN>�</DIV> <DIV><SPAN class="720094409-11102006"><FONT face="Arial" size="2">Thanks and regards,</FONT></SPAN></DIV> <DIV><SPAN class="720094409-11102006"><FONT face="Arial" size="2">Marc</FONT></SPAN></DIV> <DIV><SPAN class="720094409-11102006"><FONT face="Arial" size="2"></FONT></SPAN>�</DIV> <DIV><SPAN class="720094409-11102006"><FONT face="Arial" size="2"></FONT></SPAN>�</DIV></BLOCKQUOTE><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">_______________________________________________</DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">List: <A href="mailto:Catalyst@lists.rawmode.org">Catalyst@lists.rawmode.org</A></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">Listinfo: <A href="http://lists.rawmode.org/mailman/listinfo/catalyst">http://lists.rawmode.org/mailman/listinfo/catalyst</A></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">Searchable archive: <A href="http://www.mail-archive.com/catalyst@lists.rawmode.org/">http://www.mail-archive.com/catalyst@lists.rawmode.org/</A></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">Dev site: <A href="http://dev.catalyst.perl.org">http://dev.catalyst.perl.org</A>/</DIV> </BLOCKQUOTE></DIV><BR></DIV></BODY></HTML>