You probably need to change permissions on the /opt/htdocs/masonobj
directory so that the user your Apache is running as has permission to
write the files in that directory.
As for the blank page, which sounds like the more serious problem, I
would look in the apache error log -- it may have some clue.
--Mark
On Apr 25, 2008, at 4:12 PM, smulyono wrote:
Hi,
I try this script
Greetings, <% ("Earthlings","Martians") [rand 2] %>
Which supposed to be showing me “Greetings, Earthlings” or
“Greetings, Martians” in randoms. But all I got is blank page. The
Apache has been configured, this is my Mason configuration
“”
PerlSetVar MasonCompRoot /opt/htdocs
PerlSetVar MasonDataDir /opt/htdocs/masonobj
PerlSetVar MasonAllowGlobals $dbh
PerlAddVar MasonAllowGlobals $q
PerlModule CGI
PerlModule DBI
PerlModule HTML::Mason::ApacheHandler
<FilesMatch "\.mhtml$">
SetHandler perl-script
PerlHandler HTML::Mason::ApacheHandler
</FilesMatch>
“”
Is there something wrong? I do notice that everytime I changed the
mhtml file, I need to delete the object that is created in /opt/
htdocs/masonobj. Is there a way for me to refresh it automatically
the files changed?
Thanks,
-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference
Don't miss this year's exciting event. There's still time to save
$100.
Use priority code J8TL2D2.
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone_______________________________________________
Mason-users mailing list
Mason-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mason-users
-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference
Don't miss this year's exciting event. There's still time to save $100.
Use priority code J8TL2D2.
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________
Mason-users mailing list
Mason-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mason-users