Re: install Apache::compat? (Was Can't load perl file)
Thanks, that was it... Stupid mistake, but there seems to be some conflicting docs out there. I'm trying to get a mod_perl1 module running on mod_perl2 and I seem to be having some difficulty. The logs are simply throwing "Can't load Perl file: c:/apache2/conf/ mod_perl.pl for server www.foo.com:80, exiting..." and it's making it very difficult to see exactly where things are dying. Is my lack of verbosity because I'm in windows? If I put PerlModule Apache::garbage in my httpd.conf I get can't load perl module apache::garbage for server www.foo.com:80 exiting... but if I put it in a startup script PerlRequire "C:/blah/startup.pl" I get "Can't load perl file: C:/blah startup.pl for server www.foo.com:80 exiting... basically i'm loading this module which uses a pm file and I'm getting no info on why things aren't working... Just that they aren't Sorry for the newbie question, everything i've found says that things should work if you include the compat option and there's not a lot to tell you what to do when it doesn't just work :) -Nick On Jun 13, 2005, at 12:34 PM, Steve Duran wrote: Try Apache2::compat -Original Message- From: Nick Pietraniec [mailto:[EMAIL PROTECTED] Sent: Monday, June 13, 2005 1:29 PM To: modperl@perl.apache.org Subject: install Apache::compat? (Was Can't load perl file) I think I've found the problem I was having... When I try to add PerlModule Apache2 PerlModule Apache::compat to my http.conf I get "Can't load perl module for Apache2 for server www.blah.com:80 exiting when I comment out the first line I get to my http.conf I get "Can't load perl module for Apache::compat for server www.blah.com:80 exiting Do I need to do something extra to get this compat module installed on my system? Everything I'm seeing it kind of giving it as a given that it's present. I've mentioned it before, but I'm trying to set up apache 2 (2.0.54) on Windows 2000 Server with SSL (from here -- currently working) http://smithii.com/? q=node/view/30 The latest version of ActivePerl (5.8.7.813) and... mod_perl, which I've installed via the "mpinstall" script here.. http://perl.apache.org/docs/2.0/os/win32/ install.html#PPM_Packages -Nick On Jun 10, 2005, at 12:38 AM, Tom Schindl wrote: -----BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Well without an error message and the at least the lines of code fail we cann't be much of help ;-) Tom Nick Pietraniec schrieb: | I had something like | | use Apache2 | use Apache2::compat (); | | before, but I pasted directly what was in the tutorial (below) and it | worked. | As long as I'm shooting out an email to the list, does anyone know | offhand exactly what options I need to put in there to run a script that | I'm moving from a apache1/mod_perl1 config? That's why I just had the | compat() option. I tried running it with the below options (thinking | that because compat was included that I'd be ok) but it failed. | | I assume that it depends on what I'm doing exactly in the old script, | but was wondering if anyone knew of anything special that I needed to do | offhand. I haven't done much research yet... | | My current .pl file (same as what's given on the net) | | 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 (); | 1; | | | On Jun 9, 2005, at 5:57 AM, Robert wrote: | |> "Nick Pietraniec" <[EMAIL PROTECTED]> wrote in message |> news:[EMAIL PROTECTED] |> |>> Turns out it was an error in the mod_perl.pl file |>> |>> I took "Can't load" to mean "Where's this file?" Where I should have |>> taken it as "There's an error in this file" |>> |> |> What was the problem? I have that error as well and I used the example |> from |> the mod_perl site itself. |> |> Robert |> |> | | -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.0 (GNU/Liux) Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org iD8DBQFCqUOFkVPeOFLgZFIRAhbDAJ41zN8Rl6SZHkK0BJyOnwHAnvaNQwCeIpWO 9Paxzt0Wx7T6tnMlYz967Ho= =JySO -END PGP SIGNATURE-
using apache2::compat question
The mod_perl1 module I have calls Apache::constants. This does not seem to be present on my server... After some digging I found that the mod_perl2 equivalent is Apache2::Const Do I need to somehow install these old mod_perl1 modules or do I need to convert my module over to mod_perl2?
install Apache::compat? (Was Can't load perl file)
I think I've found the problem I was having... When I try to add PerlModule Apache2 PerlModule Apache::compat to my http.conf I get "Can't load perl module for Apache2 for server www.blah.com:80 exiting when I comment out the first line I get to my http.conf I get "Can't load perl module for Apache::compat for server www.blah.com:80 exiting Do I need to do something extra to get this compat module installed on my system? Everything I'm seeing it kind of giving it as a given that it's present. I've mentioned it before, but I'm trying to set up apache 2 (2.0.54) on Windows 2000 Server with SSL (from here -- currently working) http://smithii.com/?q=node/view/30 The latest version of ActivePerl (5.8.7.813) and... mod_perl, which I've installed via the "mpinstall" script here.. http://perl.apache.org/docs/2.0/os/win32/install.html#PPM_Packages -Nick On Jun 10, 2005, at 12:38 AM, Tom Schindl wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Well without an error message and the at least the lines of code fail we cann't be much of help ;-) Tom Nick Pietraniec schrieb: | I had something like | | use Apache2 | use Apache2::compat (); | | before, but I pasted directly what was in the tutorial (below) and it | worked. | As long as I'm shooting out an email to the list, does anyone know | offhand exactly what options I need to put in there to run a script that | I'm moving from a apache1/mod_perl1 config? That's why I just had the | compat() option. I tried running it with the below options (thinking | that because compat was included that I'd be ok) but it failed. | | I assume that it depends on what I'm doing exactly in the old script, | but was wondering if anyone knew of anything special that I needed to do | offhand. I haven't done much research yet... | | My current .pl file (same as what's given on the net) | | 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 (); | 1; | | | On Jun 9, 2005, at 5:57 AM, Robert wrote: | |> "Nick Pietraniec" <[EMAIL PROTECTED]> wrote in message |> news:[EMAIL PROTECTED] |> |>> Turns out it was an error in the mod_perl.pl file |>> |>> I took "Can't load" to mean "Where's this file?" Where I should have |>> taken it as "There's an error in this file" |>> |> |> What was the problem? I have that error as well and I used the example |> from |> the mod_perl site itself. |> |> Robert |> |> | | -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.0 (GNU/Linux) Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org iD8DBQFCqUOFkVPeOFLgZFIRAhbDAJ41zN8Rl6SZHkK0BJyOnwHAnvaNQwCeIpWO 9Paxzt0Wx7T6tnMlYz967Ho= =JySO -END PGP SIGNATURE-
Re: [ANNOUNCE] Apache::AuthTicket 0.40
I think this module is exactly what I'm looking for... Is there anywhere that I can find more details on how it works and how to use it?
Re: Can't load perl file
Yea, I've got to give it a shot next week. I'm still not very familiar with the whole mod_perl universe. The script does simply the same thing (can't load) is there any way to increase the verbosity? Error log entries seem pretty vague even on debug -Nick On Jun 10, 2005, at 12:38 AM, Tom Schindl wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Well without an error message and the at least the lines of code fail we cann't be much of help ;-) Tom Nick Pietraniec schrieb: | I had something like | | use Apache2 | use Apache2::compat (); | | before, but I pasted directly what was in the tutorial (below) and it | worked. | As long as I'm shooting out an email to the list, does anyone know | offhand exactly what options I need to put in there to run a script that | I'm moving from a apache1/mod_perl1 config? That's why I just had the | compat() option. I tried running it with the below options (thinking | that because compat was included that I'd be ok) but it failed. | | I assume that it depends on what I'm doing exactly in the old script, | but was wondering if anyone knew of anything special that I needed to do | offhand. I haven't done much research yet... | | My current .pl file (same as what's given on the net) | | 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 (); | 1; | | | On Jun 9, 2005, at 5:57 AM, Robert wrote: | |> "Nick Pietraniec" <[EMAIL PROTECTED]> wrote in message |> news:[EMAIL PROTECTED] |> |>> Turns out it was an error in the mod_perl.pl file |>> |>> I took "Can't load" to mean "Where's this file?" Where I should have |>> taken it as "There's an error in this file" |>> |> |> What was the problem? I have that error as well and I used the example |> from |> the mod_perl site itself. |> |> Robert |> |> | | -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.0 (GNU/Linux) Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org iD8DBQFCqUOFkVPeOFLgZFIRAhbDAJ41zN8Rl6SZHkK0BJyOnwHAnvaNQwCeIpWO 9Paxzt0Wx7T6tnMlYz967Ho= =JySO -END PGP SIGNATURE-
Re: Can't load perl file
I had something like use Apache2 use Apache2::compat (); before, but I pasted directly what was in the tutorial (below) and it worked. As long as I'm shooting out an email to the list, does anyone know offhand exactly what options I need to put in there to run a script that I'm moving from a apache1/mod_perl1 config? That's why I just had the compat() option. I tried running it with the below options (thinking that because compat was included that I'd be ok) but it failed. I assume that it depends on what I'm doing exactly in the old script, but was wondering if anyone knew of anything special that I needed to do offhand. I haven't done much research yet... My current .pl file (same as what's given on the net) 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 (); 1; On Jun 9, 2005, at 5:57 AM, Robert wrote: "Nick Pietraniec" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] Turns out it was an error in the mod_perl.pl file I took "Can't load" to mean "Where's this file?" Where I should have taken it as "There's an error in this file" What was the problem? I have that error as well and I used the example from the mod_perl site itself. Robert
Re: Can't load perl file
Turns out it was an error in the mod_perl.pl file I took "Can't load" to mean "Where's this file?" Where I should have taken it as "There's an error in this file" On Jun 8, 2005, at 3:00 PM, Nick Pietraniec wrote: Not a bad idea, but I just gave it a shot and no luck. On Jun 8, 2005, at 2:56 PM, Tom Schindl wrote: -----BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Nick Pietraniec schrieb: [...] | | | LoadFile "C:/Perl/bin/perl58.dll" ~ ^^^ | LoadModule perl_module modules/mod_perl.so | | PerlRequire "c:/Apache2/conf/mod_perl.pl" ~ ^^^ | | --- Does the lower letter of c: matter. I'm not using win32 which is normally case in sensitive but who knows ... -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.0 (GNU/Linux) Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org iD8DBQFCp2mqkVPeOFLgZFIRAnj8AJ47iAyQq9MWb2YY/DTrbphWfaGdnACcDrmG MTqOIGg4N7AeCDRxHj9G8d0= =OlQ+ -END PGP SIGNATURE-
Re: Can't load perl file
Not a bad idea, but I just gave it a shot and no luck. On Jun 8, 2005, at 2:56 PM, Tom Schindl wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Nick Pietraniec schrieb: [...] | | | LoadFile "C:/Perl/bin/perl58.dll" ~ ^^^ | LoadModule perl_module modules/mod_perl.so | | PerlRequire "c:/Apache2/conf/mod_perl.pl" ~ ^^^ | | --- Does the lower letter of c: matter. I'm not using win32 which is normally case in sensitive but who knows ... -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.0 (GNU/Linux) Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org iD8DBQFCp2mqkVPeOFLgZFIRAnj8AJ47iAyQq9MWb2YY/DTrbphWfaGdnACcDrmG MTqOIGg4N7AeCDRxHj9G8d0= =OlQ+ -END PGP SIGNATURE-
Can't load perl file
Hello everyone, Hoping someone out has experienced this before. I've poured through archives and faqs but haven't seen any info on it. I just tried everything below on a clean server because I thought I messed something up during an upgrade, but I'm getting this on more than one computer. I'm trying to set up apache 2 (2.0.54) on Windows 2000 Server with SSL (from here -- currently working) http://smithii.com/?q=node/view/30 The latest version of ActivePerl (5.8.7.813) and... mod_perl, which I've installed via the "mpinstall" script here.. http://perl.apache.org/docs/2.0/os/win32/install.html#PPM_Packages I've got LoadFile "C:/Perl/bin/perl58.dll" LoadModule perl_module modules/mod_perl.so PerlRequire "c:/Apache2/conf/mod_perl.pl" --- Directly below all the other "LoadModule" directives in httpd.conf and when I try to start Apache I get [Wed Jun 08 14:06:16 2005] [error] Can't load Perl file: c:/Apache2/conf/mod_perl.pl for server www.mysite.com:80, exiting... (Yes the file is there) but - if I instead put in -- PerlSwitches -IC:/Perl/site/lib/bundle LoadFile "C:/Perl/bin/perl58.dll" LoadModule perl_module modules/mod_perl.so Perlmodule Apache2 PerlModule Apache2::compat Below all the other "LoadModule" directives, it seems to start fine. I'm no perl guru - I won't pretend to know how to properly set this up Does anyone out there see what I'm missing or doing wrong? Thanks in advance... -Nick