Installing mod_perl on Windows 7

"Desilets, Alain" <[email protected]>
Newsgroups gmane.comp.apache.mod-perl
Message-ID <[email protected]>
Hi folks,

This is my first post on this list.

I am trying to install mod_perl on Windows 7, and am running into some problems.

Here's what I did.

First, I ran the following commands to get the mod_perl package and install it:

----------------
ppm rep add http://cpan.uwinnipeg.ca/PPMPackages/12xx
ppm install mod_perl
----------------

Then I added the following lines at the start of my httpd.conf file:

----------------
LoadFile "C:/Perl/bin/perl512.dll"
LoadModule perl_module modules/mod_perl.so
----------------

But since then, Apache won't restart,  unless I comment out those two lines. To diagnose the problem, I ran the command:

----------------
httpd.exe -t -c httpd.conf
----------------

And it gives me the following error message:

----------------
httpd: Syntax error on line 29 of C:/wamp/bin/apache/Apache2.2.17/conf/httpd.conf: Cannot load C:/Perl/bin/perl512.dll into server: %1 is not a valid Win32 application.
----------------

The file C:/Perl/bin/perl512.dll does exist.

I am wondering if the problem is not due to a difference between 32 and 64 bits applications. I ran a small perl script which looks at the DOS headers of executables, to find the architecture that the executable was compiled for, and here's what it tells me:

httpd.exe: AMD64
perl512.dll: i386
mod_perl.so: i386

I would think that a 64 Apache is able to load a 32 bit DLL, no?

Does anyone have some ideas or suggestions?

Thx.

Alain Désilets



Alain Désilets
Agent de recherche | Research Officer
Institut de technologie de l'information | Institute for Information Technology Conseil national de recherches du Canada | National Research Council of Canada
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.