Hi all,
http://localhost/mason/handshake.html
error messages:
error: Couldn't create object file /etc/apache2/mason/obj/
>
> 904777862/mason/handshake.html.obj: Permission denied
> context: ...
> 436: }
> 437: $comp = eval { $self->eval_object_code( object_file => $objfile )
> };
> 438:
> 439: if (!UNIVERSAL::isa($comp, 'HTML::Mason::Component')) {
> 440: $self->compiler->compile_to_file( file => $objfile, source =>
> $source);
> 441: $comp = eval { $self->eval_object_code( object_file => $objfile )
> };
> 442:
> 443: if (!UNIVERSAL::isa($comp, 'HTML::Mason::Component')) {
> 444: my $error = $@ ? $@ : "Could not get HTML::Mason::Component object
> from object file '$objfile'";
> ...
>
> code stack: /usr/local/share/perl/5.10.0/HTML/Mason/Interp.pm:440
> /usr/local/share/perl/5.10.0/HTML/Mason/Request.pm:246
> /usr/local/share/perl/5.10.0/HTML/Mason/Request.pm:211
> /usr/local/share/perl/5.10.0/HTML/Mason/ApacheHandler.pm:97
> /usr/local/share/perl/5.10.0/Class/Container.pm:275
> /usr/local/share/perl/5.10.0/Class/Container.pm:353
> /usr/local/share/perl/5.10.0/HTML/Mason/Interp.pm:348
> /usr/local/share/perl/5.10.0/HTML/Mason/ApacheHandler.pm:868
> /usr/local/share/perl/5.10.0/HTML/Mason/ApacheHandler.pm:822
> (eval 30):8
> -e:0
>
> raw error:
> Couldn't create object file
> /etc/apache2/mason/obj/904777862/mason/handshake.html.obj: Permission denied
>
> Trace begun at /usr/local/share/perl/5.10.0/HTML/Mason/Compiler/ToObject.pm
> line 116
> HTML::Mason::Compiler::ToObject::compile_to_file(undef, 'file',
> '/etc/apache2/mason/obj/904777862/mason/handshake.html.obj', 'source',
> 'HTML::Mason::ComponentSource=HASH(0xb88838c8)') called at
> /usr/local/share/perl/5.10.0/HTML/Mason/Interp.pm line 440
> HTML::Mason::Interp::load('HTML::Mason::Interp=HASH(0xb88808f0)',
> '/mason/handshake.html') called at
> /usr/local/share/perl/5.10.0/HTML/Mason/Request.pm line 246
> eval {...} at /usr/local/share/perl/5.10.0/HTML/Mason/Request.pm line 231
> HTML::Mason::Request::_initialize('HTML::Mason::Request::ApacheHandler=HASH(0xb8883878)')
> called at /usr/local/share/perl/5.10.0/HTML/Mason/Request.pm line 211
> HTML::Mason::Request::new('HTML::Mason::Request::ApacheHandler',
> 'error_mode', 'output', 'error_format', 'html', 'interp',
> 'HTML::Mason::Interp=HASH(0xb88808f0)', 'comp', '/mason/handshake.html',
> 'args', 'ARRAY(0xb8640e88)', 'ah',
> 'HTML::Mason::ApacheHandler=HASH(0xb8880a20)', 'apache_req',
> 'Apache2::RequestRec=SCALAR(0xb8568ff0)', 'container', 'HASH(0xb8884208)')
> called at /usr/local/share/perl/5.10.0/HTML/Mason/ApacheHandler.pm line 97
> HTML::Mason::Request::ApacheHandler::new('HTML::Mason::Request::ApacheHandler',
> 'error_mode', 'output', 'error_format', 'html', 'interp',
> 'HTML::Mason::Interp=HASH(0xb88808f0)', 'comp', '/mason/handshake.html',
> 'args', 'ARRAY(0xb8640e88)', 'ah',
> 'HTML::Mason::ApacheHandler=HASH(0xb8880a20)', 'apache_req',
> 'Apache2::RequestRec=SCALAR(0xb8568ff0)', 'container', 'HASH(0xb8884208)')
> called at /usr/local/share/perl/5.10.0/Class/Container.pm line 275
> Class::Container::call_method('HTML::Mason::Interp=HASH(0xb88808f0)',
> 'request', 'new', 'interp', 'HTML::Mason::Interp=HASH(0xb88808f0)', 'comp',
> '/mason/handshake.html', 'args', 'ARRAY(0xb8640e88)', 'ah',
> 'HTML::Mason::ApacheHandler=HASH(0xb8880a20)', 'apache_req',
> 'Apache2::RequestRec=SCALAR(0xb8568ff0)', 'container', 'HASH(0xb8884208)')
> called at /usr/local/share/perl/5.10.0/Class/Container.pm line 353
> Class::Container::create_delayed_object('interp',
> 'HTML::Mason::Interp=HASH(0xb88808f0)', 'comp', '/mason/handshake.html',
> 'args', 'ARRAY(0xb8640e88)', 'ah',
> 'HTML::Mason::ApacheHandler=HASH(0xb8880a20)', 'apache_req',
> 'Apache2::RequestRec=SCALAR(0xb8568ff0)', 'container', 'HASH(0xb8884208)')
> called at /usr/local/share/perl/5.10.0/HTML/Mason/Interp.pm line 348
> HTML::Mason::Interp::make_request('HTML::Mason::Interp=HASH(0xb88808f0)',
> 'comp', '/mason/handshake.html', 'args', 'ARRAY(0xb8640e88)', 'ah',
> 'HTML::Mason::ApacheHandler=HASH(0xb8880a20)', 'apache_req',
> 'Apache2::RequestRec=SCALAR(0xb8568ff0)') called at
> /usr/local/share/perl/5.10.0/HTML/Mason/ApacheHandler.pm line 868
> eval {...} at /usr/local/share/perl/5.10.0/HTML/Mason/ApacheHandler.pm line
> 867
> HTML::Mason::ApacheHandler::prepare_request('HTML::Mason::ApacheHandler=HASH(0xb8880a20)',
> 'Apache2::RequestRec=SCALAR(0xb8568ff0)') called at
> /usr/local/share/perl/5.10.0/HTML/Mason/ApacheHandler.pm line 822
> HTML::Mason::ApacheHandler::handle_request('HTML::Mason::ApacheHandler=HASH(0xb8880a20)',
> 'Apache2::RequestRec=SCALAR(0xb8568ff0)') called at (eval 30) line 8
> HTML::Mason::ApacheHandler::handler('HTML::Mason::ApacheHandler',
> 'Apache2::RequestRec=SCALAR(0xb8568ff0)') called at -e line 0
> eval {...} at -e line 0
>
>
> my httpd.conf:
> PerlModule HTML::Mason::ApacheHandler
> <Directory /home/akang/www/mason>
> <FilesMatch "\.html$">
> SetHandler perl-script
> PerlHandler HTML::Mason::ApacheHandler
> </FilesMatch>
> </Directory>
>
> my OS:
> :~/www/mason$ uname -a
> Linux akang.com 2.6.27-7-generic #1 SMP Tue Nov 4 19:33:20 UTC 2008 i686
> GNU/Linux
>
> my test's script:
>
> ~/www/mason$ cat handshake.html
> Greetings, <% ("Earthlings", "Martians")[rand 2] %>
>
> Thanks,
>
> /Air Kang
> --
> Linux>>>>>still>>>>perl
------------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It is the best place to buy or sell services for
just about anything Open Source.
http://p.sf.net/sfu/Xq1LFB
_______________________________________________
Mason-users mailing list
Mason-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mason-users