perl-modperl mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Edward Bosco <edward.bo...@gmail.com>
Subject MP2 - Apache 2.2, virtual host, .PHP script does not run
Date Sun, 08 Mar 2009 21:11:10 GMT
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
<Location /menu>
    SetHandler modperl
    PerlAuthzHandler TESTApache2::LDAPAuthz
    Options Indexes execCGI
    AuthType Basic
    Require valid-user
</Location>

# Directory for webutils for PIM
<Directory "C:/PIM/webutils">
    Options Indexes FollowSymLinks MultiViews
    Order allow,deny
    Allow from all
</Directory>

alias /webutils "C:/PIM/webutils"

# location for webutils for PIM
<Location /webutils>
    SetHandler modperl
    PerlAuthzHandler TESTApache2::CookieAuthz
    Options Indexes execCGI
#    AuthType Basic
    Require valid-user
allow from 192.168.10.10
satisfy any
</Location>
==

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 <at> perl.apache.org. To subscribe to the list send an empty
email to modperl-subscribe@perl.apache.org.

Mime
View raw message