This cgi script is in /usr/lib/cgi-bin directory and page.html is in 
/home/savio/template/src directory, that is to say in my personal folder.
Perahps apache user (www-data) cannot access in my personal folder.
I can access in ubuntu with my account and after I must to use sudo for 
becaming root.
I can write outside /home/savio only with root privileges.

What is the problem?

savio


--- Gio 25/2/10, Lesley Binks <[email protected]> ha scritto:

> Da: Lesley Binks <[email protected]>
> Oggetto: Re: [Templates] I: problem in generating template with perl and CGI
> A: "dark0s" <[email protected]>
> Data: Giovedì 25 febbraio 2010, 13:15
> From G1 apologies for top posting
> Check page.html exists where you expect it to be and
> world has read access  
> On 25 Feb 2010 00:57,
> "dark0s" <[email protected]>
> wrote:
> 
> My perl code is the following, before I mistaked in
> INCLUDE_PATH:
> 
> 
> 
> #!/usr/bin/perl
> 
> 
> 
> use CGI;
> 
> use CGI::Carp qw(fatalsToBrowser);
> 
> use Template;
> 
> 
> 
> my $cgi = CGI->new();
> 
> print $cgi->header('text/html');
> 
> 
> 
> my $tt2 = Template->new({
> 
>     INCLUDE_PATH =>
> ['/home/savio/templates/src',
> '/home/savio/templates/lib'],
> 
>     PRE_PROCESS  => 'config/main',
> 
>     EVAL_PERL    => 1,
> 
> }) || die $tt2->error(), "\n";
> 
> 
> 
> $tt2->process('welcome.html') or die
> $tt2->error(), "\n";
> 
> 
> 
> 
> 
> The error message is "file error - page.html: not
> found".
> 
> What is the problem?
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> _______________________________________________
> 
> templates mailing list
> 
> [email protected]
> 
> http://mail.template-toolkit.org/mailman/listinfo/templates
> 
> 
> 


      

_______________________________________________
templates mailing list
[email protected]
http://mail.template-toolkit.org/mailman/listinfo/templates

Reply via email to