[Maypole] CGI::Maypole

raptor@tvskat.net raptor@tvskat.net
Tue, 1 Jun 2004 18:25:18 +0300


I found the problem the following has to be added to MyTest :

sub get_template_root { "/path/to/templates/" } 

where I can find the .css stuff ... it looks very ugly not as shown on perl.com :")

On Tue, 1 Jun 2004 16:08:23 +0300
"raptor@tvskat.net" <raptor@tvskat.net> wrote:

> Simultaneously I'm tring CGI variant too :
> 
> ...
> client denied by server configuration: /usr/htdocs
> Premature end of script headers: test.pl
> file error - frontpage: not found at /usr/lib/perl5/site_perl/5.8.2/Maypole/View/Base.pm line <DATA> 3077 ......
> 
> 
> As stated in the Wiki FAQ I'm tring to put slash at the end, but still get this error , can this be 'cause
> 
> >>> client denied by server configuration: /usr/htdocs <<<
> 
> What I've set is a lib directory where I put MyTest.pm :
> 
> package MyTest;
> #use base 'Apache::MVC';
> use base 'CGI::Maypole';
> 
> MyTest->setup("dbi:SQLite:/path/to/db/test.db");
> MyTest->config->{uri_base} = "http://localhost/maypole/";
> MyTest->config->{rows_per_page} = 10;
> MyTest->config->{display_tables} = [qw[test]];
> 1;
> 
> then test.pl like this :
> 
> #!/usr/bin/perl -w
> use strict;
> use lib '/path/to/maypole/lib';
> use MyTest;
> MyTest->run();
> 
> 
> and fetched like this :
> 
> wget http://x.x.x.x/maypole/test.pl/
> --15:47:12--  http://x.x.x.x/maypole/test.pl/
>            => `index.html'
> Connecting to x.x.x.x:80... connected.
> HTTP request sent, awaiting response... 500 Internal Server Error
> 15:47:13 ERROR 500: Internal Server Error.
> 
> this doesnt help either :
> 
> wget http://x.x.x.x/maypole/test.pl/list
> --16:00:58--  http://x.x.x.x/maypole/test.pl/list
>            => `list'
> Connecting to x.x.x.x:80... connected.
> HTTP request sent, awaiting response... 500 Internal Server Error
> 16:00:58 ERROR 500: Internal Server Error.
> 
> 
> wget http://x.x.x.x/maypole/test.pl/test/list
> 
> either... the "test" is the name of the Table ...
> 
> what i'm doing wrong ..
> 
> tia
> 
> _______________________________________________
> maypole mailing list
> maypole@lists.netthink.co.uk
> http://lists.netthink.co.uk/listinfo/maypole
>