Why mod_perl it's not working - My Solution

Problems with the Windows version of XAMPP, questions, comments, and anything related.

Why mod_perl it's not working - My Solution

Postby ziorosanero » 27. July 2007 18:47

Let's say I load xampp in C:/server/xampp/
I download and install xampp-win32-perl-addon-5.8.8-2.2.4-installer.exe

I rename file under C:/server/xampp/apache/conf/extra/perl.conf.new in perl.conf

I run setup_xampp.bat and set option 1 - Configuration with MOD_PERL

But I get error on loading perl58.dll and server wont start.

I open C:/server/xampp/apache/conf/extra/perl.conf and I note that:

LoadFile "/xampp/perl/bin/perl58.dll"
LoadModule perl_module modules/mod_perl.so

PerlRequire "/xampp/apache/conf/extra/startup.pl"

#### Only for NT + w2k + XP Professional ####
#<Files *.pl>
#SetHandler perl-script
#PerlResponseHandler ModPerl::Registry
#Options +ExecCGI
#PerlOptions +ParseHeaders
#</Files>

#<Files ~ (\.asp)>
# SetHandler perl-script
# PerlHandler Apache::ASP
# PerlSetVar Global .
# PerlSetVar StateDir "/xampp/tmp"
#</Files>
###########################################

Alias /perl "/xampp/htdocs/modperl/"
<Directory "/xampp/htdocs/modperl/">
SetHandler perl-script
PerlResponseHandler ModPerl::Registry
Options +ExecCGI
PerlOptions +ParseHeaders
</Directory>

<Files *.pl>
SetHandler perl-script
PerlResponseHandler ModPerl::Registry
Options +ExecCGI
PerlOptions +ParseHeaders
</Files>

PerlModule Apache::ASP
Alias /asp "/xampp/htdocs/modperlasp/"
<Directory "/xampp/htdocs/modperlasp/">
SetHandler perl-script
PerlResponseHandler Apache::ASP
PerlSetVar Global .
PerlSetVar StateDir "/xampp/tmp"
</Directory>


I change like this and it's working and server is running.

LoadFile "C:/server/xampp/perl/bin/perl58.dll"
LoadModule perl_module modules/mod_perl.so

PerlRequire "C:/server/xampp/apache/conf/extra/startup.pl"

#### Only for NT + w2k + XP Professional ####
#<Files *.pl>
#SetHandler perl-script
#PerlResponseHandler ModPerl::Registry
#Options +ExecCGI
#PerlOptions +ParseHeaders
#</Files>

#<Files ~ (\.asp)>
# SetHandler perl-script
# PerlHandler Apache::ASP
# PerlSetVar Global .
# PerlSetVar StateDir "C:/server/xampp/tmp"
#</Files>
###########################################

Alias /perl "C:/server/xampp/htdocs/modperl/"
<Directory "C:/server/xampp/htdocs/modperl/">
SetHandler perl-script
PerlResponseHandler ModPerl::Registry
Options +ExecCGI
PerlOptions +ParseHeaders
</Directory>

<Files *.pl>
SetHandler perl-script
PerlResponseHandler ModPerl::Registry
Options +ExecCGI
PerlOptions +ParseHeaders
</Files>

PerlModule Apache::ASP
Alias /asp "C:/server/xampp/htdocs/modperlasp/"
<Directory "C:/server/xampp/htdocs/modperlasp/">
SetHandler perl-script
PerlResponseHandler Apache::ASP
PerlSetVar Global .
PerlSetVar StateDir "C:/server/xampp/tmp"
</Directory>
ziorosanero
 
Posts: 1
Joined: 27. July 2007 18:27

Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 54 guests