Re: Getting HTML::Mason to work on OS X

2004-01-29 Thread Michael Maibaum
On Jan 26, 2004, at 23:46, Alex Robinson wrote:

I am using a modified directive:
PerlModule HTML::Mason::ApacheHandler
# Doesn't seem to work on OS X
#Returns 500 Internal Server Error when trying to view/run any 
document or script
That makes it sound like the user you're running Apache as can't write 
the compiled components - check the permissions of the directory that 
Mason is using as its data_dir. However, if it's any more complicated 
than that, to track the problem down you're probably better off going 
to the Mason Users list:

http://lists.sourceforge.net/lists/listinfo/mason-users

You'll want to provide your httpd.conf and the error message you're 
getting in the error_log

Since Panther comes with Perlv5.8, does that mean I do not have to 
recompile apache to get HTML::Mason working?
You don't have to

http://www.masonhq.com/?InstallingMasonOnPanther

But note that the Mason developers still advise using a statically 
compiled version of Apache. Which is (thanks to David Wheeler) pretty 
trivial to do in any case

http://www.macdevcenter.com/pub/a/mac/2002/11/05/apache_osx.html

Actually, I seem to remember that it's now even easier than that, 
since the libapreq patch has made it into the current release and both 
Apache and mod_perl just install. Apache::Request can then simply be 
installed via cpan (with or without the various test suites). After 
that you're home and dry.
yep, or with DarwinPorts

port install apache +mod_perl

this will install a recent Perl in /opt/local and then build a 
statically linked mod_perl + apache in /opt/local as well.

hth

Michael
--
Michael Maibaum
internet: [EMAIL PROTECTED]|http://mike.maibaum.org
voice: [m] 07958 604025|


Re: Getting HTML::Mason to work on OS X

2004-01-27 Thread Ken Williams
Hi Gohaku,

1)  should work fine.  But I usually prefer to use 
 or similar.  No need to pass GIFs, JPEGs, etc. 
through the Mason parser.

2) Mason doesn't require perl 5.8.  It works fine under Jaguar, perl 
5.6, etc.

 -Ken

On Sunday, January 25, 2004, at 09:41  PM, gohaku wrote:

Hi everyone,
I just installed  HTML::Mason on OS X v10.3.2 and other required 
modules.
I am trying to run the following:

% my $noun = 'World';
Hello <% $noun %>!
How are ya?
but it just echoes back what I am trying to execute.

I ran "make test" for HTML::Mason and got back:
All tests successful, 2 tests skipped.
Files=23, Tests=379, 42 wallclock secs (16.83 cusr +  4.18 csys = 
21.01 CPU)

I am using a modified directive:
PerlModule HTML::Mason::ApacheHandler
# Doesn't seem to work on OS X
#Returns 500 Internal Server Error when trying to view/run any 
document or script
 
SetHandler perl-script
PerlHandler HTML::Mason::ApacheHandler


Since Panther comes with Perlv5.8, does that mean I do not have to 
recompile apache to get HTML::Mason working?

Thanks in advance,
-gohaku



Re: Getting HTML::Mason to work on OS X

2004-01-26 Thread Alex Robinson
I am using a modified directive:
PerlModule HTML::Mason::ApacheHandler
# Doesn't seem to work on OS X
#Returns 500 Internal Server Error when trying to view/run any 
document or script
That makes it sound like the user you're running Apache as can't 
write the compiled components - check the permissions of the 
directory that Mason is using as its data_dir. However, if it's any 
more complicated than that, to track the problem down you're probably 
better off going to the Mason Users list:

http://lists.sourceforge.net/lists/listinfo/mason-users

You'll want to provide your httpd.conf and the error message you're 
getting in the error_log

Since Panther comes with Perlv5.8, does that mean I do not have to 
recompile apache to get HTML::Mason working?
You don't have to

http://www.masonhq.com/?InstallingMasonOnPanther

But note that the Mason developers still advise using a statically 
compiled version of Apache. Which is (thanks to David Wheeler) pretty 
trivial to do in any case

http://www.macdevcenter.com/pub/a/mac/2002/11/05/apache_osx.html

Actually, I seem to remember that it's now even easier than that, 
since the libapreq patch has made it into the current release and 
both Apache and mod_perl just install. Apache::Request can then 
simply be installed via cpan (with or without the various test 
suites). After that you're home and dry.


Re: Getting HTML::Mason to work on OS X

2004-01-25 Thread Oliver Schnarchendorf
On Sun, 25 Jan 2004 22:41:46 -0500, gohaku wrote:
> #Returns 500 Internal Server Error when trying to view/run any 
> document or script
You might want to try the following after you accessed your mason page:

tail /var/log/httpd/error_log

Whatever went wrong should have left you a line in the appache error log. Once you 
have the error message you just might have what you need to get rid of the error.

/oliver/



Getting HTML::Mason to work on OS X

2004-01-25 Thread gohaku
Hi everyone,
I just installed  HTML::Mason on OS X v10.3.2 and other required 
modules.
I am trying to run the following:

% my $noun = 'World';
Hello <% $noun %>!
How are ya?
but it just echoes back what I am trying to execute.

I ran "make test" for HTML::Mason and got back:
All tests successful, 2 tests skipped.
Files=23, Tests=379, 42 wallclock secs (16.83 cusr +  4.18 csys = 21.01 
CPU)

I am using a modified directive:
PerlModule HTML::Mason::ApacheHandler
# Doesn't seem to work on OS X
#Returns 500 Internal Server Error when trying to view/run any 
document or script
 
SetHandler perl-script
PerlHandler HTML::Mason::ApacheHandler


Since Panther comes with Perlv5.8, does that mean I do not have to 
recompile apache to get HTML::Mason working?

Thanks in advance,
-gohaku