Greetings! I am new to the wonderful world of Apache/Perl/Mason and
having a bit of a problem getting started. I have Apache, mod_perl and
Perl installed. I tried to install Mason but it doesn't seem to be
successful. I have entered the handshake.pl and handshake.html examples.
The command line displays the string Greetings, <$ ("Earthlings",
"Martians")[rand 2] %>. I invoked perl handshake.pl from the command
line. When I try to access handshake.html via
http://localhost/handshake.html I get an internal Apache error, probably
due to mis-configuration. Here is the section that I added to httpd.conf
in the section where there were already a few AddHandler directives.
<LocationMatch "\.html$">
SetHandler perl-script
PerlHandler HTML::Mason::ApacheHandler
</LocationMatch>
I am running Fedora 10 Linux.
Apache server-info reports: Apache/2.2.11, mod_perl/2.0.4, Perl/v5.10.0
I downloaded Mason 1.42. I did a perl Makefile.PL EVERYTHING=1, make,
make test and sudo make install. Everything *SEEMED* to largely work.
However, the make test reported some problems though it claimed success.
Specifically, here are the problems.
t/live/CGIHandler.t ................ skipped:
$TestConfig->{is_maintainer} is not true or $TestConfig->{apache_dir} is
not a directory
t/live/apache-filter.t ............. skipped:
$TestConfig->{is_maintainer} is not true or $TestConfig->{apache_dir} is
not a directory
t/live/cgi-no-handler.t ............ skipped:
$TestConfig->{is_maintainer} is not true or $TestConfig->{apache_dir} is
not a directory
t/live/cgi-with-handler.t .......... skipped:
$TestConfig->{is_maintainer} is not true or $TestConfig->{apache_dir} is
not a directory
t/live/libapreq-no-handler.t ....... skipped:
$TestConfig->{is_maintainer} is not true or $TestConfig->{apache_dir} is
not a directory
t/live/libapreq-with-handler.t ..... skipped:
$TestConfig->{is_maintainer} is not true or $TestConfig->{apache_dir} is
not a directory
t/live/multi-conf.t ................ skipped:
$TestConfig->{is_maintainer} is not true or $TestConfig->{apache_dir} is
not a directory
t/live/no-config.t ................. skipped:
$TestConfig->{is_maintainer} is not true or $TestConfig->{apache_dir} is
not a directory
t/live/set-content-type.t .......... skipped:
$TestConfig->{is_maintainer} is not true or $TestConfig->{apache_dir} is
not a directory
t/live/single-level-server-root.t .. skipped:
$TestConfig->{is_maintainer} is not true or $TestConfig->{apache_dir} is
not a directory
t/live/taint.t ..................... skipped:
$TestConfig->{is_maintainer} is not true or $TestConfig->{apache_dir} is
not a directory
All tests successful.
Apache seems to be installed in /etc/httpd, which I think is default for
Fedora. During the Mason build process there weren't *ANY* prompts for
where Apache is installed, though the doc suggested that there would be.
This is just my own learning/development system, so I am the system
administrator and can do anything needed.
Thank you very much for any help!
Chuck
------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now. http://p.sf.net/sfu/bobj-july
_______________________________________________
Mason-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mason-users