Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Re^3: Weird HTML::Mason error

by epoptai (Curate)
on Aug 01, 2005 at 21:21 UTC ( #480039=note: print w/ replies, xml ) Need Help??


in reply to Re^2: Weird HTML::Mason error
in thread Weird HTML::Mason error

Try using a wrapper as suggested in the Mason manual, for example:

#!/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;
Load it from httpd.conf:
PerlRequire /path/to/handler.pl
Speaking of httpd.conf, here's part of yours:
> KeepAlive On
> ...
> MaxClients 150
You 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"


Comment on Re^3: Weird HTML::Mason error
Select or Download Code

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://480039]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others wandering the Monastery: (5)
As of 2015-08-01 02:04 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (285 votes), past polls