Apache::Session

2003-08-14 Thread Aleksandr Guidrevitch
Hi, All Sorry, this post might be out of scope of this particular list, but still... don't punch me heavily :) I just think the people here might have met this problem while deploying big public applications. I use Apache::Session to identify logged in users. However, the users are allowed to

RE: Apache::AuthenNTLM module with HP/Apache

2003-08-14 Thread Antony Batten
Hi Randy,Shannon ... Have asked the SA chappy to recompile the module as you suggested. Not sure if the approach you mention can be done though I think HP don't want us to add anything to their mod_perl distribution by adding modules to the main location. Can't we compile the module against

RE: How to restart the root server from within modperl?

2003-08-14 Thread Egor Shipovalov
Can I call something like a reload of httpd.conf? This is what sending a SIGHUP to Apache does. However, both mod_perl-enabled servers I run misbehave on this, so I always do a full restart. Egor.

Re: Apache::Reload and INC path partialy working

2003-08-14 Thread Ron Savage
Hi Folks Fascinating to see this on a non-Windows box. Reloading modules after they have been editied, eg httpd like so: PerlModule Apache::Reload PerlInitHandler Apache::Reload PerlSetVar ReloadAll Off PerlSetVar ReloadModules CGI CGI::Application ... Sweep::* works about 99% of the time

Re: [mp2] Child process exited

2003-08-14 Thread Jean-Sebastien Guay
I've actually pinpointed the problem to one HTML tag in the output that Template-Toolkit sends to Apache as a result of the cgi script's run. Actually, I've just found out another thing, which is really weird. If I just change the amount of whitespace in the template file (see the zip file

Re: PerlModule options?

2003-08-14 Thread Mike P. Mikhailov
Hello [EMAIL PROTECTED], Tuesday, August 05, 2003, 2:55:52 PM, you wrote: cfr Hi list, cfr One questions for the braves ;-) cfr As I understand, the directive cfr PerlModule Foo::Bar cfr loads the module but doesn't import the symbols since it is equivalent to cfr the use Foo::Bar ().

Re: unsetting PerlTransHandler

2003-08-14 Thread Frank Maas
On Thu, Aug 14, 2003 at 11:07:13AM -0400, Geoffrey Young wrote: There is actually a Location/LocationMatch sequence performed just before the name translation phase (where Aliases and DocumentRoots are used to map URLs to filenames). The results of this sequence are completely thrown

RE: Apache::AuthenNTLM module with HP/Apache

2003-08-14 Thread Antony Batten
Shannon, Thanks very much for the quick response. Here's the info you wanted (I hope): HP-UX_Apache-based_Web_Server/2.0.46 (Unix) mod_perl/1.99_09 Perl/v5.6.1 DAV/2 configured Can my career be saved? ;0) Thanks again, Antony. -Original Message- From: Shannon Eric Peevey

Re: [mp2] Child process exited

2003-08-14 Thread Jean-Sebastien Guay
Steve, and the good news for you is that I've reproduced your problem. GREAT! Thank you so much for persevering through this! So do you have a traceback or some info that the developers might be able to use to track this down? The variable will not stay shared error is a common problem with

Re: setting httpd for Apache::test

2003-08-14 Thread Stas Bekman
Hodge, Jeff F (ECIII) wrote: I have perl 5.8.0 with apache 1.3.28, and mod_perl 1.28 installed. I need the Apache::Test to be installed as well, as it is a req. for many other modules. I'm running into trouble with make test. Apparently it can't find the httpd server. How/Where would I add

Re: $r-headers_out Location and Set-Cookie

2003-08-14 Thread Nick Tonkin
On Sat, 9 Aug 2003, gerard uolaquetalestem wrote: I have the next problem, i am in page A that form points to page B, that is a modperl2 handler. This handler makes a job and decides to send a cookie to the browser, and after to redirect to the same page A who is ready to catch the cookie.

Re: Problem reloading modules

2003-08-14 Thread Stas Bekman
Stas Bekman wrote: Perrin Harkins wrote: On Thu, 2003-08-14 at 14:29, Jean-Sebastien Guay wrote: I'm asking you to try it and see if it works. Ok, I tried it and it works. I guess we need to add this to the docs: Apache::Reload will have problems if you import subs from a module you are

Re: Problem reloading modules

2003-08-14 Thread Perrin Harkins
On Thu, 2003-08-14 at 11:24, Jean-Sebastien Guay wrote: I'm using Apache::Reload, and I can see that my modified module is getting reloaded (with ReloadDebug On), but the program still uses the old code. How can you tell? Can you post some sample code? You might be doing something that

RE: Apache::AuthenNTLM module with HP/Apache

2003-08-14 Thread Antony Batten
Randy, OK thanks, I'll give that a try. I think we can compile the module against 5.6.1 It's just that we can't change the 5.6.1 install as it would break our support agreement with HP (so I am told) ... I presume we just have to 'install' the module in a different place after compiling

Re: $r-headers_out Location and Set-Cookie

2003-08-14 Thread Matt Sergeant
On Saturday, Aug 9, 2003, at 15:26 Europe/London, Nick Tonkin wrote: On Sat, 9 Aug 2003, gerard uolaquetalestem wrote: I have the next problem, i am in page A that form points to page B, that is a modperl2 handler. This handler makes a job and decides to send a cookie to the browser, and

Re: How to restart the root server from within modperl?

2003-08-14 Thread Martin Langhoff
how can I restart the root httpd server from within modperl? Use `at` to schedule it a minute in the future -- effectively forking it. Note that normally apache starts as root and runs as an unprivileged user. If this is the case you _can_ achieve it using a suid wrapper or sudo, but you'll

pod files

2003-08-14 Thread ColinB
A relatively trivial point, but I notice that the pod files cgi_to_mod_perl.pod mod_perl.pod mod_perl_tuning.pod which were supplied with mod_perl 1 are missing from mod_perl 2 (perhaps because they need re-writing?) Is it indended to include these in the final mod_perl 2 release? Thanks

Re: which mod defines transferlogs?

2003-08-14 Thread Stas Bekman
Hodge, Jeff F (ECIII) wrote: first off. perl Makefile.PL -httpd /usr/local/apache2/bin/httpd Stas...this worked great for configuring httpd for Apache:: testI assumed it was something along those lines tks. ;) waiting for server to start: .Syntax error on line 28 of

Re: Apache::Session

2003-08-14 Thread Raf
Aleksandr Guidrevitch said: ... Is it possible to uniquely identify the user by some attributes ? The only thing I consider now is IP, but what about proxies and NATs ? User Agent string could also be stolen via javascript. That means I tend to make stolen session ids non-reusable. Went

Re: [mp2] Child process exited

2003-08-14 Thread Jean-Sebastien Guay
Stas, e.g. I'd check the access_log to see whether it issues only one request or more. Also make sure to debug in the single process (thread?) mode (httpd -X) I'll check those out this afternoon. It's possible that some of your code or the modules that you use either misuse $^W or trap

Re: unsetting PerlTransHandler

2003-08-14 Thread Geoffrey Young
I understand translation handlers cannot be Directory-specific. But Location directives apply before any translation handler is called (see below). yes they do, but not really. to really understand this, see http://httpd.apache.org/docs/sections.html specifically, There is actually a

RE: unsetting PerlTransHandler

2003-08-14 Thread Frank Maas
and want to unset the TransHandler inside the Location. How to do that? AFAIK: not. The TransHandler is the first to be called and cannot appear inside a container (ref. ModPerl cookbook). The only thing I can think of, and in fact implemented this, to make the TransHandler URI-aware and

unsetting PerlTransHandler

2003-08-14 Thread Torsten Foertsch
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 I have a VirtualHost ... PerlTransHandler Handler Location ... /Location /VirtualHost and want to unset the TransHandler inside the Location. How to do that? Thanks Torsten -BEGIN PGP SIGNATURE- Version: GnuPG v1.0.7 (GNU/Linux)

Re: Apache::Session

2003-08-14 Thread Perrin Harkins
On Thursday 14 August 2003 8:06 am, Joelle Nebbe wrote: What i do is store both the remote IP and the user agent HTTP parameters in the session when the session is created. Whenever a new request comes in with that session I check that those havent changed. So, you don't care about AOL users

RE: Apache::AuthenNTLM module with HP/Apache

2003-08-14 Thread Randy Kobes
On Thu, 14 Aug 2003, Antony Batten wrote: Have asked the SA chappy to recompile the module as you suggested. Not sure if the approach you mention can be done though I think HP don't want us to add anything to their mod_perl distribution by adding modules to the main location. Can't we

Re: request for help with reproducing problem

2003-08-14 Thread Geoffrey Young
But you really want to learn how to write tests with Apache::Test if you do any serious mod_perl development, so there is no excuse not to learn Apache::Test, not talking about the fact that there are hundreds of existing tests as examples, the tutorial

Re: [mp2] Child process exited

2003-08-14 Thread Jean-Sebastien Guay
Stas, I just checked, and when the Apache crash occurs, nothing gets written to access_log. It would seem that the crash happens before the request is logged. Also, b) why my warnings don't show up in the error_log. I just moved my mod_perl config from httpd.conf to another file,

Re: [Slightly OT] Port forwarding (Was: How to restart the root serverfrom within modperl?)

2003-08-14 Thread Craig Edwards
Hi, I once saw an example of port forwarding using netcat and inetd, i think it involved setting up a listening netcat as the application, using inetd to bind it to a specific port and then forwarding the connection onwards to the ip and/or port where you want it to go, something like this:

setting httpd for Apache::test

2003-08-14 Thread Hodge, Jeff F (ECIII)
Title: setting httpd for Apache::test I have perl 5.8.0 with apache 1.3.28, and mod_perl 1.28 installed. I need the Apache::Test to be installed as well, as it is a req. for many other modules. I'm running into trouble with make test. Apparently it can't find the httpd server. How/Where would

Re: [mp2] Child process exited

2003-08-14 Thread Stas Bekman
It's possible that some of your code or the modules that you use either misuse $^W or trap $SIG{__WARN__} which prevents from warnings to be printed. grep for these two things. Remember - there's only the code I showed you. No other modules (other than Template, strict and warnings which are

which mod defines transferlogs?

2003-08-14 Thread Hodge, Jeff F (ECIII)
Title: which mod defines transferlogs? first off. perl Makefile.PL -httpd /usr/local/apache2/bin/httpd Stas...this worked great for configuring httpd for Apache:: testI assumed it was something along those lines tks. second. While installing Apache::Bundle through cpan I'm

Question about mod_perl startup script

2003-08-14 Thread Wes Plate
I am getting up and running a server that wants mod_perl. The instructions talks about a startup script. I'm very new, so I don't know how I'm supposed to get this step completed. Do I copy the provided script to a location? Do I edit an existing script? Do I edit some configuration file?

Re: [mp2] Child process exited

2003-08-14 Thread Stas Bekman
I can't help you with those things without being able to reproduce the problem :( but see below regarding the reload confusion. [...] # Add the top-level directory for the modules into the module search path. use lib qw($ENV{SCRIPT_ROOT}); Apache::Reload didn't seem to want to reload my

Re: mp1 rflush() and buffer size

2003-08-14 Thread Stas Bekman
Douglas Theobald wrote: On 8/10/03 2:46 PM, Stas Bekman [EMAIL PROTECTED] a écrit : Douglas Theobald wrote: The Searching...Please wait text does not display until the sleeps are done. Adding $|=1; up top does not help. However, this code does work: use CGI (); my $r = shift; my $q = new CGI;

Re: [mp2] Child process exited

2003-08-14 Thread Jean-Sebastien Guay
Steve, How did you build Apache 2? I downloaded the binaries... Sorry, can't help there. Please keep me posted as to your progress. Thanks, J-S - Original Message - From: Steve Hay [EMAIL PROTECTED] To: Jean-Sebastien Guay [EMAIL PROTECTED] Cc: Stas Bekman [EMAIL PROTECTED];

(maybe offtopic) mod_perl/DBI/PostgreSQL

2003-08-14 Thread Bruce Tennant
I just noticed an oddity in my application. I setup a table in SQL witha serial, not null, primary key column. Then I have a routine that inserts into the table (not setting the key column). If I do the insert from the psql utitilty the sequence stays consistant (inc by 1) w/each new row added.

Apache:DBI in /perl-status?

2003-08-14 Thread Bill McGonigle
I must be missing something obvious, but I can't get the friendly Apache::DBI status item to show up in /perl-status like I read about. I can see the module loaded at: /perl-status/?Apache::DBI and other modules, e.g. HTML::Mason, have installed their status pages, so I'm assuming

How to restart the root server from within modperl?

2003-08-14 Thread Dirk Lutzebaeck
Hi, how can I restart the root httpd server from within modperl? My problem is that when I call system() with say apachectl restart the father process is stopped killing the children including the apachectl itself. So it can't start of again. Can I call something like a reload of httpd.conf?

Re: (maybe offtopic) mod_perl/DBI/PostgreSQL

2003-08-14 Thread greg
Do you have any code that might do a select to determine the value of the sequence used? Example: INSERT blah blah blah; SELECT currval(sequence_name); or somethign like that? If so, the SELECT may be incrementing the counter and that would explain the jump by 2 your seeing. There is a

RE: How to restart the root server from within modperl?

2003-08-14 Thread Egor Shipovalov
Why not start the Apache from a shell script that would always start it again if it dies? To restart the Apache then, you'd just kill the root httpd with apachectl. Killing the paernt shell script would terminate the whole operation. Egor. -Original Message- From: Dirk Lutzebaeck

Re: How to restart the root server from within modperl?

2003-08-14 Thread Dirk Lutzebaeck
Dennis Stout writes: On a whim, I would try writing a second script to do the actual shutdown and restart of Apache. Then have your mod_perl program either run it in the background (with a ) or fork it into another process. Did exactly that but is has the effect that when the parent

[JOB] Integration architect; Database, VoiceXML, and QA engineers

2003-08-14 Thread Andrew Ho
Hello, We have several open positions at Tellme. Folks on this list are usually fine candidates for engineering positions at Tellme as our web backend environment is mainly mod_perl based, involving externally visible, traditional web applications, as well as internal VoiceXML applications and

Re: Mod_perl how to include the result of mod_autoindex?

2003-08-14 Thread Geoffrey Young
Thomas Klausner wrote: Hi! On Mon, Aug 11, 2003 at 04:37:45 -0500, Slava Bizyayev wrote: It's not quite the truth... You can do all that staff on Apache 1.3 with appropriate skills. See LWP for example. If you mean to grab the output of e.g. mod_autoindex by issueing a sperate request using

Re: [mp2] Child process exited

2003-08-14 Thread Steve Hay
Jean-Sebastien Guay wrote: So, did anyone have time to check this out? This is pretty major for me, I can't implement mod_perl at my site until I find out what is causing this crash and fix it. And I really have no idea what could be causing it. I'm using CGI.pm 2.98, Template-Toolkit 2.10,

Re: Mod_perl how to include the result of mod_autoindex?

2003-08-14 Thread Thomas Klausner
Hi! On Mon, Aug 11, 2003 at 04:37:45 -0500, Slava Bizyayev wrote: It's not quite the truth... You can do all that staff on Apache 1.3 with appropriate skills. See LWP for example. If you mean to grab the output of e.g. mod_autoindex by issueing a sperate request using LWP, that's definitly

Re: (maybe offtopic) mod_perl/DBI/PostgreSQL

2003-08-14 Thread Bruce Tennant
Yeah, actually here is the code snippets I use. Table def: CREATE SEQUENCE s_league_lid minvalue 1; CREATE TABLE t_League ( /* lid integer DEFAULT nextval('s_league_lid') PRIMARY KEY,*/ lid SERIAL PRIMARY KEY NOT NULL, name VARCHAR(20) UNIQUE NOT NULL, numdiv integer, draft integer, last_wvr

[JOB] Perl Web application development with small experienced team

2003-08-14 Thread robm
FastMail.FM (http://www.fastmail.fm), one of the world's leading e-mail services, is hiring an expert Perl programmer to become a Web Application Developer. In this very attractive senior position, you can work flexible hours, telecommute, and develop your skills as part of a small but very

[mp2] ModPerl::Test::read_post destructive?

2003-08-14 Thread Michael Maciag
Apache/2.0.44 (Unix) mod_perl/1.99_09 Perl/v5.8.0 Using a copy of the read_post routine, I'm able to retrieve my POST parameters reliably from my PerlResponseHandler. However, it seems when I do invoke that routine, the client no longer receives the parameters. If I just comment out my invocation

Re: Re: $r-headers_out Location and Set-Cookie

2003-08-14 Thread gerard uolaquetalestem
Hi, I've seen that the key is the status returned to apache. With Apache::REDIRECT i have the next code works ok $apache-err_headers_out-{'Set-Cookie'} = $value1; $apache-err_headers_out-{'Location'} = $value2; But exactly what's the difference between err_headers_out and headers_out? I

[DIGEST] mod_perl digest 2003/07/28

2003-08-14 Thread jgsmith
-- mod_perl digest July 28, 2003 - August 10, 2003 -- Recent happenings in the mod_perl world... Features o

Re: mod_perl.c version for httpd 2.0.47

2003-08-14 Thread Stas Bekman
I think the real problem is that we still use which(1), when everything else fails. That sometimes picks wrong things. I'd advocate to not use which(1) for finding apache bits, but others may disagree with me. In any case this advise has been out for ages, either stick with rpms and use them

RE: [mp2] ModPerl::Test::read_post destructive?

2003-08-14 Thread Michael Maciag
Yikes, you're right! I just found a recent thread in the apache dev list discussing this. Thanks, I'll approach my problem another way. - Mike. -Original Message- From: Ged Haywood [mailto:[EMAIL PROTECTED] Sent: Sunday, August 10, 2003 12:47 PM To: Michael Maciag Cc: Modperl Mailing

Re: rflush() not working as documented?

2003-08-14 Thread Stas Bekman
Martin Wickman wrote: I tried the latest CVS (modperl-2.0_20030810101543) and my code now works as expected, ie rflush() splits correctly into brigades. The t/api/rflush.t works as well btw. Excellent! Is it any different from your code? Your test-code is essentially the same as my code. I

Re: Threading issue in 5.6 and 5.8

2003-08-14 Thread Mustafa Tan
Hi Stas, here is the google groups page that defines the problem.

Re: [mp2] Child process exited

2003-08-14 Thread Steve Hay
Jean-Sebastien Guay wrote: Can't get http://whitestar02.webhop.org/Files/ApacheCrash.zip it resolves to an internal address: 192.168.0.3 Darn, looks like my web server didn't come back up right last night. I'll have to be there to fix it, because ssh doesn't get through either. Here's

$r-headers_out Location and Set-Cookie

2003-08-14 Thread gerard uolaquetalestem
I have the next problem, i am in page A that form points to page B, that is a modperl2 handler. This handler makes a job and decides to send a cookie to the browser, and after to redirect to the same page A who is ready to catch the cookie. Then the problem is that if i put the two headers, i

Re: [mp2 Patch] BUG with mod_deflate and $|=1 (20014:Error string not specified)

2003-08-14 Thread Bill Marrs
Please report to the list the bug id so we can document this issue for those who have the same problem with older httpds. Thanks. OK, I've posted it. http://nagoya.apache.org/bugzilla/show_bug.cgi?id=22259 Thanks for the fix! -bill

Re: [mp2] Child process exited

2003-08-14 Thread Jean-Sebastien Guay
Is it only mp2 that it fails under? I've tried it under mp1.28/perl5.8.0/apache1.3.27 on WinXP and it runs fine. I haven't tried other mod_perl versions, since the threading issue would render the site unusable. so I assume that there is no point trying it on linux, if Steve can't

Re: pod files

2003-08-14 Thread Stas Bekman
ColinB wrote: A relatively trivial point, but I notice that the pod files cgi_to_mod_perl.pod mod_perl.pod mod_perl_tuning.pod these files are a history and they don't really exist any longer, other than in the distibution (should probably be removed, Philippe?). which were supplied with

RE: HTTP POST: parameters empty when usingModPerl::Registry(okay when using ModPerl:PerlRun)...

2003-08-14 Thread Perrin Harkins
On Thu, 2003-08-07 at 03:36, Steve Bannerman wrote: So with respect to your explanation about the long running perl system, am I to understand that the old version of the saveFile() subroutine uses a reference to a different $cgi instance that the $cgi instance in the main body of the script?

a new page: http://perl.apache.org/bugs

2003-08-14 Thread Stas Bekman
I've just added a new page to aid finding the way to the bug reporting info. The cool thing is that it's now easy to remember how to type that url and provides less excuses for not supplying the required info in bug reports. It's also now has a prominent place in the menu of perl.apache.org.

Re: [MP1.28 + perl maint. 20512] Build failure due to error in Apache/ExtUtils.pm

2003-08-14 Thread Stas Bekman
Steve Hay wrote: Sreeji K Das wrote: I tried to compile mod_perl-1.28 with perl maint. 20512 (http://www.iki.fi/jhi/[EMAIL PROTECTED]). I had a build failure (different errors each time trying to build). Have you tried http://www.iki.fi/jhi/[EMAIL PROTECTED] ? That snapshot worked OK for me on

Re: [mp2] Child process exited

2003-08-14 Thread Jean-Sebastien Guay
Can't get http://whitestar02.webhop.org/Files/ApacheCrash.zip it resolves to an internal address: 192.168.0.3 Darn, looks like my web server didn't come back up right last night. I'll have to be there to fix it, because ssh doesn't get through either. Here's another link, on my ISP's server:

Re: [mp2 Patch] BUG with mod_deflate and $|=1 (20014:Error string not specified)

2003-08-14 Thread Stas Bekman
Bill Marrs wrote: Try this patch: [...] Feel free to submit this bug report and the fix to httpd-dev. Please let me know if you do that, so I won't duplicate it. But I'd prefer that you do it so you can make sure that it gets fixed in the next release, since you need it working. I've just

Re: HTTP POST: parameters empty when using ModPerl::Registry (okaywhen using ModPerl:PerlRun)...

2003-08-14 Thread Stas Bekman
Steve Bannerman wrote: All, I apologize if this has already been covered...I looked at the archives since May but couldn't see anything covering this (there were related items but their solutions didn't solve this problem). Here an explanation of the problem: We want to post experiment results

help on setting up a PerlFixupHandler

2003-08-14 Thread Xavier Noria
I am trying to write a Hello World!-like set up involving a PerlFixupHandler but cannot get it to work. What I want to accomplish is: 1. Configure Dispatcher.pm as a PerlFixupHandler for http://localhost/admin. 2. Let Dispatcher.pm set ContentHandler.pm as the content

Re: Set-Cookie

2003-08-14 Thread Stas Bekman
Jie Gao wrote: Hi All, Any idea if Set-Cookie2: is going to be implemented in CGI.pm? Lincohn? Jie, AFAIK, this has nothing to do with mod_perl. See: http://stein.cshl.org/WWW/software/CGI/#bugs __ Stas BekmanJAm_pH

Re: [mp2] Child process exited

2003-08-14 Thread Jean-Sebastien Guay
I'll try to make a small test case so you can try to repro. I think it's related to DBI (only a hunch), so I'll start there. Ok, I've got it as simple as I can (I think - 25.1k zip). It isn't related to DBI, but to template toolkit. So to try my test case, you'll need that installed. Should I

[mp2] Apache::Status probs

2003-08-14 Thread Stas Bekman
Jie Gao wrote: Hi All, perl-5.8.0 + mp1.99_10. --- I am having problem trying to get /perl-status work. It bombs out in Status.pm at the following location: -- if (eval {require Apache::Request})

<    1   2