[redland-dev] RDF::Redland::Model trouble with PERL CGI

Daniel Larsson daniel.larsson at servicefactory.com
Wed Nov 29 15:24:09 UTC 2006


I would suspect the user running the CGI script (likely the user running
your httpd server) lacks UNIX privileges to read/write in the current
directory. Try check what directory "." refers to, what the permissions
are on that directory, and what user the script is executed by.

On Wed, 2006-11-29 at 14:50 +0100, Hinko Frouws wrote:
> For some reason the following line imported in a CGI script is
> 'causing a problem:
>  
>         my $model=new RDF::Redland::Model($storage, "")
>  
> It does work well outside CGI, and the rest of Redland (as far as I
> can test it without a model) is not caausing any trouble.
>  
> for example in this little snippet:
>         #!/usr/bin/perl -w
>         
>         use strict;
>         use RDF::Redland;
>         sub dingetje{
>         my $storage=new RDF::Redland::Storage("hashes", "finaleset",
>         "hash-type='bdb',dir='.'");
>         my $model=new RDF::Redland::Model($storage, ""); 
>         }
>         
>         
>         use CGI qw(:standard);
>         my $storage;
>         my $model;
>         
>         
>         print header('text/html')
>          ,start_html;
>          
>         print h2('so far so good');
>          
>         
>         
>         dingetje();
>         print end_html;
>         
> Any solutions??
> 
> -- 
> Vriendelijke groeten,
> 
> Hinko Frouws 
> _______________________________________________
> redland-dev mailing list
> redland-dev at lists.librdf.org
> http://lists.gnomehack.com/mailman/listinfo/redland-dev
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
Url : http://lists.usefulinc.com/pipermail/redland-dev/attachments/20061129/737ad000/attachment.pgp


More information about the redland-dev mailing list