Hi, I have installed Apache/2.0.63 (Win32) mod_perl/2.0.3 Perl/v5.8.8 Am trying to run the following code: -------------------------------------------------------
package interface; use CGI::Carp qw(set_die_handler); BEGIN { sub handle_errors { my $msg = shift; print "content-type: text/html\n\n"; print "$msg"; } set_die_handler(\&handle_errors); } use strict; use warnings; use Template; use DBI; eval { ($0 =~ m,(.*)/[^/]+,) && unshift (@INC, "$1"); # Get the script lo +cation: UNIX / or Windows / ($0 =~ m,(.*)\\[^\\]+,) && unshift (@INC, "$1"); # Get the script lo +cation: Windows \ do 'config.do'; do 'templates.do'; do 'shared.do'; do 'database.do'; }; my $config = { INCLUDE_PATH => "$config::templatesAbs", INTERPOLATE => 1, POST_CHOMP => 1, }; print "Content-type:text/html\n\n"; my $template = Template->new($config); my $vars = { images => "$config::imagesUrl", }; my $input = 'welcome.htm'; $template->process($input,$vars) || die $template->error();
---------------------------------------------------------- But apache shuts completely and i get the following error:
[Mon Aug 18 00:13:48 2008] [notice] Parent: child process exited with +status 255 -- Restarting. [Mon Aug 18 00:13:48 2008] [notice] Apache/2.0.63 (Win32) mod_perl/2.0 +.3 Perl/v5.8.8 configured -- resuming normal operations [Mon Aug 18 00:13:48 2008] [notice] Server built: Jan 17 2008 22:58:29 [Mon Aug 18 00:13:48 2008] [crit] (OS 87)The parameter is incorrect. +: Parent: Failed to create the child process. [Mon Aug 18 00:13:48 2008] [crit] (OS 6)The handle is invalid. : mast +er_main: create child process failed. Exiting. [Mon Aug 18 00:13:48 2008] [notice] Parent: Forcing termination of chi +ld process 3385760
I have no clue why this is happening. Please help. Thank you, Anant

In reply to apache + modperl problem by user2000

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.