Apache 2.0.47, modperl 1.99.09 and CGI::Simple -- file uploads not working

2003-10-21 Thread Jacob Fugal
Hello all, I'm working on a site under Apache 2.0.47 with modperl 1.99.09. I've got most everything working right in my server setup, I can get and set cookies, get input variables from forms/etc., and all that jazz. I'm having a problem with form uploads however. Here's a test script/form and

RE: mod_perl/mod_ssl: fine in isolation, install woes when together

2003-10-21 Thread Bryn Dyment
(All the below tests are with dynamic Perl.) > OK, what if you take the original (with dynamic perl) and replace > > -L/usr/local/lib/perl5/5.8.1/i386-freebsd/CORE -lperl > > with > > -Wl,-L/usr/local/lib/perl5/5.8.1/i386-freebsd/CORE -Wl,-lperl Same problem. > What if you add -Wl,-i to t

Re: mod_perl/mod_ssl: fine in isolation, install woes when together

2003-10-21 Thread Stas Bekman
Bryn Dyment wrote: I'd appreciate if you test that patch I did another fresh install of the OS, re-installed Perl w/o the '-Duseshrplib' option, and built SSL/mod_perl/Apache (after applying your patch). Worked! Now I wonder whether apply that patch for freebsd only or all. does it work if you

Re: [mp2] Apache::DBI

2003-10-21 Thread Perrin Harkins
On Tue, 2003-10-21 at 15:25, Udlei Nattis wrote: > error_log: > > 8139 Apache::DBI need ping: no > 8139 Apache::DBI new connect to > 'eShop:localhost^\root^\sql^\AutoCommit=0^\PrintError=1^\Username=root' > 8139 Apache::DBI disconnect (overloaded) > 8117 Apache

Re: [mp2] Apache::DBI

2003-10-21 Thread Udlei Nattis
Hi, error_log: 8139 Apache::DBI need ping: no 8139 Apache::DBI new connect to 'eShop:localhost^\root^\sql^\AutoCommit=0^\PrintError=1^\Username=root' 8139 Apache::DBI disconnect (overloaded) 8117 Apache::DBI need ping: yes 8117 Apache::DBI

Re: Small problem with mod_perl2 and Apache::compat

2003-10-21 Thread Geoffrey Young
if :response and :common come in the same import() this will do: my %seen = (); my @args = grep { $seen{$_}++; $seen{$_} < 2 } map { /^:response$/ ? ":common" : $_ } @_; or something like that ;) too much fwp for you, I think :) --Geoff

Re: Small problem with mod_perl2 and Apache::compat

2003-10-21 Thread Stas Bekman
Geoffrey Young wrote: ok, I think I've decided that ignoring errors from :server or :args_how isn't a good idea - it's better to have that blow up on a user than have an unresolved error later on. +1 so, if we're not supporting everything right now, this is probably a better patch. --- lib/Apa

Re: Small problem with mod_perl2 and Apache::compat

2003-10-21 Thread Geoffrey Young
ok, I think I've decided that ignoring errors from :server or :args_how isn't a good idea - it's better to have that blow up on a user than have an unresolved error later on. so, if we're not supporting everything right now, this is probably a better patch. --- lib/Apache/compat.pm30 A

Re: Q: Makefile.PL: SUID helper

2003-10-21 Thread Randal L. Schwartz
> "Héctor" == Héctor Daniel Cortés González <[EMAIL PROTECTED]> writes: Héctor> I'm sorry, but it is a module written for MP1 PerlAuthenHandler. I will Héctor> try on list.perl.org. Do you think I should keep my subscription to Héctor> mod_perl list? If you're interested in reading, or partic

Re: Q: Makefile.PL: SUID helper

2003-10-21 Thread Stas Bekman
Héctor Daniel Cortés González wrote: On Tue, 2003-10-21 at 11:27, Stas Bekman wrote: Héctor Daniel Cortés González wrote: Hi! I wrote a module that needs a SUID helper application, but I can't figure out how to write the Makefile.PL to let the SUID installed. I really apreciate your advice. Sorr

Re: Small problem with mod_perl2 and Apache::compat

2003-10-21 Thread Stas Bekman
Geoffrey Young wrote: > But this patch simply ignores the 3 passed groups. Shouldn't it push > :common instead? > > my @args = grep { !/:response|:server|:args_how/ } @_; > push @args, ":common" if @_ != @args; yeah, I thought about that afterward, since :response does include :common. b

Re: Small problem with mod_perl2 and Apache::compat

2003-10-21 Thread Geoffrey Young
> But this patch simply ignores the 3 passed groups. Shouldn't it push > :common instead? > > my @args = grep { !/:response|:server|:args_how/ } @_; > push @args, ":common" if @_ != @args; yeah, I thought about that afterward, since :response does include :common. but it wouldn't help on empt

Re: Q: Makefile.PL: SUID helper

2003-10-21 Thread Héctor Daniel Cortés González
On Tue, 2003-10-21 at 11:27, Stas Bekman wrote: > Héctor Daniel Cortés González wrote: > > Hi! > > > > I wrote a module that needs a SUID helper application, but I can't > > figure out how to write the Makefile.PL to let the SUID installed. I > > really apreciate your advice. > > Sorry, but this

Re: Apache::Scoreboard trouble on Mac OS X

2003-10-21 Thread Stas Bekman
Ray Zimmerman wrote: At 11:55 AM -0700 10/20/03, Stas Bekman wrote: Ray Zimmerman wrote: At 11:12 AM -0700 10/20/03, Stas Bekman wrote: Are you sure you are trying it under running mod_perl, and not mod_cgi? No ... I haven't gotten that far ... I'm just trying to run a script from the command

Re: Q: Makefile.PL: SUID helper

2003-10-21 Thread Stas Bekman
Héctor Daniel Cortés González wrote: Hi! I wrote a module that needs a SUID helper application, but I can't figure out how to write the Makefile.PL to let the SUID installed. I really apreciate your advice. Sorry, but this is a wrong place to ask this kind of question, we talk about mod_perl here

Re: Small problem with mod_perl2 and Apache::compat

2003-10-21 Thread Stas Bekman
Geoffrey Young wrote: Christian Laursen wrote: I have a small problem with Apache::compat. I have got some mp1 code running under mp2 using Apache::compat, but I had to change it a little bit in order to do that. A few places we have the following: use Apache::Constants qw(:common :response);

RE: mod_perl/mod_ssl: fine in isolation, install woes when together

2003-10-21 Thread Bryn Dyment
> I'd appreciate if you test that patch I did another fresh install of the OS, re-installed Perl w/o the '-Duseshrplib' option, and built SSL/mod_perl/Apache (after applying your patch). Worked! > does it work if you remove the -Wl,-E part? Didn't work (this was with the earlier, shared Perl v

Re: [Fwd: Re: Stupid question of the day...] Apache-AuthenNIS

2003-10-21 Thread Shannon Eric Peevey
Shannon Eric Peevey wrote: Original Message Subject: Re: Stupid question of the day... Date: Mon, 20 Oct 2003 18:28:04 - From: Randy Trahan <[EMAIL PROTECTED]> To: Shannon Eric Peevey <[EMAIL PROTECTED]> Hi Shannon, I was reading your post from June 25 co

Re: [mp2] Apache::DBI

2003-10-21 Thread Perrin Harkins
On Tue, 2003-10-21 at 08:33, Udlei Nattis wrote: > for resolv the problem i add in startup.pl: > > Apache::DBI->connect_on_init('dbi:mysql:dbase', 'root', 'sql',{ > PrintError => 1, RaiseError => 1, }); > Apache::DBI->setPingTimeOut('dbi:mysql::dbase', 1); # or 0 > $Apache::DBI::DEBUG = 2; > >

Re: Getting new id with every calls with Apache::Session

2003-10-21 Thread Perrin Harkins
On Tue, 2003-10-21 at 03:46, [EMAIL PROTECTED] wrote: > I made two calls to ties for a test and the server comsume alot of CPU and > never return. So I don't know what is going on. > > ... > print "Content-type: text/html\n\n"; > tie %session, 'Apache::Session::File', undef; > $sessId = $session{_

Re: Apache::Session vs CGI:Session?

2003-10-21 Thread Perrin Harkins
On Tue, 2003-10-21 at 00:40, [EMAIL PROTECTED] wrote: > My thought is that openining multiple browser (new process) will be a new > and separate session. Is this correct? No. If you use cookies to track the user, every browser window will share the same cookie and thus the same session. If you u

Q: Makefile.PL: SUID helper

2003-10-21 Thread Héctor Daniel Cortés González
Hi! I wrote a module that needs a SUID helper application, but I can't figure out how to write the Makefile.PL to let the SUID installed. I really apreciate your advice. Regards -- Ing. Héctor Daniel Cortés González <[EMAIL PROTECTED]> | Don't take antes 'Aztec Eagle' Turbo <[EMAIL PROTECTED]>

Re: Apache::Scoreboard trouble on Mac OS X

2003-10-21 Thread Ray Zimmerman
At 11:55 AM -0700 10/20/03, Stas Bekman wrote: Ray Zimmerman wrote: At 11:12 AM -0700 10/20/03, Stas Bekman wrote: Are you sure you are trying it under running mod_perl, and not mod_cgi? No ... I haven't gotten that far ... I'm just trying to run a script from the command line. The following wor

Re: [mp2] Apache::DBI

2003-10-21 Thread Ged Haywood
Hi there, On Tue, 21 Oct 2003, Udlei Nattis wrote: > Sorry my english... It'll do :) > when i use Apache::DBI and my system stay away for long time, > the site have problem because connection is down. :( > for resolv the problem i add in startup.pl: > > Apache::DBI->connect_on_init('dbi:mys

Re: Small problem with mod_perl2 and Apache::compat

2003-10-21 Thread Christian Laursen
Geoffrey Young <[EMAIL PROTECTED]> writes: > Christian Laursen wrote: > > I have a small problem with Apache::compat. > > I have got some mp1 code running under mp2 using Apache::compat, > > but I had to change it a little bit in order to do that. > > A few places we have the following: > > use Ap

Re: Small problem with mod_perl2 and Apache::compat

2003-10-21 Thread Geoffrey Young
Christian Laursen wrote: I have a small problem with Apache::compat. I have got some mp1 code running under mp2 using Apache::compat, but I had to change it a little bit in order to do that. A few places we have the following: use Apache::Constants qw(:common :response); It looks like the resp

[mp2] Apache::DBI

2003-10-21 Thread Udlei Nattis
Hi, Sorry my english... when i use Apache::DBI and my system stay away for long time, the site have problem because connection is down. for resolv the problem i add in startup.pl: Apache::DBI->connect_on_init('dbi:mysql:dbase', 'root', 'sql',{ PrintError => 1, RaiseError => 1, }); Apache::DBI-

Small problem with mod_perl2 and Apache::compat

2003-10-21 Thread Christian Laursen
I have a small problem with Apache::compat. I have got some mp1 code running under mp2 using Apache::compat, but I had to change it a little bit in order to do that. A few places we have the following: use Apache::Constants qw(:common :response); It looks like the response group is missing in A

Re: Getting new id with every calls with Apache::Session

2003-10-21 Thread Masetti Marco
[EMAIL PROTECTED] wrote: I'm getting a new id with every refresh click; so, how am I suppose to know it is the same session? Here's my code: The behaviour is the right one, I'll tell you now why is not what you would expect... The session object is intended to provide persistancy to your applic

Re: mod_perl/mod_ssl: fine in isolation, install woes when together

2003-10-21 Thread Stas Bekman
Bryn Dyment wrote: Thanks for the detailed explanation. ;) I did a fresh install of the OS, and re-installed Perl 5.8.1, but this time with the '-Duseshrplib' option. After installation, I confirmed that I had 'libperl.so' in '/usr/local/lib/perl5/5.8.1/i386-freebsd/CORE'. wow, that was quick! T

Re: Getting new id with every calls with Apache::Session

2003-10-21 Thread Ruslan U. Zakirov
[EMAIL PROTECTED] wrote: I made two calls to ties for a test and the server comsume alot of CPU and never return. So I don't know what is going on. ... print "Content-type: text/html\n\n"; tie %session, 'Apache::Session::File', undef; $sessId = $session{_session_id}; print "id: " . $sessId . "\n";

RE: mod_perl/mod_ssl: fine in isolation, install woes when together

2003-10-21 Thread Bryn Dyment
Thanks for the detailed explanation. I did a fresh install of the OS, and re-installed Perl 5.8.1, but this time with the '-Duseshrplib' option. After installation, I confirmed that I had 'libperl.so' in '/usr/local/lib/perl5/5.8.1/i386-freebsd/CORE'. Then I re-installed SSL/mod_perl/Apache (wit

Re[2]: Getting new id with every calls with Apache::Session

2003-10-21 Thread Mike P. Mikhailov
Hello [EMAIL PROTECTED], Tuesday, October 21, 2003, 1:46:06 PM, you wrote: psc> I made two calls to ties for a test and the server comsume alot of CPU and psc> never return. So I don't know what is going on. psc> ... psc> print "Content-type: text/html\n\n"; psc> tie %session, 'Apache::Session::

Re: Getting new id with every calls with Apache::Session

2003-10-21 Thread perl
I made two calls to ties for a test and the server comsume alot of CPU and never return. So I don't know what is going on. ... print "Content-type: text/html\n\n"; tie %session, 'Apache::Session::File', undef; $sessId = $session{_session_id}; print "id: " . $sessId . "\n"; #the prog get hung when

Re: Getting new id with every calls with Apache::Session

2003-10-21 Thread Ruslan U. Zakirov
Hello. Have you read `perldoc Apache::Session`? There is two examples. [EMAIL PROTECTED] wrote: I'm getting a new id with every refresh click; so, how am I suppose to know it is the same session? Here's my code: #!/usr/bin/perl use Apache::Session::File; use strict; use warnings; my %sessio

Re: Apache::Session vs CGI:Session?

2003-10-21 Thread Ruslan U. Zakirov
[EMAIL PROTECTED] wrote: Well, I think I understand what you are saying but if I can clarify my understanding. My thought is that openining multiple browser (new process) will be a new and separate session. Is this correct? Only in IE. In Mozilla not. thanks On Mon, 20 Oct 2003 [EMAIL PROTECT