On Wed, 30 Mar 2011 21:38:59 +0900 (JST) [email protected] wrote: > I'm trying to run a modPerl2 handler that was written in the > book:practical-mod_perl Executing from the command prompt using Perl > is ok but,when I try to run it in ModPerl2, rendering fails and in > the error_log it says > > [error] access to / failed for 127.1.1.1, reason: file error - > test.html: not found > > SELINUX isn't running , the directory permission is 0755 , and the > file permission is 0664. > I havn't changed the httpd.conf that much. > wondering why the error message said accessing failed to / instead of > test.html ...
It failed to get the website location "/" (the root of your site, or "home page") because it didn't find "test.html" (the file you asked for in the $TT->process() call) in '/home/userr/Apache2/templates' (your INCLUDE_PATH). Does "/home/userr/Apache2/templates/test.html" exist? You didn't include it in the files you posted... > -----------------------httpd.conf [...] > -------------------------Apache2/startup.pl [...] > ---------------------------Apache2/lib/Hello.pm [...] _______________________________________________ templates mailing list [email protected] http://mail.template-toolkit.org/mailman/listinfo/templates
