Hey guys,
Before I start with my problem / question, let me just say that I haven't
been subscribed for a while. I was doing some heavy mod_perl development
last year, and I was subscribed to the list for a long time. Eventually,
mail from this list and the other lists I was subscribed to got
how come when I use this example from the docs (in httpd.conf):
Perl
my($uid,$pwd) = My::dbi_pwd_fetch();
$Location{'/foo/bar'}-{PerlSetVar} = [
[ Auth_DBI_username = $uid ],
[ Auth_DBI_password = $pwd ],
];
/Perl
I get:
Undefined subroutine My::dbi_pwd_fetch called at
"Russell D. Weiss" [EMAIL PROTECTED] wrote:
So, onto the problem. Within the constructor for the wrapper object, I want
to do:
bless $self, $class;
$main::SIG{'__DIE__'} = $self-custom_die;
Try
bless $self, $class;
$main::SIG{'__DIE__'} = sub { $self-custom_die(@_) };
This will make
On Thu, 30 Mar 2000, Bakki Kudva wrote:
If I understand correctly the handouts and possible audio/video records
belong to the host of the conference. Therefore you should talk to them
about this issue. It can be ORA, Camelot or any other conference
organizer.
In that case they would
Thanks James,
Great little trick It worked!
Thanks for the help,
Russ
Russell Weiss
Founder and Technical Manager
InfoRelay Online Systems, Inc.
http://www.InfoRelay.net/
Try
bless $self, $class;
$main::SIG{'__DIE__'} = sub { $self-custom_die(@_) };
This will make sure
Hi,
I prepared a perl5 binary with the GD.pm, the perl5 interface to Thomas
Boutell's gd library, linked static.
From the browser, that means via mod_perl, I request a perl-script
'fills.pl' that requires the GD package, following error is output in the
error_log:
[error] DYNA:Can't load
"James" == James G Smith [EMAIL PROTECTED] writes:
James "Russell D. Weiss" [EMAIL PROTECTED] wrote:
So, onto the problem. Within the constructor for the wrapper object, I want
to do:
bless $self, $class;
$main::SIG{'__DIE__'} = $self-custom_die;
James Try
James bless $self, $class;
BT ([EMAIL PROTECTED]) said something to this effect:
Assume you roughly have a one-to-one between scripts and web pages.
How do you write a script to display its own web page or efficiently
invoke another script/page? Redirect is slow. Can you exec, i.e.
can a cgi script exec another in
oops, there was a pretty major bug in the first release that required an IP
list in order to get any output (whoops)...
sorry for the inconvienence (but probably nobody is using it anyway :) To
make up for it, pnotes now supports complex data structures via Data::Dumper
--Geoff
The URL
How do I get the username someone entered in a http authentication prompt?
I got authDBI working, but I can't figure out hot to access the user name which
was passed so that I can use it in further sql-dml statements.
How do I get the username someone entered in a http authentication prompt?
I got authDBI working, but I can't figure out hot to access the user name which
was passed so that I can use it in further sql-dml statements.
$r-connection-user(), or $ENV{REMOTE_USER} if you're in CGI emulation
On Tue, 04 Apr 2000, Adam Gotheridge wrote:
How do I get the username someone entered in a http authentication prompt?
I got authDBI working, but I can't figure out hot to access the user name which
was passed so that I can use it in further sql-dml statements.
Try this:
my $r = shift;
#you may define Perl*Handler subroutines here too
print "Making Apache::Registry scripts global . . .";
$Apache::Registry::NameWithVirtualHost = 0;
print "Done.\nLoading admin.cgi . . . . . . . . . . . . . ";
my $r = Apache::RegistryLoader-new;
$r-handler("/cgi-bin/admin.cgi",
Stas Bekman wrote on Tuesday, April 04, 2000 2:59 AM :
Well, I've just installed the G2 Player and tried it. Yes it's quite good.
May be you are right and it would work. So are you going to give it a
whirl?
I'd love to give it a try. Couple of starting points.
1. Conferences will not be a
Forwarded without comment -jwb
-- Forwarded message --
Date: Tue, 4 Apr 2000 11:35:53 -0400
From: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: Looking for mod perl developers desperately
Jeffrey,
I am looking for a team of 5 developers with one architect type who could
On Tue, 4 Apr 2000, Bakki Kudva wrote:
Stas Bekman wrote on Tuesday, April 04, 2000 2:59 AM :
Well, I've just installed the G2 Player and tried it. Yes it's quite good.
May be you are right and it would work. So are you going to give it a
whirl?
I'd love to give it a try. Couple of
Hi,
We've been moving several small "CGI powered sites" to mod_perl and the
results has been quite terrific. Based on this we're about to move our
first large (large in size and heavy traffic) site from an Oracle
Application Server to mod_perl. We're using our own custom
"HTML::Template"-like
"FML" == Flemming Mahler Larsen [EMAIL PROTECTED] writes:
FML It seems as this has the effect that each server process keeps its own
FML copy of the templates. I would like to avoid this by using some sort of
FML shared memory between the server processes. Does any of you have any
FML
Flemming,
Check out IPC::SharedCache (uses IPC::ShareLite(?) underneath) by Sam
Tregar, author of HTML::Template. It does exactly what the name implies.
I believe the most recent version is 1.3, but check out your local CPAN
mirror for the latest copy. The documentation is rather good IMHO and
It seems as this has the effect that each server process keeps its own
copy of the templates. I would like to avoid this by using some sort of
shared memory between the server processes. Does any of you have any
experience in this field (or even better examples of how to do it)?
A good
It seems as this has the effect that each server process keeps its own
copy of the templates. I would like to avoid this by using some sort of
shared memory between the server processes. Does any of you have any
experience in this field (or even better examples of how to do it)?
A good
well, there has been some NameWithVirtualHost work going on to solve a
related problem - perhaps the behavior you used to see is changing due to
that?
at any rate, check out the new RegistryLoader docs - you can now compile
scripts with the vhost stuff in them:
$r-handler($uri, $filename,
But, I don't want the virtual host information included. ALL of my scripts on
this web server are GLOBAL and in order to save
memory I only want to have one copy loaded and shared for multiple virtual hosts.
It used to be that if you set
$Apache::Registry::NameWithVirtualHost = 0;
Then
Flemming Mahler Larsen wrote:
Hi,
We've been moving several small "CGI powered sites" to mod_perl and the
results has been quite terrific. Based on this we're about to move our
first large (large in size and heavy traffic) site from an Oracle
Application Server to mod_perl. We're using
whoops - sorry for misunderstanding - I'll look into it and see if I see the
same thing.
are you preloading Apache::Registry (either using PerlModule or in a
startup.pl?)
-Original Message-
From: Jason Terry [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, April 04, 2000 12:42 PM
To:
Adam Gotheridge wrote:
How do I get the username someone entered in a http authentication prompt?
I got authDBI working, but I can't figure out hot to access the user name which
was passed so that I can use it in further sql-dml statements.
sub handler {
my $r = shift;
my $user_id =
Is there anyway to get AuthDBI to connect on initialization of the web server
like you can with "DBI-connect_on_init(...)"?
yup - I see the same thing if I use a vhost setup...
Doug - looks like in trying to fix that pest some undesired behavior has
been introduced (ack!). I imagine that sharing scripts is probably more
important that a fix that still doesn't work?
:)
--Geoff
-Original Message-
From:
Jeffrey W. Baker wrote on Tuesday, April 04, 2000 12:04 PM:
Consider just this once that HTML is not the preferred way to deliver this
kind of content. Perhaps the tutorial could be in the form of an MP3
file, with instructions to turn to the next slide periodically. The slide
could be
On Tue, 4 Apr 2000 [EMAIL PROTECTED] wrote:
A good package for this is IPC::Shareable. You can store info in semaphores
and share it between processes.
Except that I don't think you can you use shared memory (the semaphores are
just flags) across multiple web servers, and I have been
[mod_perl people - any comment? Please keep the Cc: list to the Debian
bug tracking system.]
On Tue, Mar 28, 2000 at 12:50:45PM +0200, [EMAIL PROTECTED] wrote:
Package: libapache-mod-perl
Version: 1.21.2309-1
Severity: Important
When using the XML::Parser::Expat under mod_perl, this
According to Adam Gotheridge:
Is there anyway to get AuthDBI to connect on initialization of the web server
like you can with "DBI-connect_on_init(...)"?
AuthDBI uses DBI, so all you have to do is use Apache::DBI
and make sure the connect string is exactly the same.
Les Mikesell
[EMAIL
On Tue, 4 Apr 2000, Bakki Kudva wrote:
Jeffrey W. Baker wrote on Tuesday, April 04, 2000 12:04 PM:
Consider just this once that HTML is not the preferred way to deliver this
kind of content. Perhaps the tutorial could be in the form of an MP3
file, with instructions to turn to the next
From: James G Smith [EMAIL PROTECTED]
Reply-To: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
CC: Valter Mazzola [EMAIL PROTECTED], Doug MacEachern
[EMAIL PROTECTED]
Subject: Re: Segfault on DBI-Connect
Date: Mon, 03 Apr 2000 00:13:14 -0500
Doug MacEachern [EMAIL PROTECTED] wrote:
On Sat, 1 Apr
Something, presumably XML::Parser::Expat, is corrupting malloc's and
perl's data structures randomly. Running under MALLOC_CHECK_=2 has a
high probability of showing this. It also occasionally cores in
Perl_sv_upgrade - the SV is hopelessly mangled:
(gdb) p *sv
$17 = {sv_any = 0x83e58955,
All..
I am new to mod_perl so, please forgive me if this questions sounds
stupid..
I have successfully installed mod_perl 1.22 and Apache 1.3.12 under
BSD/OS BSDI 3.1 And able to run normal cgi script... But problem occurs
while I am trying to run script with DBI..
I have successfully
Hi,
Can someone help me out here?
Apache_1.3.12
mod_perl 1.21_03
Apache-Session-1.03 ( Database and deamon locker for storing and locking
sessions )
-- code snippet --
sub getSESSION {
my $self = shift;
my $sid = shift;
my %SESSION;
eval {tie %SESSION,
On Tue, 4 Apr 2000, Jason Terry wrote:
But, I don't want the virtual host information included. ALL of my scripts on
this web server are GLOBAL and in order to save
memory I only want to have one copy loaded and shared for multiple virtual hosts.
It used to be that if you set
On Mon, 3 Apr 2000, Vivek Khera wrote:
What if someone sets PerlFreshRestart No and has DSO enabled? Then
they don't get what they think they do.
right, the docs should be updated to reflect that.
Hey guys,
This relates somewhat to the message that I sent last night / early this
morning.
I have a custom $SIG{__DIE__} handler defined within an object. Upon a die,
this handler runs the object's DESTROY method. As I stated in my earlier
message, I'm doing this because the object contains
does mod_perl automatically send headers for PerlHandler routines? I know
when to use it with Registry stuff, but as I move to handlers for lots of
stuff I see that PerlHandlers seem ok without it.
no, mod_perl will only send headers (by calling ap_send_http_header) if
you have
On Tue, 4 Apr 2000, Bakki Kudva wrote:
Jeffrey W. Baker wrote on Tuesday, April 04, 2000 12:04 PM:
Consider just this once that HTML is not the preferred way to deliver this
kind of content. Perhaps the tutorial could be in the form of an MP3
file, with instructions to turn to the next
No, this doesn't fixed the problem. I applied your patch to current cvs
hmm, does the problem go away if you add this to httpd.conf:
PerlModule Apache::Table
? that's my only suspect, since the first time you access $r-headers_in
it will 'require Apache::Table', which might confuse the stack
"DM" == Doug MacEachern [EMAIL PROTECTED] writes:
DM On Mon, 3 Apr 2000, Vivek Khera wrote:
What if someone sets PerlFreshRestart No and has DSO enabled? Then
they don't get what they think they do.
DM right, the docs should be updated to reflect that.
Why not disable this command
Hi, I did compile it statically. But currently for my program, I always
get such errors.
My Apache is 1.3.12, Perl is 5.6.0, mod_perl is 1.22.
The relevant part in my httpd.conf is:
Files ~ "\.mpl$"
SetHandler perl-script
PerlHandler Apache::Registry
Options ExecCGI
/Files
Hi, there was an error with my mailbox and I can't open your mail and test
the patch, could you please send it again? Thank you!
Di, Yu
4.4
[EMAIL PROTECTED] (Geoffrey Young) wrote:
sorry for the inconvienence (but probably nobody is using it anyway :) To
make up for it, pnotes now supports complex data structures via Data::Dumper
Is this really true? I thought pnotes supported complex data structures simply
because it can store
On Tue, 4 Apr 2000, Daniel Jacobowitz wrote:
[mod_perl people - any comment? Please keep the Cc: list to the Debian
bug tracking system.]
When using the XML::Parser::Expat under mod_perl, this causes segmentation
faults (quite random?) in the child-processes of httpd.
The error
I've been seeing the same segfault-on-connect problem with Apache 1.2.12
+ mod_perl 1.22 + DBI 1.13 + Msql-Mysql-modules 1.2211. The segfault is
due to a null first argument being passed to mysql_real_connect().
Running Apache with a -X argument yields the following backtrace when my
mod_perl
Hi,
Can someone help me out here?
Apache_1.3.12
mod_perl 1.21_03
Apache-Session-1.03 ( Database and deamon locker for storing and locking
sessions )
-- code snippet --
sub getSESSION {
my $self = shift;
my $sid = shift;
my %SESSION;
eval {tie %SESSION,
On Tue, 4 Apr 2000, Yu Di wrote:
Hi, I did compile it statically. But currently for my program, I always
get such errors.
My Apache is 1.3.12, Perl is 5.6.0, mod_perl is 1.22.
The relevant part in my httpd.conf is:
any difference if you pre-load:
PerlModule Apache::Registry Apache::ASP
Has anyone built RPMsfor redhat 6.1 with
apache/1.3.9 and mod_perl 1.2.2 where DSO actually works. If not, I would like
to know how to do it.It's a shame that redhat linux 6.1is
shipping with a broken mod_perl, and I believe it would help the cause for
mod_perlif linux 6.1 users could
On Tue, 4 Apr 2000, Yu Di wrote:
Hi, there was an error with my mailbox and I can't open your mail and test
the patch, could you please send it again? Thank you!
sure..
--- src/modules/perl/mod_perl.c 2000/03/30 19:34:13 1.110
+++ src/modules/perl/mod_perl.c 2000/03/30 19:35:25
@@
I added that before my "Files ~ "\.mpl$"", no change.
BTW, the Apache::Registry test program always worked correctly.
Di, Yu
4.4
On Tue, 4 Apr 2000, Doug MacEachern wrote:
On Tue, 4 Apr 2000, Yu Di wrote:
Hi, I did compile it statically. But currently for my program, I always
get such
On Tue, 4 Apr 2000, Doug MacEachern wrote:
Date: Tue, 4 Apr 2000 14:27:28 -0700 (PDT)
From: Doug MacEachern [EMAIL PROTECTED]
To: Oleg Bartunov [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Subject: Re: 1.22_01-dev: Modification of a read-only value ...
No, this doesn't fixed the problem. I
Which handler would be appropriate to do the cleanup on this?
-Original Message-
From: Doug MacEachern [mailto:[EMAIL PROTECTED]]
Sent: Sunday, April 02, 2000 10:39 PM
To: Serge Serge Barbosa Da Torre
Cc: [EMAIL PROTECTED]
Subject: Re: Set DocumentRoot from modperl
there have been
On Tue, 4 Apr 2000, Sang Han wrote:
Hi,
Can someone help me out here?
...
panic: POPSTACK
Callback called exit.
Something in your module is calling Perl's exit() instead of $r-exit.
http:[EMAIL PROTECTED]
- Matt
I haven't built any rpms myself, but I am using Redhat v6.1, Apache v1.3.9-8, perl
v5.00503-6, and mod_perl v1.21-2. They were all downloaded from RedHat's FTP site as
rpms, and worked fine after installation. I think many people encounter difficulty in
correctly modifying the httpd.conf file
How do I keep mod_perl from trying to use the experimental thread
feature in perl, even when I built perl with that option? Is this
possible? See the build error that I get below.
I'm using mod_perl 1.22, perl 5.005_63, and apache 1.3.12.
Please cc any replies to me, as I don't regularly read
On Tue, 4 Apr 2000, Karyn Ulriksen wrote:
Which handler would be appropriate to do the cleanup on this?
you register the cleanup function from whatever handler changes
document_root. that'll happen at the same time as PerlCleanupHandler,
which is after PerlLogHandler.
my $old_docroot =
Yu Di wrote:
This program has been tested under Perl5.005_03, Apache 1.3.11, mod_perl
1.21 on another machine. my.conf is a configuration file for this program.
Lynx will report "Alert!: Unexpected network read error; connection
aborted." while I try to connect to it, and the server error
http://perl.apache.org/guide/performance.html#Persistent_DB_Connections
The answers to most beginner questions are in the guide as well.
--Jeff
At 05:28 PM 4/4/00, Adam Gotheridge wrote:
I have been using zope for a while and while it is cool, I really like the
speed/power/ease-of-use of perl
I have mod perl installed as a DSO. I can confirm this (I think) by:
--
% telnet localhost 80
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
HEAD / HTTP/1.0
HTTP/1.1 200 OK
Date: Tue, 04 Apr 2000 18:01:21 GMT
Server:
[EMAIL PROTECTED] (Doug MacEachern) wrote:
i'll share my thoughts on this that we discussed at ApacheCon.
i'm not sure about a dedicated "mod_perl conference" standing on it's own
two feet. at least, not at the production level of ApacheCon or oracon,
but maybe something like YAPC.
I second
I've generally created a cgi script per page. Is that a mistake?
(I embed the perl in my html so I can edit pages with an html editor)
I need a better technique for invoking traversals to other pages.
Right now all I can do is a redirect (internal or external).
How do you organize things so
"DD" == Drew Degentesh [EMAIL PROTECTED] writes:
DD Unfortunately, even the simplest of scripts bombs out... Consider:
DD --
DD # login.pl
DD #!/usr/bin/perl
DD use Apache() || die "cant use apache()";
DD
This might be a bit premature, but here goes...
Something I've wanted to have for a long time was a cookbook for
mod_perl. It is nice to go to the _Perl Cookbook_ (O'Reilly) and
look up a solution to a problem without having to spend a day or
even an hour or two trying to figure it out.
Is there anything 'Bad (tm)' about creating a selective typeglob alias in
one package to a lexical that is definitely going to go out of scope in a
second package? It seems to work, but I feel like I may be missing
something...
For example, consider two packages, A and B. B has a subroutine
"Doug" == Doug MacEachern [EMAIL PROTECTED] writes:
Doug won't performance suffer in that case? i "benchmarked" Perl
Doug malloc vs. system malloc under solaris once, there were far
Doug more syscalls to brk() with system malloc.
Ilya has claimed for about 18 mths now that
On Tue, 4 Apr 2000, Paul G. Weiss wrote:
Has anyone succeeded in building this for Solaris? This sounds
like an interesting module and I'd like to be able to use it.
you'll have a whole lot of trouble with libgtop under solaris. last i
tried with 1.0.2-ish, i had to patch the libgtop
Has anyone succeeded in building this for Solaris? This sounds
like an interesting module and I'd like to be able to use it.
Apache::VMonitor relies on GTop, GTop in turn relies on libgtop C lib. So
if you get C lib compiled on Solaris, you get the rest working. See
71 matches
Mail list logo