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 the link to
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:
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 user).
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 CGI
/Directory
will the above not work the same using the location directive? It didn't for
me unless I missed something obvious.
Thanks for your responses.
Chris Strom wrote:
Mike Cameron [EMAIL PROTECTED] writes:
Is it possible to have the same PerlAuthzHandler use different require's
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 sub handler{
MC my $r = new Apache::Request(shift);
MC my
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:
Location /
SetHandler perl-script
AuthType MyAuth
AuthName MyAuth
PerlAuthenHandler MyAuth-authenticate
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
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
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 being
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 {
my $r
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 Lau
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
Sorry,
I am running mod_perl 1.24_01, Apache 1.3.19, on Redhat 7.0 Storable
1.011
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 would
Try this
http://search.cpan.org/search?mode=modulequery=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 pointers
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
.
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 Apache::AuthCookieURL and would like to use
$r-push_handlers
]]
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:
Thanks for the suggestion, but what i really want to know is
why is the
request object passed if I
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
20 matches
Mail list logo