Thread mod_perl installation auf Windows XP (17 answers)
Opened by tomyg1 at 2012-11-30 13:01

GwenDragon
 2012-11-30 14:36
#163782 #163782
User since
2005-01-17
14533 Artikel
Admin1
[Homepage]
user image
Entweder du schreibst alles in die httpd.conf oder du bindest eine mod_perl.conf ein, in dem du
Include conf/mod_perl.conf ans Ende der httpd.conf einträgst.

Für mod_perl braucht du folgendes, wenn dein Apache unter C:\Programme\Apache2 liegt:

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
SetEnv PERL5LIB C:/strawberry/perl/lib;C:/strawberry/perl/site/lib;C:/strawberry/perl/vendor/lib

LoadFile C:/strawberry/perl/bin/perl516.dll
LoadFile C:/Programme/Apache2/bin/libapreq2.dll
LoadModule perl_module C:/Programme/Apache2/modules/mod_perl.so
LoadModule apreq_module C:/Programme/Apache2/modules/mod_apreq2.so

<IfModule perl_module>
PerlRequire C:/Programme/Apache2/conf/extra/startup_modperl2.pl

Alias /perl C:/Programme/Apache2/perl
<Location /perl>
SetHandler perl-script
PerlResponseHandler ModPerl::Registry
PerlOptions +ParseHeaders

Options +ExecCGI

Order Allow,Deny
Allow from all
</Location>

<Location /perl-status>
SetHandler perl-script
PerlHandler Apache2::Status

Order allow,deny
Allow from 10.0.0.
</Location>

</IfModule>


//EDIT: Dateiname
In der startup_modperl2.pl steht bei mir folgendes:
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
use Apache2::Status ();

use ModPerl::Util ();

use Apache2::RequestRec ();
use Apache2::RequestIO ();
use Apache2::RequestUtil ();
use Apache2::ServerRec ();
use Apache2::ServerUtil ();
use Apache2::Connection ();
use Apache2::Log ();
use Apache2::Const -compile => ':common';

use APR::Const -compile => ':common';
use APR::Table ();

use Apache2::compat ();
use ModPerl::Registry ();

use CGI ();
use DBI ();

#use Apache::AuthDBI;
#$Apache::AuthDBI::DEBUG = 2;

1;

Last edited: 2012-11-30 15:15:57 +0100 (CET)
die Drachin, Gwendolyn


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

View full thread mod_perl installation auf Windows XP