You are viewing a plain text version of this content. The canonical link for it is here.
Posted to modperl@perl.apache.org by Bennett Haselton <be...@peacefire.org> on 2005/03/29 11:19:00 UTC
installing mod_perl.so with OpenSA webserver
I am running the OpenSA beta 2.0.2 webserver (based off of Apache 2.0.44)
and ActivePerl 5.8.3 build 809. I'm trying to follow the instructions for
installing mod_perl.so at:
http://perl.apache.org/docs/2.0/os/win32/install.html#PPM_Packages
The only red flag is that the instructions say that mod_perl.so 2.0
requires version 2.0.47 or greater of Apache and OpenSA 2.0.2 only comes
with 2.0.44. Could that be the cause of the problem I'm experiencing,
described below?
I ran
ppm install http://theoryx5.uwinnipeg.ca/ppms/mod_perl.ppd
as instructed, and saw
"Install 'mod_perl' version 2.0.0-RC4 in ActivePerl 5.8.3.809"
followed by a list of files being installed.
And I supplied the proper location where mod_perl.so should be copied:
>>>
Fetching http://theoryx5.uwinnipeg.ca/ppms/x86/mod_perl.so ... done!
Where should mod_perl.so be placed? [D:/Apache2/modules]
C:\OpenSA\Apache2\modules
mod_perl.so has been successfully installed to C:/OpenSA/Apache2/modules.
To enable mod_perl, put in the directives
LoadFile "C:/Path/to/Perl/bin/perl58.dll"
LoadModule perl_module modules/mod_perl.so
in httpd.conf, and also either use a directive
'PerlModule Apache2' or add 'use Apache2 ();' in
a startup script. For more information, visit
http://perl.apache.org/
>>>
So, I added the lines
LoadFile "C:/Perl/bin/perl58.dll"
LoadModule perl_module modules/mod_perl.so
to httpd.conf. From the output above, I wasn't sure if I was supposed to
add the line "PerlModule Apache2" to httpd.conf so I put it in as well.
Now when I try starting OpenSA, I get the error:
apache -k start
Syntax error on line 182 of C:/OpenSA/Apache2/conf/httpd.conf:
Cannot load C:/OpenSA/Apache2/modules/mod_perl.so into server: The
specified procedure could not be found.
(Note, "specified procedure could not be found", not "specified module
could not be found" -- the latter is the error that you get if mod_perl.so
cannot be found, but I've verified that mod_perl.so is at the correct path
location.)
I tried Googling that error but could only find a few messages with a list
of things to check such as making sure that mod_perl.so is in the right
place.
Things I have already checked so I know they're not causing the problem:
- my httpd.conf already contains directives such as:
LoadModule userdir_module modules/mod_userdir.so
corresponding to the file mod_userdir.so in the modules directory, and that
doesn't cause an error, so module loading in general is not broken
- the file C:/Perl/bin/perl58.dll definitely does exist at the specified
path
- the file C:/OpenSA/Apache2/modules/mod_perl.so also definitely does exist
at the specified path
Any other ideas for how I could fix this?
Thanks a bunch! :)
-Bennett
bennett@peacefire.org http://www.peacefire.org
(425) 497 9002
Re: installing mod_perl.so with OpenSA webserver
Posted by Bennett Haselton <be...@peacefire.org>.
At 08:48 PM 3/29/2005 -0600, Randy Kobes wrote:
> > I've been maintaining a set of instructions for people to
> > download and install some components to quickly set up an
> > SSL-enabled Web server:
> >
> http://www.peacefire.org/circumventor/simple-circumventor-instructions.html
> > Unfortunately OpenSA is the only free Web server I know of
> > that supports SSL right out of the box. (Apache requires
> > you to download and install separate modules, but the
> > instructions I'm writing are aimed at novice users and
> > it's not realistic to expect most of them to download an
> > Apache module and install it themselves.)
>
>There are some Win32 all-in-one binary packages, accessible
>through
> http://www.apache.org/dyn/closer.cgi/perl/win32-bin/
>that contain Perl/Apache/mod_perl/mod_ssl.
Ron Savage pointed out these instructions for installing Perl and Apache
from those packages:
http://savage.net.au/Perl/html/upgrade-perl-apache.html
Unfortunately I think the long list of steps is still too intimidating for
most of the intermediate users that our instructions are targeted at. Most
of them probably wouldn't know how to set environment variables, for
example. OpenSA and ActivePerl, which we've been using, install with just
a few clicks. I'll be looking for a Perl/Apache combination that is
super-easy to install and can be used with mod_perl; if anyone knows of
one, please let me know... Thanks!
-Bennett
Re: installing mod_perl.so with OpenSA webserver
Posted by Randy Kobes <ra...@theoryx5.uwinnipeg.ca>.
On Tue, 29 Mar 2005, Bennett Haselton wrote:
> At 08:47 AM 3/29/2005 -0600, Randy Kobes wrote:
[ ... ]
> >That error does generally arise from an incompatibility
> >between the version of Apache mod_perl was compiled against
> >(in this case, 2.0.53) and the version of Apache you're
> >running (2.0.44). To use mod_perl, you'll have to upgrade
> >Apache (http://httpd.apache.org/ contains links to Win32
> >Apache binaries). You may want to consider doing this
> >anyway, as 2.0.44 is a relatively old version, and there's
> >been a number of security and bug fixes since then.
>
> OK, thanks. That's what I was afraid of.
>
> I've been maintaining a set of instructions for people to
> download and install some components to quickly set up an
> SSL-enabled Web server:
> http://www.peacefire.org/circumventor/simple-circumventor-instructions.html
> Unfortunately OpenSA is the only free Web server I know of
> that supports SSL right out of the box. (Apache requires
> you to download and install separate modules, but the
> instructions I'm writing are aimed at novice users and
> it's not realistic to expect most of them to download an
> Apache module and install it themselves.)
There are some Win32 all-in-one binary packages, accessible
through
http://www.apache.org/dyn/closer.cgi/perl/win32-bin/
that contain Perl/Apache/mod_perl/mod_ssl.
--
best regards,
randy
Re: installing mod_perl.so with OpenSA webserver
Posted by Bennett Haselton <be...@peacefire.org>.
At 08:47 AM 3/29/2005 -0600, Randy Kobes wrote:
>On Tue, 29 Mar 2005, Bennett Haselton wrote:
>
> > I am running the OpenSA beta 2.0.2 webserver (based off of
> > Apache 2.0.44) and ActivePerl 5.8.3 build 809. I'm
> > trying to follow the instructions for installing
> > mod_perl.so at:
> > http://perl.apache.org/docs/2.0/os/win32/install.html#PPM_Packages
> >
> > The only red flag is that the instructions say that
> > mod_perl.so 2.0 requires version 2.0.47 or greater of
> > Apache and OpenSA 2.0.2 only comes with 2.0.44. Could
> > that be the cause of the problem I'm experiencing,
> > described below?
> >
> > I ran
> > ppm install http://theoryx5.uwinnipeg.ca/ppms/mod_perl.ppd
> > as instructed, and saw
> > "Install 'mod_perl' version 2.0.0-RC4 in ActivePerl 5.8.3.809"
> > followed by a list of files being installed.
>[ ... ]
> > Now when I try starting OpenSA, I get the error:
> >
> > apache -k start
> > Syntax error on line 182 of C:/OpenSA/Apache2/conf/httpd.conf:
> > Cannot load C:/OpenSA/Apache2/modules/mod_perl.so into server: The
> > specified procedure could not be found.
>
>That error does generally arise from an incompatibility
>between the version of Apache mod_perl was compiled against
>(in this case, 2.0.53) and the version of Apache you're
>running (2.0.44). To use mod_perl, you'll have to upgrade
>Apache (http://httpd.apache.org/ contains links to Win32
>Apache binaries). You may want to consider doing this
>anyway, as 2.0.44 is a relatively old version, and there's
>been a number of security and bug fixes since then.
OK, thanks. That's what I was afraid of.
I've been maintaining a set of instructions for people to download and
install some components to quickly set up an SSL-enabled Web server:
http://www.peacefire.org/circumventor/simple-circumventor-instructions.html
Unfortunately OpenSA is the only free Web server I know of that supports
SSL right out of the box. (Apache requires you to download and install
separate modules, but the instructions I'm writing are aimed at novice
users and it's not realistic to expect most of them to download an Apache
module and install it themselves.)
-Bennett
bennett@peacefire.org http://www.peacefire.org
(425) 497 9002
Re: installing mod_perl.so with OpenSA webserver
Posted by Randy Kobes <ra...@theoryx5.uwinnipeg.ca>.
On Tue, 29 Mar 2005, Bennett Haselton wrote:
> I am running the OpenSA beta 2.0.2 webserver (based off of
> Apache 2.0.44) and ActivePerl 5.8.3 build 809. I'm
> trying to follow the instructions for installing
> mod_perl.so at:
> http://perl.apache.org/docs/2.0/os/win32/install.html#PPM_Packages
>
> The only red flag is that the instructions say that
> mod_perl.so 2.0 requires version 2.0.47 or greater of
> Apache and OpenSA 2.0.2 only comes with 2.0.44. Could
> that be the cause of the problem I'm experiencing,
> described below?
>
> I ran
> ppm install http://theoryx5.uwinnipeg.ca/ppms/mod_perl.ppd
> as instructed, and saw
> "Install 'mod_perl' version 2.0.0-RC4 in ActivePerl 5.8.3.809"
> followed by a list of files being installed.
[ ... ]
> Now when I try starting OpenSA, I get the error:
>
> apache -k start
> Syntax error on line 182 of C:/OpenSA/Apache2/conf/httpd.conf:
> Cannot load C:/OpenSA/Apache2/modules/mod_perl.so into server: The
> specified procedure could not be found.
That error does generally arise from an incompatibility
between the version of Apache mod_perl was compiled against
(in this case, 2.0.53) and the version of Apache you're
running (2.0.44). To use mod_perl, you'll have to upgrade
Apache (http://httpd.apache.org/ contains links to Win32
Apache binaries). You may want to consider doing this
anyway, as 2.0.44 is a relatively old version, and there's
been a number of security and bug fixes since then.
--
best regards,
randy kobes