On Wed, 31 May 2000, Dylan Weed wrote:
I can't seem to get Apache::Session to save the blessedness of an object.
Is this an oversight on my part, a limitation of the module, a limitation
of the database, or an intentional design decision?
Conceptually, it seems as though an objects
On Wed, 31 May 2000, DeWitt Clinton wrote:
Hi all,
Okay, this is a rather ridiculous question. I spent the weekend
implementing a property based object model in Java. However, after I
finished, someone in my company laughingly pointed out that I had just
re-invented Java beans. While
On Wed, 31 May 2000, Perrin Harkins wrote:
Thanks for the reply. I have a few problems though:
You need to read up a little on modules and "require" in Perl5.
The quick and dirty solution is to use "do" instead of require. That will
solve your immediate problem, but you'll still be
Philip Mak wrote:
I can't seem to get "do" to work. I did this:
my $series_name;
do "series_$series.i"; # -- note include filename depends on a variable
print "$series_name\n";
Your lexical ("my") variable in the same scope is taking precedence, and
the "do' is not allowed to see lexicals
Karl Djemal wrote:
Thanks for the reply. I'm not quite sure what you are asking here - may be
what I asked wasn't to clear.
I was asking if you import any subs or variables from MyModule.pm. If
you don't know what I mean, then you probably don't.
I'm using Apache::Registry as a PerlHandler
The penny's dropped! I now understand what you are getting at.
Thanks for the help.
Regards,
Karl
Perrin Harkins wrote:
Karl Djemal wrote:
Thanks for the reply. I'm not quite sure what you are asking here - may be
what I asked wasn't to clear.
I was asking if you import any subs or
I am using IBM's C complier (cc) under AIX 4.3.3 with Apache 1.3.12,
mod_perl 1.24 (statically linked, not DSO), perl 5.00503, and Embperl
1.3b3.
The "offline", "execute function", and "cgi mode" Embperl tests are
all successful. In the "mod_perl" mode, even the simple "ascii" test
fails.
On Wed, May 31, 2000 at 04:16:09PM -0700, Perrin Harkins wrote:
Maybe I'm just being thick, but if you leave out the event driven parts of
the spec, what's left that isn't just an ordinary Perl class? You can
easily make classes to hold data using Class::Struct or
Class::MethodMaker.
In
All,
I have just installed Apache::Session successfully with Apache/mod_perl
version 1.24..
I have two sample script one from example avaiable with installation
which uses 'Apache::Session::File' for session tracking and other file,
I have created from the given example but that uses
In a message dated 6/1/2000 10:59:48 AM Eastern Daylight Time,
[EMAIL PROTECTED] writes:
Now, I am successfully able to run the script and generate sessionID and
store that sessionID in MySQL database table.. But column 'a_session' is
always empty!! Following is my code.. When I ran this
Folks,
I have created a web based searchable email archive for the mod_perl
mailing list. If anyone is interested in using it you can access it by
going to http://www.securityinsight.com/archive/external/mod-perl/.
I know there are several archives avaliable already but I figured since
I was
The following works on Apache/1.3.6 (Unix) mod_perl/1.21
mod_ssl/2.3.5 OpenSSL/0.9.3a
But when running on Apache/1.3.9 (Unix) mod_perl/1.21
mod_ssl/2.4.8 OpenSSL/0.9.4, I get the following problem
which _appears_ (I am not 100% sure) to be caused by
Apache::PerlVINC. I have the following
Yup...
you were right Josh
But actually I have defined that column as 'text' and not 'BLOB'.. But,
I wrote a small script to write query on that column and I was able to
see that.. So, my confusion has gone now..
The reason why I was wondering is, I had one application in which I am
using
After code verifying that the user hasn't already
been registered/approved, I changed the code below
==
if ($url !~ /NewReg[.]cgi$/o) {
$r-custom_response(FORBIDDEN,
"/public/NewReg.cgi");
return FORBIDDEN; # trigger custom_response
}
Hi,
I'm starting to play around with mod_perl, beginning with moving some
stuff under Apache Registry from cgi-bin.
One script makes use of the Msg.pm module I nicked from the O'Reilly
Advanced Perl Programming Book, to send a message from the web server to
another machine. This all worked
On Thu, Jun 01, 2000 at 01:53:10AM -0400, Robin Berjon wrote:
Suggestions about making portable database test scripts are welcome.
I think that DBD::CSV comes standard with DBI, would testing using that work ?
It didn't come standard with my DBI (and it needs SQL::Statement and
Text::CSV_XS)
This is probably flamebait, but I don't know where to go for this question.
What kind of release naming convention would you reccomend? Something like Debians'
"Potatoe", or RedHats' "Hedwig" et al.
So, I'm working on a proposal for an application, and I have several (widely diverse)
Doug MacEachern wrote:
On Thu, 25 May 2000, Mark Haviland wrote:
No...I was hoping to be able to use it as a DSO, but maybe I can't win
on this one
it would be worth testing a static build to confirm that the problem is
dso related. if it is, where to go from there i'm not sure, the
Hi,
I am running ActivePerl 5.6.0.613, Apache 1.3.12 on my NT4 (sp5)
I downloaded mod_perl-1.16-bin-bindist1-i386-win32-vc5.zip file to install
mod_perl
According to the Readme, I uncompressed the file and
* Moved ApacheModulePerl to c:\Apache\Modules(C:\Apache is the root for
Apache)
*
From: "parthasarathy mahendirababu" [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: Mod_perl installation on NT_ERROR
Date: Thu, 01 Jun 2000 10:13:01 PDT
Hi,
I am running ActivePerl 5.6.0.613, Apache 1.3.12 on my NT4 (sp5)
I downloaded mod_perl-1.16-bin-bindist1-i386-win32-vc5.zip file to
On Thu, 25 May 2000, Jeremy Howard wrote:
CGI::Carp preloaded.
DBI preloaded.
[Wed May 24 19:58:28 2000] [error] PerlRun: `Bizarre copy of HASH in aassign
at /usr5/perl/lib/5.6.0/Carp/Heavy.pm line 79.
...
Anyone else seen these?
Oh yes, I've been battling that tonight...
On Thu, 25 May 2000, Prasit P wrote:
By the way, i can access "http://209.10.98.1/index.html" using internet
browser, but not the perl socket.
because the browser doesn't include http://x.x.x.x in the http request,
unless you are configured to use an http proxy.
print $remote "GET
On Fri, 26 May 2000, Marc Lehmann wrote:
On Thu, May 25, 2000 at 12:09:09PM -0700, Doug MacEachern [EMAIL PROTECTED] wrote:
You can only configure Apache from Perl sections, but you can load all
your modules, shared data, etc. from a file pulled in with PerlRequire.
actually you can,
forget about mod_perl for a moment. yes, true, Perl's built-in require
will not reload a module if it's already in %INC. but that's doesn't mean
a Perl environment cannot un-cache that entry so it will be reloaded.
consider the code below, pretend that loop is a long-lifetime server,
Tk type
On Fri, 26 May 2000, Benedict Lofstedt wrote:
I have a number of apache servers on various hosts, not all of them are to
be mod_perl enabled. So, I tried to build apache with mod_perl as a DSO in
order to enable mod_perl via the httpd.conf file if needed.
I tried building mod_perl-1.24 as
On Fri, 26 May 2000, Mark Murphy wrote:
I have one more issue with the "make test" for mod_perl. The documentation
indicates that SSL doesn't like /dev/null and that SSLDisable is set. Well,
after changing /dev/null and making sure SSLDisable is set in the httpd.conf
file, I was still
On Fri, 26 May 2000, Marc Lehmann wrote:
I know this and I have no problems with that (as I made very clear in my
last mail). But when mod_perl requires special programming techniques this
does not mean that code not using that techniques is "broken anyway", as
dougm said, at least not in
On Fri, 26 May 2000, Fred Miller wrote:
Thank you very much. Sorry for being such a newbie.
no need to apologize, this sort of problem isn't normal, if anyone should
say sorry, it's sun for their flawed compiler kit.
I rebuilt Perl with gcc, and then was able to get a build of Apache with
On Tue, 30 May 2000, Alex Algard wrote:
Thanks, but installing glibtop only solved the GTop.pm issue. We're still
having the same problem with Scoreboard.pm. Below is the output from the
Scoreboard.pm installation process.
Error: 'Apache' not in typemap in DummyScoreboard.xs, line 122
you
On Tue, 30 May 2000, Jeremy Howard wrote:
* Many problems appear running under Apache::DB. In particular,
Apache::Util::escape_uri causes a segfault under Apache::DB in some
circumstances, as does Apache::Request::register_cleanup (when called as
a class rather than an object method)
*
1. regarding -compile, if the tags are imported into the startup.pl's
package or main:: they aren't inhereted by child processes and therefore
not adding some memory size to the total child process size, am I right?
(well it's shared anyway)
doesn't matter if it's shared, it's shared
On Tue, 30 May 2000, Michael Blakeley wrote:
Of course there was an error...
At 9:54 PM -0700 5/30/2000, Michael Blakeley wrote:
$r-log_error($errsv) if $Apache::RegistryYA::AutoLog;
s/RegistryYA/Registry
I'm also having second thoughts about the binary nature of this
On Wed, 31 May 2000, Kees Vonk 7249 24549 wrote:
I have two questions about perl sections:
1) Has setting an entry in the %ENV hash in a perl section
the same effect as using a SetEnv (or PerlSetEnv)
no, %ENV is cleared at startup, you need to use the *Env directives for
any you want
On Wed, 31 May 2000, Jeffrey W. Baker wrote:
On Tue, 30 May 2000, Jerrad Pierce wrote:
I'm running into an odd redirect ptoblem myself, I'm issuing:
HTTP/1.1 302 Moved Temporarily\n\r
Date: Tue 30 May 2000 18:18:07 GMT\n\r
Server: Apache/1.311\n\r
Set-Cookie:
On Wed, 31 May 2000, Geoffrey Young wrote:
I've seen this before and always thought to attribute it to mod_dir creating
a new request to properly map / to /index.html
since any notes set are for the lifetime of the request only, the new
request (representing /index.html) would/should have
On Thu, 1 Jun 2000, Kees Vonk 7249 24549 wrote:
The following works on Apache/1.3.6 (Unix) mod_perl/1.21
mod_ssl/2.3.5 OpenSSL/0.9.3a
But when running on Apache/1.3.9 (Unix) mod_perl/1.21
mod_ssl/2.4.8 OpenSSL/0.9.4, I get the following problem
which _appears_ (I am not 100% sure) to
On Thu, 1 Jun 2000, parthasarathy mahendirababu wrote:
I am running ActivePerl 5.6.0.613, Apache 1.3.12 on my NT4 (sp5)
I downloaded mod_perl-1.16-bin-bindist1-i386-win32-vc5.zip file to install
mod_perl
When I started the Apache Server I am getting the following Error
Apache.exe -
All,
I need to clear myself on a small issue regarding Apache::Session.
As per my understanding, Apache::Session will store session information
in a backing store-either a flat file or in some database. And
everytime, request comes in, it will check for sessionID in backing
store and retrieve
Well, from what I'm reading, it looks like you don't want it to create sessions for
all images, CSS, et al on the first page load, right? Instead of deleting sessions
that aren't used, you could try just not serving sessions to documents that don't need
'em.
Like in my setup, I've put in a
Sorry, forgot to mention, that you can define the PerlTransHandler in only those
directories that you want sessions created for.
-man
-Original Message-
From: Michael Nachbaur [mailto:[EMAIL PROTECTED]]
Sent: Thursday, June 01, 2000 1:08 PM
To: Niral Trivedi; [EMAIL PROTECTED]
Subject:
Mod_Rewrite does the same thing in a few less lines:
RewriteEngine On
RewriteCond /your/document_root/%{REQUEST_FILENAME} !-f
RewriteRule ^/S([^/]+)/(.*)/$2 [E=SESSION_ID:$1]
the RewriteCond statement just makes sure you don't (for some strange
reason) have a file/directory that is of the
At 12:40 PM -0700 6/1/2000, Doug MacEachern wrote:
On Tue, 30 May 2000, Michael Blakeley wrote:
$ diff -w Registry.pm.orig Registry.pm
26a27,28
$Apache::Registry::AutoLog ||= 32768;
155c157,160
$r-log_error($errsv);
---
{
local $^W = 0;
Thanks - but RegistryNG causes problems elsewhere in my code.
Apache::File::mtime() doesn't seem to work with RegistryNG. The code:
whoops!! Apache::PerlRun/RegistryNG were written before apache introduced
the ap_update_mtime api function. i've renamed Apache::PerlRun's version
to
On Thu, 1 Jun 2000, Paul wrote:
After code verifying that the user hasn't already
been registered/approved, I changed the code below
==
if ($url !~ /NewReg[.]cgi$/o) {
$r-custom_response(FORBIDDEN,
"/public/NewReg.cgi");
return
Is there a simple way already provided to add bytes served a request
into the log?
__
Do You Yahoo!?
Send instant messages get email alerts with Yahoo! Messenger.
http://im.yahoo.com/
This is really an Apache question, but:
In your LogFormat call (if you're using it), include the %b flag, which means 'Bytes
Sent'. (I got this from the O'Reilly Apache book).
-man
-Original Message-
From: Paul [mailto:[EMAIL PROTECTED]]
Sent: Thursday, June 01, 2000 2:22 PM
To:
$r-log-debug($r-bytes_sent);
On 01-Jun-2000 Paul wrote:
Is there a simple way already provided to add bytes served a request
into the log?
__
Do You Yahoo!?
Send instant messages get email alerts with Yahoo! Messenger.
http://im.yahoo.com/
Hi there people,
I have inherited a web server running mod_perl and I am experiencing a
somewhat critical problem: http processes sometimes get into an infinite
loop, using 100% cpu time, and given enough time bring the machine to a
halt.
I've done a lot of testing, and there isn't a specific
I have had this problem to varying degrees in all of my high traffic
mod perl installations. The thing that saves me is Apache::Resource.
In my httpd.conf I put :
PerlModule Apache::Resource
PerlSetEnv PERL_RLIMIT_DATA 32
PerlSetEnv PERL_RLIMIT_CPU 640
PerlChildInitHandler Apache::Resource
On Thu, 1 Jun 2000, Gustavo Duarte wrote:
there to see if it stops the problem (the code isn't too clean - lots of
global variables, not written under strict, etc, but "it works").
looks like a global variable is exactly what your problem is. somebody is
creating an Apache::SubRequest object
On Thu, Jun 01, 2000 at 12:00:45PM -0700, Doug MacEachern wrote:
On Fri, 26 May 2000, Michael hall wrote:
On Fri, May 26, 2000 at 01:36:33AM -0400, Jeff Stuart wrote:
Ok, follow up question if I may. :) Are any of you using it with DBI and
DBD::mysql? I see on the Mason list
you can find out which line of Perl code is triggering a spin, by
attaching to the process with gdb;
% gdb httpd $pid_of_spinning_process
% source modperl_x.xx/.gdbinit
% curinfo
should show you the filename:line_number where Perl is stuck.
% gdb httpd $pid_of_spinning_process
% source modperl_x.xx/.gdbinit
% curinfo
oops, that should be:
% gdb httpd $pid_of_spinning_process
(gdb) source modperl_x.xx/.gdbinit
(gdb) curinfo
On Thu, Jun 01, 2000 at 11:59:53AM -0700, Doug MacEachern [EMAIL PROTECTED] wrote:
will not reload a module if it's already in %INC. but that's doesn't mean
a Perl environment cannot un-cache that entry so it will be reloaded.
consider the code below, pretend that loop is a long-lifetime
I was wondering how people are clearing out old Apache::Session's
No timestamp is used on the fields used by Apache::Session, so how do
we clear the old sessions?
I am not talking about the delete() method to remove a session, as that
presumes that a user will always leave your site via
I was wondering how people are clearing out old Apache::Session's
No timestamp is used on the fields used by Apache::Session, so how do
we clear the old sessions?
I am not talking about the delete() method to remove a session, as that
presumes that a user will always leave your site via
Theres a problem with that however...it assumes you use mySQL. I use Oracle, and it
doesn't provide that functionality; you need to alter the INSERT or UPDATE statements
to include passing a SYSDATE into the timestamp field. 'Course, you could create a
trigger that adds the SYSDATE after an
At 09:26 AM 6/2/00 +1000, Adam Cassar wrote:
I was wondering how people are clearing out old Apache::Session's
No timestamp is used on the fields used by Apache::Session, so how do
we clear the old sessions?
I am not talking about the delete() method to remove a session, as that
presumes that
Theres a problem with that however...it assumes you use mySQL. I use Oracle,
and it doesn't provide that functionality; you need to alter the INSERT or
UPDATE statements to include passing a SYSDATE into the timestamp field.
'Course, you could create a trigger that adds the SYSDATE after an
On Thu, 1 Jun 2000, Niral Trivedi wrote:
Now, only way to remove this information from backing store is to do
'tied(%session_hash)-delete', Am I right? I mean is there any way we
can remove these entries by setting 'time_out_interval' or something
like that??
Your cron job idea sounds
On Fri, Jun 02, 2000 at 09:26:45AM +1000, Adam Cassar wrote:
I was wondering how people are clearing out old Apache::Session's
No timestamp is used on the fields used by Apache::Session, so how do
we clear the old sessions?
I am not talking about the delete() method to remove a session,
On Thu, 1 Jun 2000, Marc Lehmann wrote:
It's easy, I just have to kick my ass each time I want to use a lexical
for data abstraction and use a package variable instead, with only the
exception that I have to be very careful that I never re-use the same
name. This is quite difficult for code
On Fri, 26 May 2000, Eugene S. Panenko wrote:
Hi all,
Sorry if it is an incorrect list to ask...
I have a strange problem with mod_perl. I've tested mod_perl using a very
simple scripts (one of them is attached). The network load is emulated via
LAN
using a special proggy. The problem
On Thu, 25 May 2000, Michael Nachbaur wrote:
[...]
This site will have major traffic, will need to be extended and
changed (a lot), and needs to scale very well. My experience with
Perl (as well as what I've heard from other developers) is that Perl
turns to spaghetti rapidly once you hit
This is *exactly* the symptoms we see, and we're just about always up to
date with Apache/Perl/modperl releases.
We've spent a fair amount of time trying to isolate the cause of these,
but haven't been able to point the finger at any one cause. Some of the
things we've determined:
- The same
At 12:25 01/06/2000 -0400, Neil Conway wrote:
On Thu, Jun 01, 2000 at 01:53:10AM -0400, Robin Berjon wrote:
Suggestions about making portable database test scripts are welcome.
I think that DBD::CSV comes standard with DBI, would testing using that
work ?
It didn't come standard with my DBI
Sorry, it did not look like the email got sent
the first time.
-FW: [EMAIL PROTECTED]-
Date: Thu, 01 Jun 2000 21:53:49 -0500 (EST)
Sender: [EMAIL PROTECTED]
From: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: [Q] session mgmt
Hello,
I have difficulty in designing
highly scalable
machines boot cycle) that when we reboot (*every* monday morning in the
wee hours) it's not terribly likely that anyone's going to be around to
feed the password to the startup query.
Why reboot every week? My web servers are never rebooted, save for hardware
upgrades...
This really needs
KEN!
Bingo.
My bad. I was too anxious to make this work tonight and just did NOT do
the make properly.
KICK MYSELF! KICK MYSELF!
Thanks for being there,
montefin
Ken Williams wrote:
[EMAIL PROTECTED] (montefin) wrote:
Or, could it be that the location that %="$demo-{file}?virtual=1"%
71 matches
Mail list logo