Return-Path: Delivered-To: apmail-perl-modperl-archive@www.apache.org Received: (qmail 8316 invoked from network); 8 Mar 2009 21:11:46 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 8 Mar 2009 21:11:46 -0000 Received: (qmail 1641 invoked by uid 500); 8 Mar 2009 21:11:39 -0000 Delivered-To: apmail-perl-modperl-archive@perl.apache.org Received: (qmail 1620 invoked by uid 500); 8 Mar 2009 21:11:39 -0000 Mailing-List: contact modperl-help@perl.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list modperl@perl.apache.org Received: (qmail 1611 invoked by uid 99); 8 Mar 2009 21:11:39 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 08 Mar 2009 14:11:39 -0700 X-ASF-Spam-Status: No, hits=2.2 required=10.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of edward.bosco@gmail.com designates 209.85.217.175 as permitted sender) Received: from [209.85.217.175] (HELO mail-gx0-f175.google.com) (209.85.217.175) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 08 Mar 2009 21:11:32 +0000 Received: by gxk23 with SMTP id 23so1955453gxk.10 for ; Sun, 08 Mar 2009 14:11:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:date:message-id:subject :from:to:content-type; bh=8zPOubuoSoETsEtYRlv/4vOg55GJJA9QyAQ2GRY2Kz4=; b=VQd7bI41dUfNCeMHV0LArIjgSskaUFLGrGKS56GC5SHxdISFhFxo4Z+Hhr9xMKtrHh O/mXCOQApzqxxkF5if7AstGS35W+zRgS6EgFDzDn3sZR7cRz5TeMT3zkxZwrXSAfRENF joU4X00qxWpxH+4kXz1gtgi+U0ODGUpdyZXWc= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=VrOTty9PkDmL46Br9YqA5qeNc7oYMCbvSYZmx/z5fKv6J273uOxEDyRYvJsFa0MSKj RqK7KoAwEOiqlTDCvVbOYsco7mcCUwWApm8UcyX97srNqNiMTcF/ooyWODGYKvIIqXE+ ameR8SAGKIPc3es5XzPTBGxoRLPvay+XgWlwg= MIME-Version: 1.0 Received: by 10.90.53.5 with SMTP id b5mr985543aga.91.1236546671001; Sun, 08 Mar 2009 14:11:11 -0700 (PDT) Date: Sun, 8 Mar 2009 17:11:10 -0400 Message-ID: Subject: MP2 - Apache 2.2, virtual host, .PHP script does not run From: Edward Bosco To: modperl@perl.apache.org Content-Type: multipart/alternative; boundary=001636283b0a12c3300464a1f51e X-Virus-Checked: Checked by ClamAV on apache.org --001636283b0a12c3300464a1f51e Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit A file that works - store.php - containing html and php under the /webutils location - will not now render as a web page; the browser wants to download the file. Does mod_perl prevent the operation of a PHP script? Commenting out the Sethandler and PerlAuthzHandler lines permits normal operation. What I'm trying to do is via a cookie, control access to a web page. The access control works, I simply can't render / run the .php. Here's a portion of the virtual host; it's kinda garbaged up == alias /menu "C:/Program Files/Apache Software Foundation/Apache2.2/htdocs/menu" # O&M_Menu.HTML SetHandler modperl PerlAuthzHandler TESTApache2::LDAPAuthz Options Indexes execCGI AuthType Basic Require valid-user # Directory for webutils for PIM Options Indexes FollowSymLinks MultiViews Order allow,deny Allow from all alias /webutils "C:/PIM/webutils" # location for webutils for PIM SetHandler modperl PerlAuthzHandler TESTApache2::CookieAuthz Options Indexes execCGI # AuthType Basic Require valid-user allow from 192.168.10.10 satisfy any == Mime.types contain the php type I have installed: Apache/2.2.9 (win32) DAV/2 mod_ssl/2.2.9 OpenSSL/0.9.8h PHP/5.2.6 mod_perl/3.0.3 Perl/v5.8.9 Note that the version of mod_perl reported is 2.0.3; with Perl -Version, I get 2.0.4 ==== C:\Perl\site\bin>mp2bug -------------8<---------- Start Bug Report ------------8<---------- 1. Problem Description: [DESCRIBE THE PROBLEM HERE] 2. Used Components and their Configuration: *** mod_perl version 2.000004 *** using C:\Perl\site\lib\Apache2\BuildConfig.pm *** Makefile.PL options: MP_APR_LIB => aprext MP_AP_PREFIX => C:\Apache2.2 MP_COMPAT_1X => 1 MP_GENERATE_XS => 1 MP_LIBNAME => mod_perl MP_USE_DSO => 1 *** The httpd binary was not found *** (apr|apu)-config linking info (apr|apu)-config scripts were not found *** C:\Perl\bin\perl.exe -V Summary of my perl5 (revision 5 version 8 subversion 9) configuration: Platform: osname=MSWin32, osvers=5.00, archname=MSWin32-x86-multi-thread uname='' config_args='undef' hint=recommended, useposix=true, d_sigaction=undef usethreads=define use5005threads=undef useithreads=define usemultiplicity=define useperlio=define d_sfio=undef uselargefiles=define usesocks=undef use64bitint=undef use64bitall=undef uselongdouble=undef usemymalloc=n, bincompat5005=undef Compiler: cc='cl', ccflags ='-nologo -GF -W3 -MD -Zi -DNDEBUG -O1 -DWIN32 -D_CONSOLE -DNO_STRICT -DHAVE_DES_FCRYPT - DNO_HASH_SEED -DUSE_SITECUSTOMIZE -DPRIVLIB_LAST_IN_INC -DPERL_IMPLICIT_CONTEXT -DPERL_IMPLICIT_SYS -DUSE_PERL IO -DPERL_MSVCRT_READFIX', optimize='-MD -Zi -DNDEBUG -O1', cppflags='-DWIN32' ccversion='12.00.8804', gccversion='', gccosandvers='' intsize=4, longsize=4, ptrsize=4, doublesize=8, byteorder=1234 d_longlong=undef, longlongsize=8, d_longdbl=define, longdblsize=8 ivtype='long', ivsize=4, nvtype='double', nvsize=8, Off_t='__int64', lseeksize=8 alignbytes=8, prototype=define Linker and Libraries: ld='link', ldflags ='-nologo -nodefaultlib -debug -opt:ref,icf -libpath:"C:\Perl\lib\CORE" -machine:x86' libpth=\lib libs= oldnames.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib netapi32.lib uuid.lib ws2_32.lib mpr.lib winmm.lib version.lib odbc32.lib odbccp32.li b msvcrt.lib perllibs= oldnames.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32. lib ole32.lib oleaut32.lib netapi32.lib uuid.lib ws2_32.lib mpr.lib winmm.lib version.lib odbc32.lib odbccp3 2.lib msvcrt.lib libc=msvcrt.lib, so=dll, useshrplib=true, libperl=perl58.lib gnulibc_version='' Dynamic Linking: dlsrc=dl_win32.xs, dlext=dll, d_dlsymun=undef, ccdlflags=' ' cccdlflags=' ', lddlflags='-dll -nologo -nodefaultlib -debug -opt:ref,icf -libpath:"C:\Perl\lib\CORE" -m achine:x86' Characteristics of this binary (from libperl): Compile-time options: MULTIPLICITY PERL_IMPLICIT_CONTEXT PERL_IMPLICIT_SYS PERL_MALLOC_WRAP PL_OP_SLAB_ALLOC USE_FAST_STDIO USE_ITHREADS USE_LARGE_FILES USE_PERLIO USE_SITECUSTOMIZE Locally applied patches: ActivePerl Build 825 [288577] Iin_load_module moved for compatibility with build 806 Less verbose ExtUtils::Install and Pod::Find Rearrange @INC so that 'site' is searched before 'perl' Partly reverted 24733 to preserve binary compatibility 31188 Problem killing a pseudo-forked child on Win32 29732 ANSIfy the PATH environment variable on Windows 27527,29868 win32_async_check() can loop indefinitely 26379 Fix alarm() for Windows 2003 Built under MSWin32 Compiled at Dec 14 2008 21:07:41 %ENV: PERL_LWP_USE_HTTP_10="1" @INC: C:/Perl/site/lib C:/Perl/lib . *** Packages of interest status: Apache2 : - Apache2::Request : - CGI : - ExtUtils::MakeMaker: - LWP : - mod_perl : - mod_perl2 : - 3. This is the core dump trace: (if you get a core dump): [CORE TRACE COMES HERE] This report was generated by mp2bug on Sun Mar 8 20:40:14 2009 GMT. -------------8<---------- End Bug Report --------------8<---------- Note: Complete the rest of the details and post this bug report to modperl perl.apache.org. To subscribe to the list send an empty email to modperl-subscribe@perl.apache.org. --001636283b0a12c3300464a1f51e Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
=A0
A file that works - store.php - containing html and php under the /web= utils location - will not now render as a web page; the browser wants to do= wnload the file.
Does mod_perl prevent the operation of a PHP script?
=A0
Commenting out the Sethandler and PerlAuthzHandler lines permits norma= l operation. What I'm trying to do is via a cookie, control access to a= web page.
The access control works, I simply can't render / run the .php.
=A0
Here's a portion of the virtual host; it's kinda garbaged up
=A0
=3D=3D
alias /menu "C:/Program Files/Apache Software Foundation/Apache2.= 2/htdocs/menu"
=A0
# O&M_Menu.HTML
<Location /menu>
=A0=A0=A0 SetHandler = modperl=A0
=A0=A0=A0 PerlAuthzHandler TESTApache2::LDAPAuthz
=A0=A0= =A0 Options Indexes execCGI
=A0=A0=A0 AuthType Basic
=A0=A0=A0 Require valid-user
</Locat= ion>

# Directory for webutils for PIM
<Directory "C:/PIM/web= utils">
=A0=A0=A0 Options Indexes FollowSymLinks MultiViews
= =A0=A0=A0 Order allow,deny
=A0=A0=A0 Allow from all
</Directory>= ;
=A0
alias /webutils "C:/PIM/webutils"
=A0
# location for webutils for PIM
<Location /webutils>
=A0= =A0=A0 SetHandler modperl=A0
=A0=A0=A0 PerlAuthzHandler TESTApache2::Coo= kieAuthz
=A0=A0=A0 Options Indexes execCGI
#=A0=A0=A0 AuthType Basic<= br>=A0=A0=A0 Require valid-user
allow from 192.168.10.10
satisfy any
</Location>
=3D=3D
=A0
Mime.types contain the php type
=A0
I have installed:
Apache/2.2.9 (win32) DAV/2 mod_ssl/2.2.9 OpenSSL/0.9.8h PHP/5.2.6 mod_= perl/3.0.3 Perl/v5.8.9
=A0
Note that the version of mod_perl reported is 2.0.3; with Perl -Versio= n,=A0I get 2.0.4
=A0
=3D=3D=3D=3D
=A0
C:\Perl\site\bin>mp2bug
-------------8<---------- Start Bug R= eport ------------8<----------
1. Problem Description:
=A0 [DESCRIBE THE PROBLEM HERE]
2. Used Components and their Configuration:
*** mod_perl version 2.000004
*** using C:\Perl\site\lib\Apache2\BuildConfig.pm
*** Makefile.PL options:
=A0 MP_APR_LIB=A0=A0=A0=A0 =3D> aprext<= br>=A0 MP_AP_PREFIX=A0=A0 =3D> C:\Apache2.2
=A0 MP_COMPAT_1X=A0=A0 = =3D> 1
=A0 MP_GENERATE_XS =3D> 1
=A0 MP_LIBNAME=A0=A0=A0=A0 =3D= > mod_perl
=A0 MP_USE_DSO=A0=A0=A0=A0 =3D> 1

*** The httpd binary was not found

*** (apr|apu)-config linking info
(apr|apu)-config scripts were not found
=A0
*** C:\Perl\bin\perl.exe -V
Summary of my perl5 (revision 5 version= 8 subversion 9) configuration:
=A0 Platform:
=A0=A0=A0 osname=3DMSWi= n32, osvers=3D5.00, archname=3DMSWin32-x86-multi-thread
=A0=A0=A0 uname= =3D''
=A0=A0=A0 config_args=3D'undef'
=A0=A0=A0 hint=3Drecommended, useposix=3Dtrue, d_sigaction=3Dundef
=A0= =A0=A0 usethreads=3Ddefine use5005threads=3Dundef useithreads=3Ddefine usem= ultiplicity=3Ddefine
=A0=A0=A0 useperlio=3Ddefine d_sfio=3Dundef uselarg= efiles=3Ddefine usesocks=3Dundef
=A0=A0=A0 use64bitint=3Dundef use64bita= ll=3Dundef uselongdouble=3Dundef
=A0=A0=A0 usemymalloc=3Dn, bincompat5005=3Dundef
=A0 Compiler:
=A0=A0= =A0 cc=3D'cl', ccflags =3D'-nologo -GF -W3 -MD -Zi -DNDEBUG -O1= -DWIN32 -D_CONSOLE -DNO_STRICT -DHAVE_DES_FCRYPT -
DNO_HASH_SEED -DUSE_= SITECUSTOMIZE -DPRIVLIB_LAST_IN_INC -DPERL_IMPLICIT_CONTEXT -DPERL_IMPLICIT= _SYS -DUSE_PERL
IO -DPERL_MSVCRT_READFIX',
=A0=A0=A0 optimize=3D'-MD -Zi -DNDEBU= G -O1',
=A0=A0=A0 cppflags=3D'-DWIN32'
=A0=A0=A0 ccversio= n=3D'12.00.8804', gccversion=3D'', gccosandvers=3D''= ;
=A0=A0=A0 intsize=3D4, longsize=3D4, ptrsize=3D4, doublesize=3D8, byte= order=3D1234
=A0=A0=A0 d_longlong=3Dundef, longlongsize=3D8, d_longdbl=3Ddefine, longdbl= size=3D8
=A0=A0=A0 ivtype=3D'long', ivsize=3D4, nvtype=3D'do= uble', nvsize=3D8, Off_t=3D'__int64', lseeksize=3D8
=A0=A0= =A0 alignbytes=3D8, prototype=3Ddefine
=A0 Linker and Libraries:
=A0=A0=A0 ld=3D'link', ldflags =3D'= ;-nologo -nodefaultlib -debug -opt:ref,icf=A0 -libpath:"C:\Perl\lib\CO= RE"=A0 -machine:x86'
=A0=A0=A0 libpth=3D\lib
=A0=A0=A0 libs=3D=A0 oldnames.lib kernel32.= lib user32.lib gdi32.lib winspool.lib=A0 comdlg32.lib advapi32.lib shell32.= lib
ole32.lib oleaut32.lib=A0 netapi32.lib uuid.lib ws2_32.lib mpr.lib w= inmm.lib=A0 version.lib odbc32.lib odbccp32.li
b msvcrt.lib
=A0=A0=A0 perllibs=3D=A0 oldnames.lib kernel32.lib user32.l= ib gdi32.lib winspool.lib=A0 comdlg32.lib advapi32.lib shell32.
lib ole3= 2.lib oleaut32.lib=A0 netapi32.lib uuid.lib ws2_32.lib mpr.lib winmm.lib=A0= version.lib odbc32.lib odbccp3
2.lib msvcrt.lib
=A0=A0=A0 libc=3Dmsvcrt.lib, so=3Ddll, useshrplib=3Dtru= e, libperl=3Dperl58.lib
=A0=A0=A0 gnulibc_version=3D''
=A0 Dy= namic Linking:
=A0=A0=A0 dlsrc=3Ddl_win32.xs, dlext=3Ddll, d_dlsymun=3Du= ndef, ccdlflags=3D' '
=A0=A0=A0 cccdlflags=3D' ', lddlfl= ags=3D'-dll -nologo -nodefaultlib -debug -opt:ref,icf=A0 -libpath:"= ;C:\Perl\lib\CORE"=A0 -m
achine:x86'

Characteristics of this binary (from libperl):
=A0 Compile-time= options: MULTIPLICITY PERL_IMPLICIT_CONTEXT PERL_IMPLICIT_SYS
=A0=A0=A0= =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 PERL_MALLOC_WR= AP PL_OP_SLAB_ALLOC USE_FAST_STDIO
=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0= =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 USE_ITHREADS USE_LARGE_FILES USE_PERLIO =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 USE_S= ITECUSTOMIZE
=A0 Locally applied patches:
=A0=A0=A0=A0=A0=A0=A0 Activ= ePerl Build 825 [288577]
=A0=A0=A0=A0=A0=A0=A0 Iin_load_module moved for= compatibility with build 806
=A0=A0=A0=A0=A0=A0=A0 Less verbose ExtUtil= s::Install and Pod::Find
=A0=A0=A0=A0=A0=A0=A0 Rearrange @INC so that 'site' is searched bef= ore 'perl'
=A0=A0=A0=A0=A0=A0=A0 Partly reverted 24733 to preser= ve binary compatibility
=A0=A0=A0=A0=A0=A0=A0 31188 Problem killing a ps= eudo-forked child on Win32
=A0=A0=A0=A0=A0=A0=A0 29732 ANSIfy the PATH e= nvironment variable on Windows
=A0=A0=A0=A0=A0=A0=A0 27527,29868 win32_async_check() can loop indefinitely=
=A0=A0=A0=A0=A0=A0=A0 26379 Fix alarm() for Windows 2003
=A0 Built u= nder MSWin32
=A0 Compiled at Dec 14 2008 21:07:41
=A0 %ENV:
=A0=A0= =A0 PERL_LWP_USE_HTTP_10=3D"1"
=A0 @INC:
=A0=A0=A0 C:/Perl/site/lib
=A0=A0=A0 C:/Perl/lib
=A0=A0= =A0 .
*** Packages of interest status:
Apache2=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 : -
Apache2::Request=A0=A0= : -
CGI=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 : -
ExtUtils::M= akeMaker: -
LWP=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 : -
mod_= perl=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 : -
mod_perl2=A0=A0=A0=A0=A0=A0=A0=A0= =A0 : -

3. This is the core dump trace: (if you get a core dump):
=A0 [CORE TRACE COMES HERE]
This report was generated by mp2bug on Sun Mar=A0 8 20:40:14 2009 GMT.=
-------------8<---------- End Bug Report --------------8<-------= ---
Note: Complete the rest of the details and post this bug report to
= modperl <at> pe= rl.apache.org. To subscribe to the list send an empty
email to modperl-s= ubscribe@perl.apache.org.

=A0
--001636283b0a12c3300464a1f51e--