Re: Producing an error page
On Mon, 21 Aug 2000, Jay Strauss wrote: --- #!/usr/bin/perl -w use strict; use diagnostics; Try adding: use CGI::Carp; # send error messages to browser ($first, $second) = @ARGV; Try: my ($first, $second) = @ARGV; You may also want to check "my" in a Perl book, just so you know what it does :-) // Flemming -- Flemming Mahler Larsen, Tele Danmark Internet http://projekt.tele.dk.net/about/mahler.html // +45 3527 9013
Installing mod_perl Apache as non root user...
Hi! I've been trying to install mod_perl (1.24) and Apache (1.3.12) on a Sun E450 (sparc-sun-solaris2.5.1), using a "configuration command" looking like this (one long line): perl Makefile.PL PREFIX=/home/tdi/perl USE_APACI=1 PERL_CHILD_INIT=1 \ PERL_AUTHEN=1 PERL_AUTHENZ=1 PERL_AUTHZ=1 PERL_CLEANUP=1 \ PERL_STACKED_HANDLERS=1 APACHE_PREFIX=/home/tdi/server/apache_test This however doesn't work, as the make install command apparently insist on messing around in /usr/local/lib/perl5/ There is an existing Apache (1.3.9)/mod_perl (1.21) running on the server installed by root and running the production environment. Which we would leave in place until we've tested the new versions with our application. Any ideas on who to get it installed without being root... TIA, Flemming -- Flemming Mahler Larsen, Tele Danmark Internet http://projekt.tele.dk.net/about/mahler.html // +45 3527 9013
Sharing memory between Apache processes
Hi, We've been moving several small "CGI powered sites" to mod_perl and the results has been quite terrific. Based on this we're about to move our first large (large in size and heavy traffic) site from an Oracle Application Server to mod_perl. We're using our own custom "HTML::Template"-like module and reading all templates in to the memory during the server start-up (these are placed in a hash structure in a "project-speciffic"-module name space). It seems as this has the effect that each server process keeps its own copy of the templates. I would like to avoid this by using some sort of shared memory between the server processes. Does any of you have any experience in this field (or even better examples of how to do it)? TIA, Flemming -- Flemming Mahler Larsen, Tele Danmark Internet http://projekt.tele.dk.net/about/mahler.html // +45 3917 9013