Re: perl-based authentication

2001-05-11 Thread Carey Burgess



Mark,

I am by no means a mod_perl guru... and this may not solve your full 
problem... but, you could put something httpd.conf that says something like: 
if ($paid) then allow .htaccess files; else don't. In other words, 
AllowOverride AuthConfig if paid; else AllowOverride None.

Something along those lines would solve for part of your problem atleast. 
Then it would just be up to the users to invoke the authentication.

I hope this could help you some.

Later.


Carey Burgess



_
Get your FREE download of MSN Explorer at http://explorer.msn.com




Re: Need help installing on Win32...

2001-05-02 Thread Carey Burgess



Hey,

Yeah... It's ActivePerl build 623.

What's a vanilla script? I know I can run scripts just fine with this same 
Perl when I comment out the mod_perl lines I have below.

Well, again, thanks for your help! If this is getting (or gets) too annoying 
for you, just direct me to the appropriate portion of some generic guide and 
I'll sort this out myself.


Thanks!


Carey





Original Message Follows
From: Randy Kobes [EMAIL PROTECTED]
To: Carey Burgess [EMAIL PROTECTED]
CC: [EMAIL PROTECTED]
Subject: Re: Need help installing on Win32...
Date: Tue, 1 May 2001 22:23:18 -0500 (CDT)


On Tue, 1 May 2001, Carey Burgess wrote:

 
  Now, how do I get it to work right? I added to httpd.conf like so:
  
  LoadModule perl_module modules/mod_perl.so
  #
  # (Other stuff here...)
  #
  Files ~ \.(pl|cgi)$
  SetHandler  perl-script
  PerlHandler Apache::Registry
  Options +ExecCGI
  /Files
  #
  # (Other stuff here...)
  #
  Alias /cgi-bin/ D:/serv/cgi-bin/
  Location /cgi-bin
  SetHandler  perl-script
  PerlHandler Apache::Registry
  Options +ExecCGI
  /Location
  ---
  So, I know the handler is now the perl module.
 
  But, I run into a problem at this point... Every time I run a script at 
all,
  I get one of those 'illegal error' windows for Apache and it shuts down 
the
  server alltogether. When reading the 'Details' portion of the error 
window,
  it says APACHE caused an invalid page fault in module MOD_PERL.SO at
  015f:100097bc.
 

This type of error could result from trying to load a
library with some version or compilation incompatibility.
Is the perl binary in your PATH that of ActivePerl 6xx?
With this same perl, can you run vanilla cgi scripts OK?

best regards,
randy kobes



_
Get your FREE download of MSN Explorer at http://explorer.msn.com




Re: Need help installing on Win32...

2001-05-01 Thread Carey Burgess



Ok... I got it installed right now. The PATH was in there, but it was wrong 
for some reason. After I got that straightened out, installing through PPM 
worked like a charm.

Now, how do I get it to work right? I added to httpd.conf like so:

LoadModule perl_module modules/mod_perl.so
#
# (Other stuff here...)
#
Files ~ \.(pl|cgi)$
SetHandler  perl-script
PerlHandler Apache::Registry
Options +ExecCGI
/Files
#
# (Other stuff here...)
#
Alias /cgi-bin/ D:/serv/cgi-bin/
Location /cgi-bin
SetHandler  perl-script
PerlHandler Apache::Registry
Options +ExecCGI
/Location
---
So, I know the handler is now the perl module.

But, I run into a problem at this point... Every time I run a script at all, 
I get one of those 'illegal error' windows for Apache and it shuts down the 
server alltogether. When reading the 'Details' portion of the error window, 
it says APACHE caused an invalid page fault in module MOD_PERL.SO at 
015f:100097bc.

I've tried getting rid of the 'Files' one and just leave the 'Location'
one, as well as the other way around. I got rid of both and it just executed 
through the Shebang line like it normally did before.

It does this every time without fail... Have any ideas as to why and how I 
can fix it?

Well, thanks again for your help!


Carey


P.S. I was asked if I installed perhaps the wrong version. No, I installed 
the right version (I just double and triple checked everything). So, that's 
not it. Thanks to all!





Original Message Follows
From: Randy Kobes [EMAIL PROTECTED]
To: Carey Burgess [EMAIL PROTECTED]
CC: [EMAIL PROTECTED]
Subject: Re: Need help installing on Win32...
Date: Sun, 29 Apr 2001 21:22:01 -0500 (CDT)

On Sun, 29 Apr 2001, Carey Burgess wrote:

Yeah, I have ActivePerl.

So... I tried installing it using PPM... Well, here's a snippet of what
happened:


PPM interactive shell (2.1.2) - type 'help' for available commands.
PPM install
http://theoryx5.uwinnipeg.ca/ppmpackages/mod_perl-1.25_1.3.19.ppd
Install package
'http://theoryx5.uwinnipeg.ca/ppmpackages/mod_perl-1.25_1.3.19.ppd?'
  (y/N):
y
Installing package
'http://theoryx5.uwinnipeg.ca/ppmpackages/mod_perl-1.25_1.3.19.ppd'...
Writing D:\serv\lang\site\lib\auto\mod_perl\.packlist

If it reaches this point, it means that the necessary files
are installed in the perl tree - if you do at a DOS prompt
 perl -Mmod_perl -e print 1
and not get an error, it means that this part is OK.

Cannot find file 'perl' (or one of its components). Check to
ensure the path and filename are correct and that all required
libraries are available.
Cannot find file 'perl' (or one of its components). Check to
ensure the path and filename are correct and that all required
libraries are available.

Here it's trying to run a post-install script to install the
mod_perl dll (mod_perl.so) into your Apache modules/ directory.
For some reason it can't find your perl binary to run the
script - I assume perl is in your PATH? If so, you can do this
manually - get x86/mod_perl-1.25_1.3.19.tar.gz from the site
you got the ppd file, unpack it, and manually copy mod_perl.so
to your Apache modules/ directory.

best regards,
randy
_
Get your FREE download of MSN Explorer at http://explorer.msn.com




Need help installing on Win32...

2001-04-29 Thread Carey Burgess



Hi...

I have been using Apache along with Perl for a while now (and have been 
writing Perl/CGI scripts for even longer), but I am having much difficulty 
when it comes to installing this module. (I've never installed any modules 
before, so I'm ALL new to this.)

I've found instructions for installing it on a UNIX box, but can't seem to 
find any for a Winders box. For the time being, I have only to use Win98 (I 
hate not having a *NIX box!), so bear with me on this. Perhaps I should wait 
until 2.0 comes out, but I'd love it if I was able to get it going before 
then.

If you could possibly help me out here, please do. If you might know of 
anyone that has installed it on a Windows machine, please point me in their 
direction. If you know of any sites that might be of assistance to me, 
please let me know.

Thank you in advance for any help you can provide to me!


Carey


BTW, I already have 2 different versions downloaded (though both are named 
mod_perl-1.25.tar.gz) so just let me know what I need to do with them. 
Thanks!
_
Get your FREE download of MSN Explorer at http://explorer.msn.com




Re: Need help installing on Win32...

2001-04-29 Thread Carey Burgess



Yeah, I have ActivePerl.

So... I tried installing it using PPM... Well, here's a snippet of what 
happened:


PPM interactive shell (2.1.2) - type 'help' for available commands.
PPM install 
http://theoryx5.uwinnipeg.ca/ppmpackages/mod_perl-1.25_1.3.19.ppd
Install package 
'http://theoryx5.uwinnipeg.ca/ppmpackages/mod_perl-1.25_1.3.19.ppd?' (y/N): 
y
Installing package 
'http://theoryx5.uwinnipeg.ca/ppmpackages/mod_perl-1.25_1.3.19.ppd'...
Writing D:\serv\lang\site\lib\auto\mod_perl\.packlist
Cannot find file 'perl' (or one of its components). Check to
ensure the path and filename are correct and that all required
libraries are available.
Cannot find file 'perl' (or one of its components). Check to
ensure the path and filename are correct and that all required
libraries are available.
PPM

(BTW, I have Perl 5.6.0.623 installed under 'D:\serv\lang' and Apache 1.3.19 
installed under 'D:\serv')

What actually happened? It just stopped a little over a minute after it had 
started just like this. Any ideas?

Thanks for all your help!


Carey





Original Message Follows
From: Randy Kobes [EMAIL PROTECTED]
To: Carey Burgess [EMAIL PROTECTED]
CC: [EMAIL PROTECTED]
Subject: Re: Need help installing on Win32...
Date: Sun, 29 Apr 2001 15:43:56 -0500 (CDT)

On Sun, 29 Apr 2001, Carey Burgess wrote:

  I have been using Apache along with Perl for a while now (and
  have been writing Perl/CGI scripts for even longer), but I am
  having much difficulty when it comes to installing this module.
  (I've never installed any modules before, so I'm ALL new to this.)

Are you using ActivePerl? If so, there's a ppm mod_perl package
available which you can install with ActivePerl's ppm utility;
see http://perl.apache.org/distributions.html for details.
If you don't have ActivePerl, or just want to compile it yourself,
see the file INSTALL.win32 in the mod_perl sources for instructions.

best regards,
randy kobes



_
Get your FREE download of MSN Explorer at http://explorer.msn.com