Re: Mod-Perl Installed next Q

2001-06-15 Thread Mike Cameron
You should be able to find just about all the answers here: http://perl.apache.org/guide -- >From: "Purcell, Scott" <[EMAIL PROTECTED]> >To: "'[EMAIL PROTECTED]'" <[EMAIL PROTECTED]> >Subject: Mod-Perl Installed next Q >Date: Fri, Jun 15, 2001, 4:43 PM > >Hello, >Thank you all and Ron for

Re: That annoying DB guy again... ;-)

2001-05-21 Thread Mike Cameron
"Jonathan M. Hollin" wrote: > I know you all want me to go away, so I apologise for the noise. Anyway, at > http://perl.apache.org/guide/databases.html#Why_Relational_SQL_Databases > there is a reference to an "Apache::DBI" module. I DON'T have this module > installed - is this the reason why

Re: Connection to MySQL DB fails when mod_perl enabled...

2001-05-21 Thread Mike Cameron
Ken Williams wrote: > [EMAIL PROTECTED] (Jonathan M. Hollin) wrote: > >:: Okay, last idea: you say you can connect to mysql from the command line, > >:: from regular CGI, and from PHP. I'm guessing that in all of those > >:: situations, you're acting as the same user (win2k user, not mysql use

Re: Connection to MySQL DB fails when mod_perl enabled...

2001-05-21 Thread Mike Cameron
"Jonathan M. Hollin" wrote: > This is driving me crazy... is there anything special I need to do when > using DBI (DBD::MySQL) with mod_perl. A script that works just fine sans > mod_perl dies with error 500 (Internal Server Error) when mod_perl is > enabled for that file type: > > Web Server

Re: Pnotes not working

2001-05-16 Thread Mike Cameron
Thank you very much Vivek. That was exactly what was happening. I did manage to figure it out eventually. Thanks for your help. Mike Vivek Khera wrote: > >>>>> "MC" == Mike Cameron <[EMAIL PROTECTED]> writes: > > MC> package My::Main; > MC>

Re: Authorization question and subdirectories

2001-05-16 Thread Mike Cameron
Thanks for your responses. Chris Strom wrote: > Mike Cameron <[EMAIL PROTECTED]> writes: > > > Is it possible to have the same PerlAuthzHandler use different require's > > > > on a subdirectory once a user has been authorized for a parent > > dire

Authorization question and subdirectories

2001-05-15 Thread Mike Cameron
Is it possible to have the same PerlAuthzHandler use different require's on a subdirectory once a user has been authorized for a parent directory? Here is what i would like to be acle to do: SetHandler perl-script AuthType MyAuth AuthName MyAuth PerlAuthenHandler MyAuth->authenticate PerlAuthzH

Pnotes not working

2001-05-11 Thread Mike Cameron
I am having trouble getting pnotes to work and wonder if there is something obvious I am missing. in PerlAuthenHandler I have gone back to the Apache man page and tried to recreate the example given there but to no avail. Below is the code: package My::User; sub handler{ my $r = new Apache::R

Re: Global Variables Question

2001-04-25 Thread Mike Cameron
http://perl.apache.org/guide/porting.html#Configuration_Files_Writing_Dy Guide Good! "Warren D. Johnson" wrote: > Hello All, > > I apologize if this is in a FAQ somewhere. > > I have a script, lets call it test.pl. Test.pl requires in config.pl. > > Test.pl uses variables (via use vars) from c

Re: AuthenHandler Problems

2001-04-12 Thread Mike Cameron
Dave Greco wrote: > I am having some serious problems with a custom AuthenHandler. Basically, > it looks up users/passwords/groups in a database. The problem is whenever I > encounter a bad password/username, I want the dialog box to reappear asking > for them. Instead, the 401 error page is be

Re: Authhandler

2001-04-10 Thread Mike Cameron
Kiran k wrote: > Hi , > I am having problems with the stacked handlers , i have enclosed the code below , > > the error i get is undefined value ($r) in sub authenticate > > package SetRealm1; > > use Apache; > use Apache::Constants qw(:common); > use DBI; > use diagnostics; > sub handler { >

Re: access log and the request object

2001-04-04 Thread Mike Cameron
How about writing your own log handler    PerlLogHandler My::LogModule or in your code $r->push_handler(PerlLogHandler    => \&MyLoghandler); sub MyLoghandler{   my $r=Apache::Request;   code to log info to file } the push_handler method does not pass the request object to the subroutine. Andrew

Re: Storable (lock_store lock_retrieve) question

2001-04-01 Thread Mike Cameron
Perrin Harkins wrote: > > I am currently using Storables lock_store and lock_retrieve to maintain > > a persistent data structure. I use a session_id as a key and each data > > structure has a last modified time that I use to expire it. I was under > > the impression that these two functions

Storable question (More info)

2001-04-01 Thread Mike Cameron
Sorry, I am running mod_perl 1.24_01, Apache 1.3.19, on Redhat 7.0 Storable 1.011

Storable (lock_store lock_retrieve) question

2001-04-01 Thread Mike Cameron
I am currently using Storables lock_store and lock_retrieve to maintain a persistent data structure. I use a session_id as a key and each data structure has a last modified time that I use to expire it. I was under the impression that these two functions would be safe for concurrent access, but

Re: mod_perl based Authentication ...

2001-03-28 Thread Mike Cameron
Try this http://search.cpan.org/search?mode=module&query=Apache%3A%3AAuth I found browsing existing code and implementing existing modules really helps a guy understand the whole process. Sumit Babu wrote: > Hi, > I am very new to mod_perl, and would like to know > if there are any pointe

Re: Handler without handler()

2001-03-13 Thread Mike Cameron
I believe that you need to load your module first, either in a startup file or with PerlModule Me::MyHandler Gene Dascher wrote: > I have a handler that I want to contain all of my methods for access > control, authentication and authorization. I have created the file with 3 > different methods

Re: push_handlers question

2001-03-05 Thread Mike Cameron
IL PROTECTED]] > > Sent: Monday, March 05, 2001 11:19 AM > > To: Geoffrey Young; 'Mike Cameron' > > Cc: [EMAIL PROTECTED] > > Subject: RE: push_handlers question > > > > > > At 10:36 AM -0500 3/5/01, Geoffrey Young wrote: > > > > > T

Re: push_handlers question

2001-03-05 Thread Mike Cameron
. Mike Geoffrey Young wrote: > > -Original Message- > > From: Mike Cameron [mailto:[EMAIL PROTECTED]] > > Sent: Sunday, March 04, 2001 11:59 PM > > Cc: modperl > > Subject: push_handlers question > > > > > > I am trying to sub class Ap

push_handlers question

2001-03-04 Thread Mike Cameron
I am trying to sub class Apache::AuthCookieURL and would like to use $r->push_handlers(PerlAuthenHandler => My::Class->authenticate); the push_handler is set in a handler called from httpd.conf on the PerlInitHandler phase but the authenticate routine does not seem to be getting the apache request