This is part of The Pile, a partial archive of some open source mailing lists and newsgroups.
Subject: mod_perl question From: Kirk Bauer <kirk@kaybee.org> Date: Thu, 15 Jul 1999 21:01:03 -0400 (EDT) I have tried running this perl script through Apache's mod_perl on both Red Hat 5.2 and 6.0 (with all updates applied). However, all I ever get is an empty page in my web browser and an error in the error log: [notice] child pid 2765 exit signal Segmentation fault (11) Here is the script, what am I doing wrong? #!/usr/bin/perl -w use strict; use CGI; my $cgi = new CGI; print $cgi->header; print $cgi->start_html("Test Page"); print "<H1> Test Page </H1>\n"; === Subject: Re: mod_perl question From: "Igmar Palsenberg" <palsenberg@tebenet.nl> Date: Fri, 16 Jul 1999 17:00:28 +0200 >I have tried running this perl script through Apache's mod_perl >on both Red Hat 5.2 and 6.0 (with all updates applied). >However, all I ever get is an empty page in my web browser and >an error in the error log: >[notice] child pid 2765 exit signal Segmentation fault (11) >Here is the script, what am I doing wrong? Nothing. The child segfaults, and there is nothing you can do about it. Try recompiling it, or using a different version of mod_perl. I had these problems with PHP, and all I could do is go back to an older version. >#!/usr/bin/perl -w Don't run perl with the -w option. I don't believe that this line has to be used with the mod_perl. Read the docs ===