PerlRequire -mod_perl-2 - Apache 2.0.35
Hello Friends, I am a newbie and had developed a proof-of-concept application on Apache 1.3.23/Mod_Perl-1.26-dev. We are researching into moving away from ASP/IIS Webapplications to Apache/Mod_Perl. I am stuck with the latest Apache 2.0.35 with the following problems. Today I installed Apache 2.0.35 with Mod_Perl-2. However, I am not able to use PerlRequire Statement in the httpd.conf. Whenever I am trying to restart my Windows Services, it is always giving me an error message which does not allow me to start my Windows Services. While I am able to execute my CGI Scripts in Apache 1.3.23/mod_perl-1.26, I am always getting these errors in 2.0.35/mod_perl-2 [Tue Apr 16 13:48:37 2002] [error] failed to resolve handler `Apache::Registry' [Tue Apr 16 13:51:44 2002] [error] failed to resolve handler `Apache::Registry' [Tue Apr 16 13:51:46 2002] [error] failed to resolve handler `Apache::Registry' Whenever I try to use a PerlRequire Statement in httpd.conf, it just does not allow Apache2 to start. I am running ActivePerl 631 on Windows 2000 with Apache 1.3.23/mod_perl-1.26_01-dev as well as Apache 2.0.35/mod_perl-1.99_02-dev Any help and insights would be deeply appreciated. Thanks, Rex __ Your favorite stores, helpful shopping tools and great gift ideas. Experience the convenience of buying online with Shop@Netscape! http://shopnow.netscape.com/ Get your own FREE, personal Netscape Mail account today at http://webmail.netscape.com/
Re: PerlRequire -mod_perl-2 - Apache 2.0.35
[EMAIL PROTECTED] wrote: I am a newbie and had developed a proof-of-concept application on Apache 1.3.23/Mod_Perl-1.26-dev. We are researching into moving away from ASP/IIS Webapplications to Apache/Mod_Perl. I am stuck with the latest Apache 2.0.35 with the following problems. Do you really need to use Apache 2 and mod_perl 2? Why not use the proven 1.x series? It's still pretty early to be using the new stuff. - Perrin
Re: PerlRequire -mod_perl-2 - Apache 2.0.35
On Tue, 16 Apr 2002, Perrin Harkins wrote: [EMAIL PROTECTED] wrote: I am a newbie and had developed a proof-of-concept application on Apache 1.3.23/Mod_Perl-1.26-dev. We are researching into moving away from ASP/IIS Webapplications to Apache/Mod_Perl. I am stuck with the latest Apache 2.0.35 with the following problems. Do you really need to use Apache 2 and mod_perl 2? Why not use the proven 1.x series? It's still pretty early to be using the new stuff. If he's on Windows, he'd probably want to use Apache 2 for performance reasons. -dave /*== www.urth.org we await the New Sun ==*/
RE: Re: PerlRequire -mod_perl-2 - Apache 2.0.35
Both the suppositions are right! To have the proof-of-concept working in Apache, I do have it working 100% under Apache 1.3.23/mod_perl-1.26. I had performed benchmark studies under IIS/ASP, Tomcat/JSP and Apache/MOD_PERL and have seen the best performance under Apache 1.3.23/Mod_Perl! However to convince my bosses, it would be lot nicer to impress upon them with Apache 2.0.35/mod_perl-2 as it seems Apache 2.0.35 is supposed to be the best in terms of performance. That greediness is what is pushing me to make it work under Apache2/mod_perl-2. Well, if things are in nascent phase I guess I should be content with what I have in Apache 1.3.23. Am wondering how AP-631/PPM/Apache2 users have not got into problems as I am seeing on W2K. Hoping for a possible fix soon! Thanks, Rex Dave Rolsky [EMAIL PROTECTED] wrote: On Tue, 16 Apr 2002, Perrin Harkins wrote: [EMAIL PROTECTED] wrote: I am a newbie and had developed a proof-of-concept application on Apache 1.3.23/Mod_Perl-1.26-dev. We are researching into moving away from ASP/IIS Webapplications to Apache/Mod_Perl. I am stuck with the latest Apache 2.0.35 with the following problems. Do you really need to use Apache 2 and mod_perl 2? Why not use the proven 1.x series? It's still pretty early to be using the new stuff. If he's on Windows, he'd probably want to use Apache 2 for performance reasons. -dave /*== www.urth.org we await the New Sun ==*/ __ Your favorite stores, helpful shopping tools and great gift ideas. Experience the convenience of buying online with Shop@Netscape! http://shopnow.netscape.com/ Get your own FREE, personal Netscape Mail account today at http://webmail.netscape.com/
Re: PerlRequire -mod_perl-2 - Apache 2.0.35
On Tue, 16 Apr 2002 [EMAIL PROTECTED] wrote: Hello Friends, I am a newbie and had developed a proof-of-concept application on Apache 1.3.23/Mod_Perl-1.26-dev. We are researching into moving away from ASP/IIS Webapplications to Apache/Mod_Perl. I am stuck with the latest Apache 2.0.35 with the following problems. Today I installed Apache 2.0.35 with Mod_Perl-2. However, I am not able to use PerlRequire Statement in the httpd.conf. Whenever I am trying to restart my Windows Services, it is always giving me an error message which does not allow me to start my Windows Services. A few things to perhaps look at ... - does the error message give some more specific hint of what may be wrong? - does the service start OK, with mod_perl-2 enabled, if the PerlRequire statement isn't there? - with the PerlRequire statement, does Apache2 start OK from the console? - if it does start OK from the console, does mod_perl work with your application? - if it doesn't start from the console, does moving the effects of the PerlRequire statement to your application work? best regards, randy kobes
RE: Re: PerlRequire -mod_perl-2 - Apache 2.0.35
Randy: Thanks for your response. Here are my responses: A few things to perhaps look at ... - does the error message give some more specific hint of what may be wrong? Not at all. THE REQUESTED OPERATION HAS FAILED -- This is the message that I get from Apache Monitor Services application. - does the service start OK, with mod_perl-2 enabled, if the PerlRequire statement isn't there? Yes! Apache2 server starts fine under the 'Apache Monitor Services' Application tool, when I remove PerlRequire Statement. And on that Application, it clearly shows the server as : Apache/2.0.35(Win32)mod_perl/1.99_02-dev Perl/v5.6.1 In order for this to work, I had to resort to: LoadModule perl_module modules/mod_perl.so If I give the command as you had mentioned somewhere as: PerlModule Apache2 or in the startup script as: use Apache2 (); IT NEVER Works! The problem then basically comes back to Apache2 services not being able to started up with no meaningful error messages. So at least to get the server up and running, I had to put LoadModule command rather than PerlModule or the startup script approach! - with the PerlRequire statement, does Apache2 start OK from the console? For this test. I comment the LoadModule statement and am following your advisory in to to.i.e, All that I have in httpd.conf is PerlModule Apache2 Now I am trying from command-line. Here is the error message that I am getting. C:\Apache\Apache2\binapache Syntax error on line 973 of C:/Apache/Apache2/conf/httpd.conf: Invalid command 'PerlModule', perhaps mis-spelled or defined by a module not inc luded in the server configuration - if it does start OK from the console, does mod_perl work with your application? Not Applicable. - if it doesn't start from the console, does moving the effects of the PerlRequire statement to your application work? No. Randy, any help will be greatly appreciated. Thanks in advance, Rex __ Your favorite stores, helpful shopping tools and great gift ideas. Experience the convenience of buying online with Shop@Netscape! http://shopnow.netscape.com/ Get your own FREE, personal Netscape Mail account today at http://webmail.netscape.com/
RE: Re: PerlRequire -mod_perl-2 - Apache 2.0.35
On Tue, 16 Apr 2002, Arul, Rex wrote: Randy: Thanks for your response. Here are my responses: A few things to perhaps look at ... - does the service start OK, with mod_perl-2 enabled, if the PerlRequire statement isn't there? Yes! Apache2 server starts fine under the 'Apache Monitor Services' Application tool, when I remove PerlRequire Statement. And on that Application, it clearly shows the server as : Apache/2.0.35(Win32)mod_perl/1.99_02-dev Perl/v5.6.1 - with the PerlRequire statement, does Apache2 start OK from the console? For this test. I comment the LoadModule statement and am following your advisory in to to.i.e, All that I have in httpd.conf is PerlModule Apache2 Now I am trying from command-line. Here is the error message that I am getting. C:\Apache\Apache2\binapache Syntax error on line 973 of C:/Apache/Apache2/conf/httpd.conf: Invalid command 'PerlModule', perhaps mis-spelled or defined by a module not inc luded in the server configuration That's because the LoadModule directive is needed to load mod_perl.so; reenable it to get rid of this error ... Do you have mod_perl-1 installed in the same Perl tree? If so, it may be that things are getting confused with trying to find the mod_perl-2 stuff under \Perl\Site\lib\Apache2 Perhaps try temporarily rename \Perl\site\lib\Apache.pm \Perl\site\lib\Apache to something else, and then also having a use Apache2; in your start-up routine. best regards, randy
RE: RE: Re: PerlRequire -mod_perl-2 - Apache 2.0.35
Randy: In order to keep my Apache 1.3.23/Mod_Perl-1.26 safe, I tried installing Apache 2.0.35/mod_perl-2 on a different NT 4.0 Server with ActivePerl 628. LoadModule perl_module modules/mod_perl.so PerlModule Apache2 WORKS!!! However, when I write a simple Perl CGI page, it bombs at the notorious RegistryCooker!! Here is the error message for your perusal: Server error! Error message: Attempt to free unreferenced scalar at E:/Perl/site/lib/Apache2/ModPerl/RegistryCooker.pm line 45. BEGIN failed--compilation aborted at E:/Perl/site/lib/Apache2/ModPerl/RegistryCooker.pm line 48. Compilation failed in require at E:/Perl/site/lib/Apache2/ModPerl/Registry.pm line 11. BEGIN failed--compilation aborted at E:/Perl/site/lib/Apache2/ModPerl/Registry.pm line 11. Compilation failed in require at (eval 2) line 3. If you think this is a server error, please contact the webmaster Error 500 retail_office 04/16/02 08:55:25 PM Apache/2.0.35 (Win32) mod_perl/1.99_02-dev Perl/v5.6.1 Kindly help. Thanks, Rex Randy Kobes [EMAIL PROTECTED] wrote: That's because the LoadModule directive is needed to load mod_perl.so; reenable it to get rid of this error ... Do you have mod_perl-1 installed in the same Perl tree? If so, it may be that things are getting confused with trying to find the mod_perl-2 stuff under \Perl\Site\lib\Apache2 Perhaps try temporarily rename \Perl\site\lib\Apache.pm \Perl\site\lib\Apache to something else, and then also having a use Apache2; in your start-up routine. best regards, randy __ Your favorite stores, helpful shopping tools and great gift ideas. Experience the convenience of buying online with Shop@Netscape! http://shopnow.netscape.com/ Get your own FREE, personal Netscape Mail account today at http://webmail.netscape.com/
Re: PerlRequire -mod_perl-2 - Apache 2.0.35
Randy, For what it's worth, I can verify Rex's experience with the exception that I used a win2k platform instead of Nt 4. I do have use Apache2 in my startup.pl. Rich Arul, Rex wrote: Randy: In order to keep my Apache 1.3.23/Mod_Perl-1.26 safe, I tried installing Apache 2.0.35/mod_perl-2 on a different NT 4.0 Server with ActivePerl 628. LoadModule perl_module modules/mod_perl.so PerlModule Apache2 WORKS!!! However, when I write a simple Perl CGI page, it bombs at the notorious RegistryCooker!! Here is the error message for your perusal: Server error! Error message: Attempt to free unreferenced scalar at E:/Perl/site/lib/Apache2/ModPerl/RegistryCooker.pm line 45. BEGIN failed--compilation aborted at E:/Perl/site/lib/Apache2/ModPerl/RegistryCooker.pm line 48. Compilation failed in require at E:/Perl/site/lib/Apache2/ModPerl/Registry.pm line 11. BEGIN failed--compilation aborted at E:/Perl/site/lib/Apache2/ModPerl/Registry.pm line 11. Compilation failed in require at (eval 2) line 3. If you think this is a server error, please contact the webmaster Error 500 retail_office 04/16/02 08:55:25 PM Apache/2.0.35 (Win32) mod_perl/1.99_02-dev Perl/v5.6.1 Kindly help. Thanks, Rex Randy Kobes [EMAIL PROTECTED] wrote: That's because the LoadModule directive is needed to load mod_perl.so; reenable it to get rid of this error ... Do you have mod_perl-1 installed in the same Perl tree? If so, it may be that things are getting confused with trying to find the mod_perl-2 stuff under \Perl\Site\lib\Apache2 Perhaps try temporarily rename \Perl\site\lib\Apache.pm \Perl\site\lib\Apache to something else, and then also having a use Apache2; in your start-up routine. best regards, randy __ Your favorite stores, helpful shopping tools and great gift ideas. Experience the convenience of buying online with Shop@Netscape! http://shopnow.netscape.com/ Get your own FREE, personal Netscape Mail account today at http://webmail.netscape.com/ -- - He who will trade freedom for security will get, nor deserve, neither -- On the net, you either lead the pack or play with the puppies. -
Re: PerlRequire -mod_perl-2 - Apache 2.0.35
Hello Friends, I am a newbie and had developed a proof-of-concept application on Apache 1.3.23/Mod_Perl-1.26-dev. We are researching into moving away from ASP/IIS Webapplications to Apache/Mod_Perl. I am stuck with the latest Apache 2.0.35 with the following problems. Today I installed Apache 2.0.35 with Mod_Perl-2. However, I am not able to use PerlRequire Statement in the httpd.conf. Whenever I am trying to restart my Windows Services, it is always giving me an error message which does not allow me to start my Windows Services. Hi for me on winnt, apache 2.0.35 could be installed but once refused to start as a service too. and this was because it was necessary to explicitely specify a drive letter for serverroot and documentroot (etc. maybe) in the httpd.conf whereas apache doc say if you do not, it will prepend the drive letter of the apache.exe pascal