On Tue, 4 Apr 2000, Stas Bekman wrote:
> > > 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 HTML
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 whi
Did you install DBD ?? fro the particular database you installed.
eg for mysql install
cpan> install Bundle::DBD::mysql
Rajesh Kumar Mallah
---
Learning Universe Pvt. Ltd.
59 Mandakini, GK IV, New Delhi 110019
Tel: (91-11) 6412100, 6480342, 6480365
http
On Tue, 4 Apr 2000, B&T wrote:
> 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 ext
Tom Christiansen <[EMAIL PROTECTED]> wrote:
>>This is by no means meant to replicate information readily
>>available in other resources such as the _Perl Cookbook_, the
>>Eagle book, or Stas's mod_perl Guide. This is meant to compliment
>>them.
>
>Compliments are always appreciated. Complem
>This is by no means meant to replicate information readily
>available in other resources such as the _Perl Cookbook_, the
>Eagle book, or Stas's mod_perl Guide. This is meant to compliment
>them.
Compliments are always appreciated. Complements might work better for the
general public, tho
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. Befo
> "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> -
I tend to prefer using a library or module to handle CGI logic like this
and then drop out to the main script if the logon has been successful. The
important thing is to make sure that the workflow is separated into a
separate module. In mod_perl, you may have the option of having a mod_perl
handl
B&T <[EMAIL PROTECTED]> wrote:
>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)
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 that
> "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
reassign 61231 libxml-parser-perl
thanks
And sure enough, the man is right. This is not mod_perl's problem.
When I disable RULE_EXPAT, apache ceases crashing.
On Tue, Apr 04, 2000 at 02:49:36PM -0700, Doug MacEachern wrote:
> On Tue, 4 Apr 2000, Daniel Jacobowitz wrote:
>
> > [mod_perl peopl
[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 secon
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: Apac
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 per
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
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 = $r
The "Scripting languages for Apache" concept is a winner.
If it was presented to both intermediate and advanced levels, it would no
doubt be well attended. I know many developers who actually have voiced
their wishes for something like this.
Let me know if you need any help if you decide to go
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
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. but i do know that there is not a
conference which has
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 af
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
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 document_root;
$r->register_cleanup(sub { shift->document_root($old_docroot) });
the lifetime of conf->ap_docu
I have been using zope for a while and while it is cool, I really like the
speed/power/ease-of-use of perl so I would like to mimick some of the more
important functions I saw in zope and I can't figure it out.
One of the cool zope things was that you made one db connection object and then
all da
A few months ago there was a discussion of whether to put mod_ssl into a
front-end or a back-end server. I've summarized it for a new Guide's item.
Before I put it there, please see whether I didn't miss something. Thanks!
=head1 mod_perl and mod_ssl
If you need an SSL functionality, you can get
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 p
I added that before my "", 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 errors.
> >
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
@@ -1557
Has anyone built RPMs for 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.1 is
shipping with a broken mod_perl, and I believe it would help the cause for
mod_perl if linux 6.1 users could s
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
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, 'Apache::S
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 mo
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
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 sourc
On Tue, 4 Apr 2000, Alan Burlison wrote:
> "Paul G. Weiss" wrote:
> >
> > Sad to say still not working.
>
> I'd suggest building perl with -Uusemymalloc.
won't performance suffer in that case?
i "benchmarked" Perl malloc vs. system malloc under solaris once, there
were far more syscalls to brk
On Tue, 4 Apr 2000, Roca, Ignasi wrote:
> [error] DYNA:Can't load module GD, dynamic loading not available in this
> perl.
your 'perl -V' would help.
> I'm working with perl5.005.63 and and Apache.1.3.9.
and, i would stick with either 5.005_03 or 5.6.0, not an old developer
release inbetween
[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
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
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:
SetHandler perl-script
PerlHandler Apache::Registry
Options ExecCGI
SetHandler perl-script
> "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 comm
> 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 stac
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 t
> 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 PerlSendHea
On Mon, 3 Apr 2000, Paul G. Weiss wrote:
> Question: is there anyway that I can do the same with
> command line arguments without having to patch the Makefile's
> (a goal here was not to have to rebuild Perl yet again)?
this patch will pass along all of Perl's ccflags when compiling the apache
> 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
http://home-of-linux.or
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 a
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.
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
> $A
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, 'Apache::S
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 installed
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, sv_re
>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 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 t
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
[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, th
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
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
Has anyone succeeded in building this for Solaris? This sounds
like an interesting module and I'd like to be able to use it.
-Paul
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:
Is there anyway to get AuthDBI to connect on initialization of the web server
like you can with "DBI->connect_on_init(...)"?
Yes, I am preloading it.
Below is my entire startup.pl none of the script load globally
and please note that it does work in 1.21 but not in 1.22
#load perl modules of your choice here
#this code is interpreted *once* when the server starts
use Apache::Status ();
use Apache::Registry ();
use De
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_
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: Ge
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 u
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 mod
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, $vir
>> 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 go
> 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 p
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
> "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>
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 mod
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.
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
help
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
#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", "/home/vshopper/pu
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 = shif
> 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 emula
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.
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
ht
B&T ([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 i
> "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>
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 modul
"Paul G. Weiss" wrote:
>
> Sad to say still not working.
I'd suggest building perl with -Uusemymalloc.
Alan Burlison
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 sur
85 matches
Mail list logo