Load it from httpd.conf:#!/usr/bin/perl # handler.pl package HTML::Mason; use HTML::Mason; use HTML::Mason::ApacheHandler; use strict; { package HTML::Mason::Commands; use DBI (); use CGI (); } DBI->install_driver('mysql'); CGI->compile(':standard'); my $ah = HTML::Mason::ApacheHandler->new( comp_root => '/path/to/comp/root', data_dir => '/path/to/data/dir' ); sub handler { my ($r) = @_; return $ah->handle_request($r); } 1;
Speaking of httpd.conf, here's part of yours:PerlRequire /path/to/handler.pl
> KeepAlive On > ... > MaxClients 150You should configure apache properly for mod_perl. Generally you want keepalive turned off and maxclients set to something your server can handle based on the size of your apache children.
--
perl -MO=Deparse -e"u j t S n a t o e h r , e p l r a h k c r e"
In reply to Re^3: Weird HTML::Mason error
by epoptai
in thread Weird HTML::Mason error
by tomazos
For: | Use: | ||
& | & | ||
< | < | ||
> | > | ||
[ | [ | ||
] | ] |