-------------8<---------- Start Bug Report ------------8<----------
1. Problem Description:
Running 'apachectl configtest' doesn't seem to run perl code in httpd.conf.
Perhaps I'm doing something wrong here, but according to the docs,
running 'apachectl configtest' should run any perl code in http.conf (or
included files) specified by PerlModule and/or PerlRequire.
This is using apache 2.0.49 and mod_perl 1.99_13 with perl 5.8.3 on OS X
10.3 (NOT using the default apache and perl that Apple supplies, these
were built as myself in a test directory).
For example, if I put the following at the end of an almost generic
httpd.conf (only host and port changed from the default install):
LoadModule perl_module modules/mod_perl.so
PerlModule Not::Here
Running 'apachectl start' fails as expected because Not::Here doesn't exist.
Running 'apachectl configtest' reports 'Syntax OK'.
If I create an actual file for Not::Here, but put invalid perl code in
it, I get similar results.
Did I miss a config step here or is this broken? A similar setup with
Apache 1.3.29 and mod_perl 1.29 works as expected.
Note that mod_perl in all other respects works fine in this same setup,
it is only the behavior of 'apachectl configtest' that seems odd.
2. Used Components and their Configuration:
*** mod_perl version 1.9913
*** using lib/Apache/BuildConfig.pm
*** Makefile.PL options:
MP_AP_PREFIX => /Users/jpw/web2/httpd
MP_COMPAT_1X => 1
MP_GENERATE_XS => 1
MP_LIBNAME => mod_perl
MP_USE_DSO => 1
MP_USE_STATIC => 1
*** /Users/jpw/web2/httpd/bin/httpd -V
Server version: Apache/2.0.49
Server built: Apr 27 2004 11:22:15
Server's Module Magic Number: 20020903:7
Architecture: 32-bit
Server compiled with....
-D APACHE_MPM_DIR="server/mpm/prefork"
-D APR_HAS_MMAP
-D APR_HAVE_IPV6 (IPv4-mapped addresses enabled)
-D APR_USE_POSIXSEM_SERIALIZE
-D APR_USE_PTHREAD_SERIALIZE
-D SINGLE_LISTEN_UNSERIALIZED_ACCEPT
-D APR_HAS_OTHER_CHILD
-D AP_HAVE_RELIABLE_PIPED_LOGS
-D HTTPD_ROOT="/Users/jpw/web2/httpd"
-D SUEXEC_BIN="/Users/jpw/web2/httpd/bin/suexec"
-D DEFAULT_PIDLOG="logs/httpd.pid"
-D DEFAULT_SCOREBOARD="logs/apache_runtime_status"
-D DEFAULT_LOCKFILE="logs/accept.lock"
-D DEFAULT_ERRORLOG="logs/error_log"
-D AP_TYPES_CONFIG_FILE="conf/mime.types"
-D SERVER_CONFIG_FILE="conf/httpd.conf"
*** /Users/jpw/web2/perl/bin/perl -V
Summary of my perl5 (revision 5.0 version 8 subversion 3) configuration:
Platform:
osname=darwin, osvers=7.3.0, archname=darwin-2level
uname='darwin gabriel.office.aol.com 7.3.0 darwin kernel version
7.3.0: fri mar 5 14:22:55 pst 2004;
root:xnuxnu-517.3.15.obj~4release_ppc power macintosh powerpc '
config_args='-Dprefix=/Users/jpw/web2/perl -de'
hint=recommended, useposix=true, d_sigaction=define
usethreads=undef use5005threads=undef useithreads=undef
usemultiplicity=undef
useperlio=define d_sfio=undef uselargefiles=define usesocks=undef
use64bitint=undef use64bitall=undef uselongdouble=undef
usemymalloc=n, bincompat5005=undef
Compiler:
cc='cc', ccflags ='-pipe -fno-common -DPERL_DARWIN -no-cpp-precomp
-fno-strict-aliasing -I/usr/local/include',
optimize='-Os',
cppflags='-no-cpp-precomp -pipe -fno-common -DPERL_DARWIN
-no-cpp-precomp -fno-strict-aliasing -I/usr/local/include'
ccversion='', gccversion='3.3 20030304 (Apple Computer, Inc. build
1495)', gccosandvers=''
intsize=4, longsize=4, ptrsize=4, doublesize=8, byteorder=4321
d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=8
ivtype='long', ivsize=4, nvtype='double', nvsize=8, Off_t='off_t',
lseeksize=8
alignbytes=8, prototype=define
Linker and Libraries:
ld='env MACOSX_DEPLOYMENT_TARGET=10.3 cc', ldflags =' -L/usr/local/lib'
libpth=/usr/local/lib /usr/lib
libs=-ldbm -ldl -lm -lc
perllibs=-ldl -lm -lc
libc=/usr/lib/libc.dylib, so=dylib, useshrplib=false, libperl=libperl.a
gnulibc_version=''
Dynamic Linking:
dlsrc=dl_dyld.xs, dlext=bundle, d_dlsymun=undef, ccdlflags=' '
cccdlflags=' ', lddlflags=' -bundle -undefined dynamic_lookup
-L/usr/local/lib'
Characteristics of this binary (from libperl):
Compile-time options: USE_LARGE_FILES
Built under darwin
Compiled at Apr 21 2004 18:36:56
%ENV:
PERL_LWP_USE_HTTP_10="1"
@INC:
/Users/jpw/web2/perl/lib/5.8.3/darwin-2level
/Users/jpw/web2/perl/lib/5.8.3
/Users/jpw/web2/perl/lib/site_perl/5.8.3/darwin-2level
/Users/jpw/web2/perl/lib/site_perl/5.8.3
/Users/jpw/web2/perl/lib/site_perl
.
*** Packages of interest status:
Apache::Request: -
CGI : 3.05
LWP : 5.79
mod_perl : 1.9913
3. This is the core dump trace: (if you get a core dump):
No core trace
This report was generated by t/REPORT on Tue Apr 27 15:28:57 2004 GMT.
-------------8<---------- End Bug Report --------------8<----------
--
Report problems: http://perl.apache.org/bugs/
Mail list info: http://perl.apache.org/maillist/modperl.html
List etiquette: http://perl.apache.org/maillist/email-etiquette.html