Thread XAMPP 1.5 und Mason: mod_perl Versionen inkompatibel? (8 answers)
Opened by Gast at 2006-05-09 15:30

GwenDragon
 2006-05-09 17:40
#47883 #47883
User since
2005-01-17
14554 Artikel
Admin1
[Homepage]
user image
Apache 2.0.55, mod_perl 2.02 und Mason 1.32 läuft bei mir wunderbar.

Du hast vielleicht vergessen, in deine mod_perl Konfiguration folgendes ein zu fügen:
# enable if the mod_perl 1.0 compatibility is needed
use Apache2::compat ();


Meine mod_perl Konfiguration ist so:
Code: (dl )
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
####
#
#  Konfiguration für mod_perl

PerlRequire conf/startup-mod_perl2.pl

PerlModule ModPerl::Registry

Alias /perl/ X:/usr/local/apache2/modperl/
<Location /perl>
     SetHandler perl-script
     PerlResponseHandler ModPerl::Registry
     PerlOptions +ParseHeaders
     PerlOptions -GlobalRequest
     Options +ExecCGI
</Location>
 
<Location /perl-status>
    SetHandler perl-script
    PerlHandler Apache2::Status
    
    Order deny,allow
    Deny from all
    Allow from 127.0.0.1
</Location>

#
#
####


Code: (dl )
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
#### startup.pl
##
##    StartUp file for mod_perl
##
##

use lib qw (.);

use strict;
 
# Make sure we are in a sane environment.
$ENV{MOD_PERL} or die "not running under mod_perl!";

# enable if the mod_perl 1.0 compatibility is needed
use Apache2::compat ();
 
# preload all mp2 modules
# use ModPerl::MethodLookup;
# ModPerl::MethodLookup::preload_all_modules();
 
use ModPerl::Util (); #for CORE::GLOBAL::exit
 
use Apache2::RequestRec ();
use Apache2::RequestIO ();
use Apache2::RequestUtil ();
 
use Apache2::ServerRec ();
use Apache2::ServerUtil ();
use Apache2::Connection ();
use Apache2::Log ();
 
use APR::Table ();
 
use ModPerl::Registry ();
 
use Apache2::Const -compile => ':common';
use APR::Const -compile => ':common';

# Load Perl modules of your choice here
# This code is interpreted *once* when the server starts
use LWP::UserAgent ();
use Apache::DBI ();
use Apache::Session ();
use DBI ();
 
# Tell me more about warnings
use Carp ();
$SIG{__WARN__} = \&Carp::cluck;
 
# Load CGI.pm and call its compile() method to precompile
# (but not to import) its autoloaded methods.
use CGI ();
CGI->compile(':all');
 
# Initialize the database connections for each child
#Apache::DBI->connect_on_init
# ("DBI:mysql:database=test;host=localhost",
#   "user","password",
#   {
#    PrintError => 1, # warn() on errors
#    RaiseError => 0, # don't die on error
#   AutoCommit => 1, # commit executes immediately
#   }
#  );
 
1;
\n\n

<!--EDIT|GwenDragon|1147182131-->
die Drachin, Gwendolyn


Unterschiedliche Perl-Versionen auf Windows (fast wie perlbrew) • Meine Perl-Artikel

View full thread XAMPP 1.5 und Mason: mod_perl Versionen inkompatibel?