mos_perl2 on Windows

2005-05-23 Thread Robert
C:/path/to/reports/ This is my first "exposure" to mod_perl so maybe it is me? Robert

Re: mos_perl2 on Windows

2005-05-23 Thread Robert
On 5/23/05, Randy Kobes <[EMAIL PROTECTED]> wrote: > On Mon, 23 May 2005, Robert wrote: > > > I just installed it via PPM (for ActiveStates 5.8.6.811). > > I had my site working under Apache1/CGI without problem. > > > > I upgraded to Apache2/mod_perl and I

Re: Can't load perl file

2005-06-09 Thread Robert
an error in this file" > What was the problem? I have that error as well and I used the example from the mod_perl site itself. Robert

Re: how to use mod_perl sections with mod_jk?

2006-08-01 Thread robert
Just exactly how does $PerlConfig work? Can I put my entire configuration in a here document using $PerlConfig? What are the limitations with $PerlConfig? Quoting Robert Nicholson <[EMAIL PROTECTED]>: > I found a small discussion on $PerlConfig but where is the > documentat

Re: how to use mod_perl sections with mod_jk?

2006-08-01 Thread robert
Well I did try to put my entire configuration and it was producing errors so now I'm liberally using Perl Sections and I'm going to try to use $PerlConfig to solve my mod_jk problem. if I've got three perl sections and I use perlconfig on the second one will everything "join" together correctly t

Confused about variable scope.

2006-08-01 Thread robert
So if my httpd.conf has multiple sections and I am doing something like this in the first one. for (`env`) { next unless /^X_/; /(.*)=(.*)/; $ENV{$1} = $2; push @PassEnv, $1; #print "$_\n"; } and I then do my $somevariable = $

Another question about variable scope.

2006-08-01 Thread robert
So my httpd.conf includes another file that also has Perl Sections it seems that the in a file included by httpd.conf then the condition isn't true Why is that? This message was sent using IMP, the Internet Messaging Program.

Re: Another question about variable scope.

2006-08-01 Thread robert
This was something else so please forget this particular question. Quoting [EMAIL PROTECTED]: > So my httpd.conf includes another file that also has Perl Sections > > it seems that the > so if httpd.conf loaded mod_perl and I try a > > > > in a file included by httpd.conf > > then the con

Re: Confused about variable scope.

2006-08-01 Thread robert
The approach I'm using is the suggested approach in the mod perl book. Basically setup the environment in order to pass information to apache so that it's available in httpd.conf and then in httpd.conf to use mod perl to interrogate %ENV. One problem is that mod_perl clears out %ENV so what you se

Re: how to use mod_perl sections with mod_jk?

2006-08-02 Thread robert
Perl Section? Unfortunately with the mod_perl setup I'm using I cannot use Apache::PerlSections->dump so it's hard to verify things. Quoting Robert Nicholson <[EMAIL PROTECTED]>: > So can you or somebody else post a complete httpd.conf that makes use > of $PerlConfig then? >

Re: how to use mod_perl sections with mod_jk?

2006-08-02 Thread robert
erytime I need to refer to > these > > variables in a Perl Section? > > If the Perl section are in the same file, I'd use lexical variables > because they are ignored by the mod_perl mechanism. If they are in > different files, pick names that are un

Re: LOG: Re: Retrieve server environment vars before response handler.

2006-09-20 Thread robert
Can anybody tell me why that doesn't work when you want to access environment variables set from the process that launches Apache and that you want to access those variables in your stanza in your httpd.conf? I recently had to do this because from what I could see PerlPassEnv doesn't work when yo

OT: list digest? list adminstrator?

2004-03-14 Thread Robert Friberg
Hi, Subscription requests to the digest version are failing silently, and messages to the list admin are not replied. Any clues? thanks, ! Robert Friberg 0733-839080 ! Developer/Trainer perl,java,dotnet

[ANNOUNCE] HTML::GenerateUtil 1.02

2004-05-27 Thread Robert Mueller
I thought some people on this list might find this useful. http://search.cpan.org/~robm/HTML-GenerateUtil-1.02/ I think the "Context" section probably gives the best overview. --- When creating a web application in perl, you've got a couple of main choices on how to actually generate the H

[MP2 Bug] test case t/apr-ext/uuid.t failuer

2004-07-01 Thread Robert Bruccoleri
_perl/5.005 . *** Packages of interest status: Apache::Request: - CGI : 3.05 LWP: 5.53, 5.79 mod_perl : 1.9914 3. This is the core dump trace: (if you get a core dump): No core dump This report was generated by t/REPORT on Fri Jul 2 00:05:50 2004 GMT. -8&

Problem with Apache::Session::MySQL

2004-07-14 Thread Pascal Robert
Hi, I have a strange problem with Apache::Session::MySQL. It create a session just fine, but it can't update itself. When I look at MySQL's binary log, I see the initial INSERT but I don't see any UPDATES: INSERT INTO sessions (id, a_session) VALUES ('9176a7b8acbfdc5697059d9a4fd6046a','\0\0\0

Re: Problem with Apache::Session::MySQL

2004-07-15 Thread Pascal Robert
Le 04-07-14, à 18:03, Perrin Harkins a écrit : On Wed, 2004-07-14 at 17:45, Pascal Robert wrote: I have a strange problem with Apache::Session::MySQL. It create a session just fine, but it can't update itself. Usually this means that either your session object isn't going out of sc

[mp1] 64 bit perl/apache and 32 bit shared objects

2004-10-05 Thread Robert Landrum
perl core dumps. I think the problem is that the conversion from 64-bit T_IVs to ints is 32 bits too long for the shared methods, but I'm not 100% certain I'm right. Anyone ever run into this problem before? Can I solve it with XS? Rob -- Robert Landrum Systems Programmer -- Report

print rflush sendfile

2004-11-18 Thread Robert Ferney
I am experancing the following undesirable behavior. My code looks somethign like this.. $r->print("Some htmlish bits"); $r->rflush; $r->sendfile("/path/to/somefile"); $r->print("Some more htmlish bits"); $r->rflush; $r->sendfile("/path/to/someotherfile"); which I do twice before I finish the r

Re: print rflush sendfile

2004-11-18 Thread Robert Ferney
Paint me purple and color me an idiot, nevermind, I found my problem. thanks yall anyway. On Thu, 18 Nov 2004 20:13:19 -0700, Robert Ferney <[EMAIL PROTECTED]> wrote: > I am experancing the following undesirable behavior. > > My code looks somethign like this.. > > $r->

Re: Shopping Cart Software

2004-11-20 Thread Robert Ferney
The question for me is, do they work under Apache2 or are they only working for Apache 1.3 On Sat, 20 Nov 2004 14:05:16 -0800 (PST), Fred Moyer <[EMAIL PROTECTED]> wrote: > > Use clickcartpro its Perl, its easy , and it rocks! > > > > Interchange is also worth taking a look at. > > http://www.ic

[Config] Upgrading, Need stable setup

2003-10-26 Thread Robert Friberg
ts time to upgrade anyways, maybe then the seggies will disappear. So to the question... Are there any known issues with Redhat 8.0 which ships with perl 5.8.0, httpd 2.0.40 and mod_perl 1.99? Or should I go for something else? mvh, #--- # Robe

[Summary] [Config] Upgrading, Need stable setup

2003-10-28 Thread Robert Friberg
got the segfaults though, but I have resolved that issue now. I had an inner sub with a reference to the Apache::Request object. Ouch. mvh, #--- # Robert Friberg perl,java,xml,uml,sql,delphi, # Systemutvecklare c/c++,vb,php,linux,apache

RE: [Summary] [Config] Upgrading, Need stable setup

2003-10-28 Thread Robert Friberg
Isn't perl just passing a bad memory reference? mvh, #------- # Robert Friberg perl,java,xml,uml,sql,delphi, # Systemutvecklare c/c++,vb,php,linux,apache # 0733-839080 # # Ensofus AB linuxservrar,serverhosting, # www.ensofus.se

RE: [Summary] [Config] Upgrading, Need stable setup

2003-10-28 Thread Robert Friberg
> Without seeing the backtrace I can't tell whether it's a bug in > Apache::Request or Perl. And either way, the bug report should go to perl5-porters list? mvh, #------- # Robert Friberg perl,java,xml,uml,sql,delphi, # System

RE: [Summary] [Config] Upgrading, Need stable setup

2003-10-29 Thread Robert Friberg
Oops, sorry. The answer was in your message. mvh, #--- # Robert Friberg perl,java,xml,uml,sql,delphi, # Systemutvecklare c/c++,vb,php,linux,apache # 0733-839080 # # Ensofus AB linuxservrar,serverhosting, # www.ensofus.se

Can't locate loadable object?

2003-11-06 Thread Robert Friberg
che//conf/startup.pl line 12. Compilation failed in require at (eval 2) line 1. mvh, #------- # Robert Friberg perl,java,xml,uml,sql,delphi, # Systemutvecklare c/c++,vb,php,linux,apache # 0733-839080 # # Ensofus AB linuxs

RE: Can't locate loadable object?

2003-11-06 Thread Robert Friberg
LL.simple mvh, #--- # Robert Friberg perl,java,xml,uml,sql,delphi, # Systemutvecklare c/c++,vb,php,linux,apache # 0733-839080 # # Ensofus AB linuxservrar,serverhosting, # www.ensofus.se internetsystem, Miljo Online #---

Question about headers and Apache::Filter

2003-11-14 Thread Robert Knaak
headed type sent? Thanks, Robert -- Reporting bugs: http://perl.apache.org/bugs/ Mail list info: http://perl.apache.org/maillist/modperl.html

RE: Question about headers and Apache::Filter

2003-11-17 Thread Robert Knaak
Thanks for the info Perrin, I was able to make it work by adding an AddType. I am still wondering why every example I see with Apache::RegistryFilter and Apache::SSI makes no mention of having to set the header. Robert -Original Message- From: Perrin Harkins [mailto:[EMAIL PROTECTED

Problems with DBI & modperl on Irix 6.5

2005-07-05 Thread Robert Aspinall
27;d love to get mod_perl running. Thanks, -- Robert Aspinall NOAA's National Ocean Service CO-OPS/Information Systems Division 1305 East-West Highway Bldg. SSMC4, Station Id 6314 Silver Spring, MD 20910 [EMAIL PROTECTED]

Re: Problems with DBI & modperl on Irix 6.5

2005-07-05 Thread Robert Aspinall
Yes, DBI is installed and up to date, as is Apache::DBI. Robert Aspinall NOAA's National Ocean Service CO-OPS/Information Systems Division 1305 East-West Highway Bldg. SSMC4, Station Id 6314 Silver Spring, MD 20910 [EMAIL PROTECTED] Michael Peters wrote: Robert Aspinall

Re: Problems with DBI & modperl on Irix 6.5

2005-07-06 Thread Robert Aspinall
odperl with gcc, but even when I softlink cc to gcc, it still insists on using the -n32 flag, which is invalid with gcc.  Any ideas, anyone? Robert Aspinall wrote: Hello, I'm running modperl 1.29 on Apache 1.3.31 with Perl 5.8.2, running on Irix 6.5.25m. When I try to use

Re: Problems with DBI & modperl on Irix 6.5

2005-07-06 Thread Robert Aspinall
ldd DBI.so just returns: libc.so.1 => /usr/lib32/libc.so.1 Robert Aspinall NOAA's National Ocean Service CO-OPS/Information Systems Division 1305 East-West Highway Bldg. SSMC4, Station Id 6314 Silver Spring, MD 20910 [EMAIL PROTECTED] Stas Bekman wrote: [Robert, please don

Re: Problems with DBI & modperl on Irix 6.5

2005-07-06 Thread Robert Aspinall
I'm not sure what output you're looking for, but if I run ldd on /var/sgi_apache/httpd-outbox/libexec/libperl.so: libm.so => /usr/lib32/libm.so libc.so.1 =>/usr/lib32/libc.so.1 Which file do you want me to ldd as far as the perl lib goes? Robert Aspinall NOAA&

Re: Problems with DBI & modperl on Irix 6.5

2005-07-06 Thread Robert Aspinall
it is complete... Looks good I see you're using perl 5.008002 on IP27-irix, okay. Robert Aspinall NOAA's National Ocean Service CO-OPS/Information Systems Division 1305 East-West Highway Bldg. SSMC4, Station Id 6314 Silver Spring, MD 20910 [EMAIL PROTECTED] Stas Bekman wrote: Robert

Re: Problems with DBI & modperl on Irix 6.5

2005-07-06 Thread Robert Aspinall
There is more than one perl installed (an unfortunate side effect of IRIX). Any idea how to get cpan to only build using 5.8? Stas Bekman wrote: > Something I noticed when reinstalling DBI.. it's finding perl 5.008 > somewhere on the system, despite invoking cpan with the 5.8 binary. I > ge

Re: Problems with DBI & modperl on Irix 6.5

2005-07-06 Thread Robert Aspinall
No, when I invoked CPAN I did it as /usr/local/bin/perl -MCPAN -e shell (the location of the perl 5.8 binary) Robert Aspinall NOAA's National Ocean Service CO-OPS/Information Systems Division 1305 East-West Highway Bldg. SSMC4, Station Id 6314 Silver Spring, MD 20910 [EMAIL PROT

Re: Problems with DBI & modperl on Irix 6.5

2005-07-06 Thread Robert Aspinall
You're probably right, I hadn't noticed the signifigant digits were the same.  Thanks for the heads up.  Now if I could just figure out why modperl refuses to work with DBI.. Robert Aspinall NOAA's National Ocean Service CO-OPS/Information Systems Division 1305 East-West High

Re: I need to unsub

2005-07-08 Thread Robert Aspinall
I think he was asking what address he subscribed under. It's [EMAIL PROTECTED] Robert Aspinall NOAA's National Ocean Service CO-OPS/Information Systems Division 1305 East-West Highway Bldg. SSMC4, Station Id 6314 Silver Spring, MD 20910 [EMAIL PROTECTED] Stas Bekman wrote:

how to use mod_perl sections with mod_jk?

2006-07-31 Thread Robert Nicholson
So I'm trying to make a great deal of my httpd.conf dynamic based primarily on hostname etc. I have most of it working but I've found that at least in my case I cannot use mod_jk directives in a perl section. Q. Should I be able to use mod_jk directives in a perl section? push @JkWorkerPr

Re: urgent help needed

2006-07-31 Thread Robert Nicholson
Google for mod_perl book and read it. I'm sure it has the correct steps to get perl and @INC setup correctly.http://modperlbook.org/html/ch03_09.htmlAfter you've loaded the perl module itself you want to change @INC to include where Apache2is. If you want I think you can put that logic in an stanz

Re: how to use mod_perl sections with mod_jk?

2006-08-01 Thread Robert Nicholson
es or should that be possible? On Aug 1, 2006, at 12:58 AM, Andreas J. Koenig wrote: On Mon, 31 Jul 2006 23:00:33 -0500, Robert Nicholson <[EMAIL PROTECTED]> said: So I'm trying to make a great deal of my httpd.conf dynamic based primarily on hostname etc. I have most of it workin

Re: how to use mod_perl sections with mod_jk?

2006-08-01 Thread Robert Nicholson
So can you or somebody else post a complete httpd.conf that makes use of $PerlConfig then? On Aug 1, 2006, at 2:24 PM, Andreas J. Koenig wrote: On Tue, 1 Aug 2006 13:56:31 -0500, [EMAIL PROTECTED] said: That resulted in errors at least in my case. You did read that I said you need SVN r

Re: reposting form values

2006-11-28 Thread Robert Landrum
Torsten Foertsch wrote: On Tuesday 28 November 2006 21:31, Patrick Galbraith wrote: Quick question - how does one do a repost (using POST, not GET) form values? This would be in a redirect TransHandler. Your only chance is to proxy the request to the other server. You cannot use a Location h

Re: DBI AutoCommit goes away when db connection is killed

2006-11-28 Thread Robert Landrum
Lev Lvovsky wrote: In testing out persistent connections while using transactions, we've noticed that while in a loop which continuously begins and ends a transaction, killing the persistent connection which Apache::DBI is maintaining causes the still-running handler to report things like: erro

Re: DBI AutoCommit goes away when db connection is killed

2006-11-29 Thread Robert Landrum
Lev Lvovsky wrote: Once you reconnect, the connection is persistent again. At least, that's been my experience with postgresql. This is exactly what I've been thinking to do, but I've not seen anything within Apache::DBI that allows me to reconnect per se. How do I perform that action? Al

Re: Instability at startup for Apache2/mod_perl2 using worker MPM

2006-11-30 Thread Robert Landrum
Perrin Harkins wrote: David Scott wrote: I've built Apache 2.2.3 and mod_perl 2.0.3 with libapreq 2.08 and the worker MPM. There appears to be some kind of race condition at startup that prevents the server from coming up. This only happens once in a while, and can be fixed by some minor con

Re: reset multiple cookies

2006-12-11 Thread Robert Landrum
Marc Lambrichs wrote: Date: Sun, 10 Dec 2006 12:50:09 GMT Server: Apache Set-Cookie: auth_tkt=; path=/; domain=main.domain.com; expires=Sun, 10-Dec-2006 11:50:09 GMT Set-Cookie: auth_tkt=; path=/; domain=first.domain.com; expires=Sun, 10-Dec-2006 11:50:09 GMT Set-Cookie: auth_tkt=; path=/; doma

Re: Forking to an interactive program under mod_perl

2006-12-12 Thread Robert Landrum
Alex Beamish wrote: What I'm trying to do is come up with scaled page images from a PDF on the fly. Thus, I want to launch Ghostscript and then ask for a couple of page images. So, launching Ghostscript and getting the first page might happen on the first request; subsequent requests would come

Re: Forking to an interactive program under mod_perl

2006-12-13 Thread Robert Landrum
Alex Beamish wrote: I'll deal with multiple documents with some combination of stale timers and LRU slots, but that's not really what I see as the most complicated or difficult part of this problem. For this particular application, my inactivity timer will probably by 10-15 minutes, and I'll ex

Re: The case of the disappearing plus sign

2006-12-18 Thread Robert Landrum
Chris Schults wrote: It appears that the "+" is getting stripped out at some point as the script is returning results for "water pollution" instead of "water+pollution". Is it possible that Apache is the culprit or should we be looking more closely at our script or rewrite rule? The test would

Re: localhost vs vhost problem

2006-12-20 Thread Robert Landrum
Well.. For one thing, vhost1.turnbui.net isn't a ServerName entry or a ServerAlias entry. I'd start by adding that. Rob turnbui wrote: ServerName ianst.homeip.net DocumentRoot "C:/Program Files/Apache Software Foundation/Apache2.2/iansthtdocs" # ErrorLog logs/ianst-host-error.log # Custom

Re: localhost vs vhost problem

2006-12-20 Thread Robert Landrum
turnbui wrote: Sorry Rob, just my vain attempt to protect the innocent. In fact it is ianst.homeip.net that I am using. Sorry to mislead. Okay. So just to rehash here... ASP does not work at: http://ianst.homeip.net/asp ASP works correctly at: http://localhost/asp localhost isn't a server l

Re: localhost vs vhost problem

2006-12-20 Thread Robert Landrum
Perrin Harkins wrote: Robert Landrum wrote: localhost isn't a server listed in your VirtualHost section in either ServerName or ServerAlias. That means that the VirtualHost section isn't even a consideration when hitting localhost. Doesn't that mean it just takes the first V

Re: Bug Report

2007-01-04 Thread Robert Landrum
Snook, Adrian (London) wrote: 3. This is the core dump trace: (if you get a core dump): Core was generated by `/home -k start'. Program terminated with signal 11, Segmentation fault. #0 0x002f201e in free () from /lib/tls/libc.so.6 (gdb) bt full #0 0x002f201e in free () from /lib/tls/libc.so

Re: Lost ENV variable value .........

2007-01-11 Thread Robert Landrum
Tracy12 wrote: Thanks, If this is the case, How can we preserve the REMOTE_USER value and forward/redirect to the other application ( running on same Apache Server) which is based on the REMOTE_USER environment variable, which is set in my perl module in the first application. I was under th

Re: Lost ENV variable value .........

2007-01-11 Thread Robert Landrum
Perrin Harkins wrote: After successful authentication we need to pass the control to another application(which is running on the same apache server) which depend on the REMOTE_USER value which we set. That will work fine, as long as your auth handler runs in the same request as the thing that w

Re: Lost ENV variable value .........

2007-01-11 Thread Robert Landrum
Tracy12 wrote: 1) As we dont use the apache basic authentication but our CAS authentication. If the authentication is not successful how can we redirect to the CAS login page. Ah-ha... So CAS authentication is done via a webform of some type, which means that it uses cookies. Am I correct i

Re: Port/Sheme information

2007-01-16 Thread Robert Landrum
Tracy12 wrote: How can we retrieve the URL Scheme (http/https ?) from a perl module, Port given that only input parameter is $r should we use my $uri = Apache::URI->parse($r) and $uri->scheme; I use $r->get_server_port. If it's 80 it's http, if it's 443, it's https. Of course, this

Re: Redirects?

2007-01-17 Thread Robert Landrum
Will Fould wrote: I have a strange issue with a particular script that sometimes (often) generates a 302 to another script without a clear reason why. Oddly enough, I simply placed a few "warn('blah')" code snippets to crudely determine from the error log where it was happening in production

Re: file descriptor for client socket?

2007-01-17 Thread Robert Landrum
Daniel Risacher wrote: Is it possible to get the file descriptor for the client socket from the RequestRec? I.e. something like $r->FILENO (which doesn't seem to work) or perhaps $r->connection->client_socket->os_sock (os_sock exists in the APR structure in C, but there doesn't seem to be a p

Re: Session Handling/Set Session attributes

2007-01-17 Thread Robert Landrum
Tracy12 wrote: My perl authentication handler works fine BUT the biggest problem inside my Auth handler I do some resource intenstive tasks and if everything successful set the REMOTE_USER env variable. But for the subsequent requests from the same user (after the initial Authentication is succe

Re: Catching errors

2007-01-18 Thread Robert Landrum
Jonathan Mangin wrote: sub handler { my $r = shift; my $req = Apache2::Request->new($r); my $foo; # eval {$foo = $req->param('foo')}; $foo = $req->param('foo'); You might want to make sure $r is really $r. If you configure apache such that you use PerlHandler Foo->handler, I be

Re: mod_perl best practices cleanup

2007-01-22 Thread Robert Landrum
Tracy12 wrote: I tried to declare use vars qw( $SESSION_CLEANUP_COUNTER); and increment within the code doent seem to work, Shoud i increment this in a specific hanlder. You really need to heed the advice of the list and consider using the a cron job to expire old sessions. It's really not

Re: Troubleshooting Apache2 Segfaults

2007-01-24 Thread Robert Landrum
Joel Gwynn wrote: Here's my backtrace, any ideas? #0 0xb7a58743 in modperl_dir_config (my_perl=0x81b6eb0, r=0x823ce98, s=0x203a6e6f, key=0x8800c38 "CONFIG_FILE", sv_val=0x0) at modperl_util.c:516 #1 0xb78dae84 in XS_Apache2__RequestRec_dir_config (my_perl=0x81b6eb0, cv=0x82cd074) at Requ

Re: Troubleshooting Apache2 Segfaults

2007-01-24 Thread Robert Landrum
Joel Gwynn wrote: Interesting. I just might be doing that: $config_file = $self->param('r')->dir_config('CONFIG_FILE'); In my section, I have this: PerlSetVar CONFIG_FILE /projects/funnyr_dev/private/config.ini And of course I'm not using flock on that file. Hmmm. Try changing that up...

Re: Troubleshooting Apache2 Segfaults

2007-01-24 Thread Robert Landrum
Perrin Harkins wrote: My guess is that $self has a lifespan longer than one request, so you are trying to use a $r object from a previous request. Would $r still be defined in that instance? Rob

Re: undefined routines & mod_dbd

2007-01-30 Thread Robert Landrum
Garnier, Jeremie wrote: use Apache2::Module (); # test if an Apache module is loaded if (Apache2::Module::loaded('mod_dbd.c')) { … } But it dones: Undefined subroutine &Apache2::Module::loaded call at… I suspect that this may be because you're not actually running in mod_perl.

Re: Where does "MoveNext" belong to?

2007-02-06 Thread Robert Landrum
Patrix Diradja wrote: while(!$rsnya->{EOF}){ my $tab4l = $rsnya->fetchrow_array; print "\$tab4l: $tab4l \n"; $rsnya->movenext; } Not a mod_perl question, per se, but try while(my $tab4l = $rsnya->fetchrow_array) { print "\$tab4l: $tab4l\n"; } Rob

Re: Perl Authentication Handler and Cookie Issue

2007-02-16 Thread Robert Landrum
Sumit Shah wrote: Hello, I have a Mod Perl authentication handler and it needs to retrieve the session id from a cookie. It is unable to retrieve any cookies and I get the following error. It does not even print any of the cookies. I would appreciate any help with this. my $token = $c

Re: Server Side Image Maps & libapreq / cgi

2007-02-20 Thread Robert Landrum
Jonathan Vanasco wrote: How can I reliably catch this under libapreq / cgi ? ( the former for current use, the latter just-for-kicks ) As far as libapreq is concerned, I can't find any way -- it seems to be an odd special-case html spec. The short answer is: don't use server side image map

Re: Sry, 1 more question.. Apache2::Reload goofiness

2007-02-20 Thread Robert Landrum
[EMAIL PROTECTED] wrote: This is getting very frustrating, so I guess I should ask about this before I scrap the whole project and go back to CGI. I'm using Apache::Reload during development since I'm constantly making changes to code. However, it does not appear to be working right. Is t

Re: Server Side Image Maps & libapreq / cgi

2007-02-20 Thread Robert Landrum
Jonathan Vanasco wrote: On Feb 20, 2007, at 3:56 PM, Robert Landrum wrote: The short answer is: don't use server side image maps. That's not an option. I need to catch the xy on a gif. And yes, the long answer is to parse the URI yourself. arhh. ok. already doing tha

Re: Perl Authentication Handler and Cookie Issue

2007-02-20 Thread Robert Landrum
Sumit Shah wrote: I printed out the contents of the Cookie attribute in the request header and I can see the cookie present in the header. I read all the contents into a hash and then try to check for its existence. The if(exists($hashMap{'SSOTokenID'})) condition fails. Does it have anything

Re: Sample Web Application that uses mod_perl

2007-02-22 Thread Robert Landrum
aqua wrote: Dear Group, Some of you might have tried the mod_perl for the first time and tested with simple web application and it should be there some-where in your system. Could you please post a few. The problem is that it isn't exactly a simple thing. It sounds like you're looking for

Re: Error intercept.

2007-02-22 Thread Robert Landrum
Benoit Plessis wrote: $r -> headers_out->set('Content-Length', length $error_page); Hmm... Incident sur l'hebergement

Re: PerlAuthenHandler called twice?

2007-02-22 Thread Robert Landrum
Hadmut Danisch wrote: For some reason the module is called twice for every request. Is this a HEAD/GET problem? Maybe you're seeing the browser doing a HEAD request, then a full GET request? Rob

Re: Using or working around File::MMagic under mod_perl

2007-02-27 Thread Robert Landrum
Mark Stosberg wrote: Hello, Recently I ran into a bug with File::MMagic where it returns inconsistent results under mod_perl. Could it simply be a matter of fixing the use of the DATA handle, as Stats suggest here? http://mail-archives.apache.org/mod_mbox/perl-modperl/200403.mbox/[EMAIL PROTE

Re: Zend PHP

2007-03-08 Thread Robert Landrum
Martin Moss wrote: I just had a demo of the Zend Platform and framework for php. It's got some really nice stuff, but ultimately the reason we may decide to ditch perl and move to php (h I know booo) will be down to support. OR lackthereof for Perl... I've been writing perl for 10 years no

Re: Zend PHP

2007-03-09 Thread Robert Landrum
Martin Moss wrote: Many thanks to you all for your posts, Much food for thought... ultimately the decision is out of my hands, which is why I'm looking for useful perl based alternatives to propose to the powers that be. My favorite perl based alternative is HTML::Mason. Simple, fast, and goo

Re: UTF8 fun with SOAP::Lite and mod_perl 1.3.33

2007-03-16 Thread Robert Landrum
Drew Wilson wrote: But I cannot figure out WHERE this conversion is being done. I've picked through SOAP::Lite enough to know that unicode conversions are probably more than it knows how to handle. However, SOAP::Data::encode_data uses a regex to munge data. Perhaps there's a conversion h

Re: MP1 Security issue

2007-03-26 Thread Robert Landrum
Chris Shiflett wrote: That's a weak defense. If you're a proponent of full disclosure, say so, but don't use ignorance as your defense in the same email where you claim to not be a "dumb guy." I am a dumb guy, and I would have done the exact same thing Randal did. I just don't think about s

Re: "Insecure dependency in eval while running setgid" error

2007-03-27 Thread Robert Landrum
Fred Moyer wrote: Or maybe this is a bug in getegid where it's not clearing a previous memory state. What platform is this on? sun4-solaris His first post had a list of modules in a stack trace, which is where I grabbed that. I googled, but didn't find anything relevant. :( See if fgre

Re: "Insecure dependency in eval while running setgid" error

2007-03-28 Thread Robert Landrum
[EMAIL PROTECTED] wrote: Unfortunately turning taint mode off isn't an option for me. My application is client facing and so we want to continue to make use of the security mechanism that taint mode gives us. Keep taint mode on in dev, so you can identify your issues in development, then turn

Re: "Insecure dependency in eval while running setgid" error

2007-03-28 Thread Robert Landrum
Perrin Harkins wrote: On 3/28/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > Keep taint mode on in dev, so you can identify your issues in > development, then turn in off in prod. Is that actually the generally recommended approach? It's hard to know for sure that you've tried every code

Re: "Insecure dependency in eval while running setgid" error

2007-03-29 Thread Robert Landrum
[EMAIL PROTECTED] wrote: I'm hoping tho that if I can create a small test case under mod_perl then that opens up myself/someone-on-the-list trying it with other combinations of perl & mod_perl. If you log the pid in the access file, you should be able to determine the serious of page hits tha

Re: SOPE::Lite / prcessing complex data types at server side

2007-04-04 Thread Robert Landrum
Tobias Regneri wrote: package MyService; sub AddGroupAttributes { ($self, $provider, $group, $attrlist) = @_; ($name, $hashref) = split('=', $attrlist); $params = $$hashref; ... } the variables $provider and $group are set correctly but the hash for the list items is empty. Do I

Re: SOAP::Lite / processing complex data types at server side

2007-04-05 Thread Robert Landrum
Tobias Regneri wrote: Given the following xml structure of the data to process Name1 Val1 Name2 Val2 SOAP::Lite will build the internal representation $VAR1 = [ bless( { 'ListItem' => [ bles

Re: 200 vhosts, 5 sets of libs, 2GB RAM, 1 httpd (seeking advice)

2007-04-11 Thread Robert Landrum
Chris Hagglund wrote: The trouble is, as each vhost loads this config file for its plain and SSL vhost directives, the amount of memory being used seems to be going up, and restarting apache is taking longer and longer. Intead of loading it over and over again (twice for vhosts with ssl!) I am

Re: Charts and Graphs

2007-04-13 Thread Robert Landrum
Bill Whillers wrote: I'm wondering what people are using for efficiently generating charts and graphs on the fly from within a mod_perl environment. I've been using GD::Graph for a while but I'm hoping to get a bit more feature-deep. I'm not terribly concerned about getting a bit more complic

Re: Lock Files - File is permanently locked

2007-04-13 Thread Robert Landrum
Justin Luster wrote: Does anyone know what might be happening? We are only using Apache::Registry in this instance. I can’t see how a lexically scoped file handle that is being locked is not being unlocked once the process ends. The process isn't ending if you're using Apache::Registry. I

Re: Lock Files - File is permanently locked

2007-04-13 Thread Robert Landrum
Justin Luster wrote: Here is an example of a call to OpenFile(). You will notice that I'm additionally locking the file itself as well as the lock file (I figured it would not hurt to have both methods): my $LockFileHandle = authlib::FileLock("udata_" . $strRespNum . "_lck.cgi", 1); #Read rest

Re: Lock Files - File is permanently locked

2007-04-13 Thread Robert Landrum
Justin Luster wrote: Seems like an awful lot of code... open(DATAFILE,">$strDataFileName") or die; flock(DATAFILE,LOCK_EX); seek(DATAFILE,0,0); eval { authlib::RestartQNameWrite(\*DATAFILE,$strRestartQName); }; flock(DATAFILE,LOCK_UN); close(DATAFILE); if($@) { die $@; } *sighs* I need

Re: Malformed header from script

2007-04-16 Thread Robert Landrum
michael watson (IAH-C) wrote: Sorry for the confusion The code also actually attempts to print out HTML headers ie " etc" but these DO NOT come through to the webpage - instead, a bunch of special characters are printed out... Right... because the and tags are being (incorrectly) shov

Re: Malformed header from script

2007-04-18 Thread Robert Landrum
michael watson (IAH-C) wrote: [Wed Apr 18 09:56:55 2007] [notice] Apache/2.2.4 (Unix) mod_perl/2.0.3 Perl/v5.8.0 configured -- resuming normal operations [Wed Apr 18 09:56:57 2007] [error] [client 149.155.40.20] malformed header from script. Bad header=: mapview [Wed Apr 18 09:56:57 2007] [warn]

Re: Getting user input during apache startup

2007-05-02 Thread Robert Landrum
Krist van Besien wrote: The code works insofar that it waits 5 seconds and than proceeds with the default I set, but it completely ignores any keypresses I make. It is as if STDIN is not available at the time this code runs. If I replace the ReadKey(5) with a ReadKey(5,STDIN) I get a syntax error

Re: TIF image file

2007-05-08 Thread Robert Landrum
Michael Peters wrote: Vaughn, Terry wrote: I have some TIF files that I transferred from a windows box to a linux box over a Samba connection. I cannot get Apache to display the file.TIF with this simple .htm It's not apache that's having problems. I don't believe TIF images can be displa

[mp1] Eval in Mason causes segfault

2007-09-05 Thread Robert Landrum
I've run into a strange error recently and wanted to see if anyone else had come across this. Basically, I have have a set of database handles created as globals in the HTML::Mason::Commands namespace. To use these, we assign them to an object. i.e.: my $obj = new Foo; $obj->{my_dbh} = $my_

[mp2] HTML::Mason and Missing content

2008-04-07 Thread Robert Landrum
We're seeing some very strange behavior with HTML::Mason/Apache 2.2/MP2 that only affects a few of our files. I'm able to reproduce it reliably. We have a custom handler method that handles all requests to our site by passing them off to HTML::Mason (with exceptions for images, and the like).

  1   2   >