RE: Re: Apache/Mod_Perl in Production Env-- NOT Recommended inWindows?

2002-04-18 Thread Arul, Rex

Thanks Per. But should the stoic silence for this poser of mine, be construed as there 
are NO takers out there who have their Web Sites in Production, running out of Apache 
1.XX and Mod-Perl 1.XX on Windows NT/2000?

Primarily we are a Microsoft shop, and I would like to answer this question to my 
bosses (if possible). 

Thanks,
Rex


Per Einar Ellefsen [EMAIL PROTECTED] wrote:


This isn't all too different from standard mod_perl setups, but you have to 
watch out even more when running on Windows. You might even want to try and 
setup several backend mod_perl servers and load balance between them, all 
depending on how much memory you can spare.






__
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/




Help Needed - RegistryCooker.pm -mod_perl-2 - Apache 2.0.35 -(ActivePerl 631)

2002-04-16 Thread Arul, Rex

I am not sure, if I should post it here:

OS: Windows 2000; Perl:ActivePerl 631; Apache:2.0.35; Mod_Perl:1.99_01 downloaded via 
PPM under theorynx website.

In the httpd.conf, I am making the Apache::Registry pointer to be 
Apache2::ModPerl::Registry.

However, when my CGI script is run, I get this error:

Server error!
Error message: 
Can't locate ModPerl/RegistryCooker.pm in INC (INC contains: C:/Perl/lib 
C:/Perl/site/lib .) at C:/Perl/site/lib/Apache2/ModPerl/Registry.pm line 11. BEGIN 
failed--compilation aborted at C:/Perl/site/lib/Apache2/ModPerl/Registry.pm line 11. 
Compilation failed in require at (eval 1) line 3. 

However, on verifying the directory, I am able to see RegistryCooker.pm file under the 
INC path specified. It is lying right there next to Registry.pm!!!


-- 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

2002-04-16 Thread Arul, Rex

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: Help Needed - RegistryCooker.pm -mod_perl-2 - Apache 2.0.35-(ActivePerl 631)

2002-04-16 Thread Arul, Rex

Randy Kobes [EMAIL PROTECTED] wrote:

On Tue, 16 Apr 2002, Arul, Rex wrote:

 I am not sure, if I should post it here:

 OS: Windows 2000; Perl:ActivePerl 631; Apache:2.0.35;
 Mod_Perl:1.99_01 downloaded via PPM under theorynx website.

 In the httpd.conf, I am making the Apache::Registry pointer
 to be Apache2::ModPerl::Registry.

 However, when my CGI script is run, I get this error:

 Server error! Error message:  Can't locate
 ModPerl/RegistryCooker.pm in @INC (@INC contains: C:/Perl/lib
 C:/Perl/site/lib .) at
 C:/Perl/site/lib/Apache2/ModPerl/Registry.pm line 11. BEGIN
 failed--compilation aborted at
 C:/Perl/site/lib/Apache2/ModPerl/Registry.pm line 11.
 Compilation failed in require at (eval 1) line 3.

 However, on verifying the directory, I am able to see
 RegistryCooker.pm file under the @INC path specified. It is
 lying right there next to Registry.pm!!!

It looks like the Apache2/ subdirectory isn't being added
to @INC. Do you 'use Apache2' in your set-up? Does adding
that to your script help?

It just bombs if I try to use the statement,

use Apache2;
or
use Apache2 ();

in the startup script. Well! If you think about it, I am in Catch-22. For startup 
script to work, PerlRequire should work. That is not working in my case.

So I put

PerlModule Apache2

expecting that to work!

Well, that is not working either. Services Panel correctly recognizes that 
Mod_Perl_1.99 has been associated with Apache 2.0.35 installation. The Files are in 
the right directories posited by @INC.

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: RE: Re: PerlRequire -mod_perl-2 - Apache 2.0.35

2002-04-16 Thread Arul, Rex

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: Re: Help Needed - RegistryCooker.pm -mod_perl-2 - Apache 2.0.35-(ActivePerl631)

2002-04-16 Thread Arul, Rex

Stas:

The fix still does not work. Here is the error message (OS: Windows NT 4.0 SP 6a; 
ActivePerl 628; PPM Install of Mod_Perl-1.99 from theoryx.uwinnipeg.ca and Apache 
2.0.35):

Server error!
Error message: 
Attempt to free unreferenced scalar at 
E:/Perl/site/lib/Apache2/ModPerl/RegistryCooker.pm line 53. 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 10:58:18 PM 
Apache/2.0.35 (Win32) mod_perl/1.99_02-dev Perl/v5.6.1 

-- Rex
Stas Bekman [EMAIL PROTECTED] wrote:

Try this patch that doug just committed to cvs:


dougm       02/04/16 10:14:16

   Modified:    ModPerl-Registry/lib/ModPerl RegistryCooker.pm
   Log:
   Apache-server-dir_config crashes on win32; comment it out for the 
moment

   Revision  Changes    Path
   1.6       +5 -4 
modperl-2.0/ModPerl-Registry/lib/ModPerl/RegistryCooker.pm

   Index: RegistryCooker.pm
   ===
   RCS file: 
/home/cvs/modperl-2.0/ModPerl-Registry/lib/ModPerl/RegistryCooker.pm,v
   retrieving revision 1.5
   retrieving revision 1.6
   diff -u -r1.5 -r1.6
   --- RegistryCooker.pm    13 Nov 2001 04:34:31 -  1.5
   +++ RegistryCooker.pm    16 Apr 2002 17:14:16 -  1.6
   @@ -42,10 +42,11 @@
    # httpd.conf with:
    #   PerlSetVar ModPerl::RegistryCooker::DEBUG 4
    use Apache::ServerUtil ();
   -use constant DEBUG =
-    defined Apache-server-dir_config('ModPerl::RegistryCooker::DEBUG')
   -        ? Apache-server-dir_config('ModPerl::RegistryCooker::DEBUG')
   -        : D_NONE;
   +use constant DEBUG = 0;
   +#XXX: below currently crashes the server on win32
   +#    defined 
Apache-server-dir_config('ModPerl::RegistryCooker::DEBUG')
   +#        ? Apache-server-dir_config('ModPerl::RegistryCooker::DEBUG')
   +#        : D_NONE;

 
#
    # object's array index's access constants




__
Stas Bekman            JAm_pH -- Just Another mod_perl Hacker
http://stason.org/     mod_perl Guide --- http://perl.apache.org
mailto:[EMAIL PROTECTED] http://use.perl.org http://apacheweek.com
http://modperlbook.org http://apache.org   http://ticketmaster.com




__
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/




mod_perl-2 - Apache 2.0.35 - Windows NT/2000 - Preliminary Woes cleared

2002-04-16 Thread Arul, Rex

Thanks a lot to Stas and Randy, I have got the MOD_PERL-1.99 and Apache 2.0.35 to get 
started up and running to serve the first CGIs under MOD_PERL in Windows NT 4.0 SP 6a 
environment. I am sure it should be the same for Windows 2000 too.

Points:

1) I am having problems in my Windows 2000 Workstation, because I am running both 
Apache 1.3.23/Mod_Perl-1.26 as well as Apache 2.0.35/Mod_Perl-1.99. Therefore, there 
are certainly name-clashes as far as Mod_Perl-1.99 is concerned (vide Randy's email 
rejoinder). Therefore, I had installed Apache 2.0.35 with Mod_Perl-1.99 under a 
Windows NT 4.0 with SP 6a and ActivePerl 628, without any previous Apache/Mod_Perl 
installed to it.

2) Please note that when I did not have two different Apache and Mod_Perl versions on 
the Server, the :

PerlModule Apache2

configuration item on httpd.conf did work as per the advisories. Previously this did 
not work for me, because I had two versions of Apache and mod_perl running in it.

3) Even after running a lone Apache 2.0.35/Mod_Perl-1.99 on Windows NT 4.0/SP 6a, I 
was having problems with RegistryCooker.pm (vide, my own emails today on the topic).

4) Stas had posited to a new bug-fix of Doug. I applied it to the RegistryCooker.pm 
file.

5) Now the woes with respect to RegistryCooker.pm cleared. But CGIs would just not 
serve. Reason was because, I had given in the httpd.conf file the configuration as 
thus:

PerlHandler Apache2::ModPerl::Registry

It complained that it could not find that one!!

6) Stas was kind enough to guide me on this. According to his valuable advice, I 
changed the PerlHandler statement in httpd.conf as thus:

PerlHandler ModPerl::Registry

Please note, that at this point, I could also make the startup.pl script (a simple 
startup script that I wrote to preload CGI and other modules) run using:

PerlRequire e:/admin/rarul/apache2/startup.pl 

statement.

Currently, I am able to make Apache 2.0.35 work with MOD_PERL-1.99-dev on Windows NT 
4.0/SP 6a, without any problem. To get to this point itself, it took a lot of 
collective effort and thanks to one and all in this list.

Hopefully this information will be helpful to the Windows Users. 

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/