Hello,
I have another problem using Perl::PerlRun with a startup file in
apache. The line added to the apache configuration file was:
PerlRequire /home/www/[...]/shop/engine/apachestartup.pl
(Re)starting apache results in the following segmentation fault:
--- snip ---
mailgate:/home/www/[...]/shop/engine # /etc/init.d/apache start
Starting httpd [ Mailman PERL PHP4 Nagios ]/etc/init.d/apache: line 202:
14959 Segmentation fault $HTTPD_BIN $INET6 -t -f
/etc/httpd/httpd.conf $MODULES >/var/log/httpd/rcapache.log 2>&1
Syntax
OK
failed
mailgate:/home/www/[...]/shop/engine #
--- snap ---
In the startup file I just load some libraries as my book tells me that
the time to run the scripts will be shorter this way. (Later I want to
add Apache::DBI for a persistante database connection.)
As soon as I remove the comment one of the modules which have a # at
their line, I get the segmantation fault. (All modules named eq* are my
own modules for that shop.)
--- snip ---
#!/usr/bin/perl -w
$ENV{MOD_PERL} or die "ERROR: not running under mod_perl.\n";
use lib "/home/www/[...]/shop/engine/";
use strict;
# use these Perl modules
use Apache::PerlRun;
# use Apache::DBI;
use CGI;
use URI::Escape;
use File::Basename;
use Digest::MD5;
use IO::Scalar;
use XML::Parser;
use Storable;
use XML::Simple;
use XML::Writer;
use Crypt::GeneratePassword;
use MIME::QuotedPrint;
use Mail::Sendmail;
use Text::Iconv;
# use these own Perl modules
use eqcore;
# use eqtools;
# use eqdbtools;
# use eqdebug;
# use eqtemplate;
# use pago;
return 1;
--- snap ---
Here are the versions of the installed software:
# rpm -q apache
apache-1.3.23-142
# rpm -q mod_perl
mod_perl-1.26-347
# rpm -q perl
perl-5.6.1-159
(Perl 5.6.x is needed for some other modules which have nothing to do
with this shop.)
Thanks,
Jan
--
Jan Theofel Fon: +49 (7 11) 48 90 83 - 0
ETES - EDV-Systemhaus GbR Fax: +49 (7 11) 48 90 83 - 50
Libanonstrasse 58 A * D-70184 Stuttgart Web: http://www.etes.de
______________________________________
Inflex - eMail Scanning and Protection
Queries to: [EMAIL PROTECTED]