On Thu, 14 Feb 2008, Billeb, Andrew (ATS, IT) wrote:

>> Hello Mason Users,
>>
>> I'm wondering if someone could help me with this Mason
>> installation/configuration problem.  I just installed Mason on WinXP
>> (Apache 2.2.6, Perl 5.8.8, and mod_perl 2.0), and edited the
>> httpd.conf file with:
>>
>> PerlModule HTML::Mason::ApacheHandler
>> <Directory "C:/Apache2/htdocs/mason">
>>      <FilesMatch "\.html$">
>>              SetHandler perl-script
>>              PerlHandler HTML::Mason::ApacheHandler
>>      </FilesMatch>
>> </Directory>
>>
>> Now when I try to start Apache, it dies with:
>>
> Apache HTTP Server has encountered a problem and needs to close.  We are
> sorry for the inconvenience.
[ ... ]
> Even just the first of the above httpd.conf lines will cause this
> problem.  If, however, I take the lines out of httpd.conf Apache works
> fine.  I looked in the Apache logs, but I don't see anything that looks
> notable.

Does mod_perl itself work OK? For example, does a simple
Hello World handler:
   http://perl.apache.org/docs/2.0/os/win32/config.html#Hello_World
work?

>> Perl, itself, seems to be able to use Mason.  I can run this simple
>> Mason test program and I get the expected output:
>>
>> use strict;
>> use HTML::Mason;
>>
>> my $interp = HTML::Mason::Interp->new();
>> my $comp = $interp->make_component(comp_source => <<'END');
>>      Greetings, <% ("Earthlings", "Martians")[int(rand 2)] %>
>> END
>> $interp->exec($comp);
>>
>> Here is the configuration I'm running:
>>
>> Operating System
>> Windows XP Pro
>>
>> Apache Version
>> Server version: Apache/2.2.6 (Win32)
>> Server built:   Sep  5 2007 08:58:56
>>
>> Perl Version
>> C:\Apache2\bin>perl -v
>> This is perl, v5.8.8 built for MSWin32-x86-multi-thread
>>
>> Running mod_perl 2.0
>>
>> Mason Installation
>> I installed Bundle::HTML::Mason by way of:
>> perl -MCPAN -e "install Bundle::HTML::Mason"

If you compiled mod_perl yourself, did you also use the
same compiler to build perl and Apache? Sometimes there's
problems mixing binaries built with different versions
of compilers.

Also, there were some problems with mod_perl and
Apache/2.2.6 on Win32 - is it possible to test this
with the current Apache/2.2.8?

-- 
best regards,
Randy Kobes

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Mason-users mailing list
Mason-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mason-users

Reply via email to