I am trying the CGI side of mason for the first time.
Here is the problem with the hosting company I am
using,

1
I am in a Jailshell with very limited access. I put in
the LocationMatch directive on my document root's
.htaccess and apache does not like it when I try to
load the mason_handler.cgi on .mc extensions.

2. 
I try running Mason as standalone with ::Interp,(on
document root) 

my $interp = HTML::Mason::Interp->new() ;
my $comp = $interp->make_component(comp_source =>
<<'END') ;
        Greetings, <% ("Earthlings", "Martians")[rand
2] %>
END
$interp->exec($comp) ;

I get the following error on apache error log(500):
malformed header from script. Bad header=\tGreetings,
Earthlings: 

Somehow apache server is sending header before the cgi
file. With my very limited access to the shell, I
cannot even look inside the main httpd.conf.

suggestions ?


Apu

------------------------------
 Apu Islam
( E Pluribus Unum)

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Mason-users mailing list
Mason-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mason-users

Reply via email to