[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:

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

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

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 ha

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 to

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 ver

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: [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 Wi

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. h

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 scr

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 mod_per

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,

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

$r->headers_out Location and Set-Cookie

2003-08-14 Thread gerard uolaquetalestem
I have the next problem, i am in page A that 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 don't h

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 anothe

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. http://groups.google.com/groups?hl=en&lr=lang_en&ie=UTF-8&threadm=7j14it%248v1%241%40zonnetje.NL.net&rnum=1&prev=/groups%3Fnum%3D100%26hl%3Den%26lr%3Dlang_en%26ie%3DISO-8859-1%26q%3DIO%253A%253ASocket%253A%253AINET%2Bmod_perl%2BWind

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 gue

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 Lis

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 wi

[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 mod

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 unde

[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

[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 experie

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, 

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: [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, Apache

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 L

[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 XML

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 par

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 [mai

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 functio

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? Why

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 Apache::Statu

(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 with a 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 adde

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 PROTEC

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 C

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 modules.

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? Than

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 get

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 u

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 wo

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: se

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, mod_perl.con

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 http://perl.apache.org/docs/general/test

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

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

unsetting PerlTransHandler

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

RE: unsetting PerlTransHandler

2003-08-14 Thread Frank Maas
> and want to unset the TransHandler inside the . > 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 return immed

Re: unsetting PerlTransHandler

2003-08-14 Thread Geoffrey Young
I understand translation handlers cannot be -specific. But 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 / sequence performed

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 doe

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 / 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 away after the tra

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 5

Re: [mp2] Child process exited

2003-08-14 Thread Jean-Sebastien Guay
Stas, Thanks for the quick response. > You did load things in startup.pl, remember? some module could override > $SIG{__WARN__}. Don't load those modules if you don't need them. I very much doubt anything in my startup.pl would modify the signal handlers. Here's my startup.pl, for reference: us

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

2003-08-14 Thread Torsten Foertsch
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Tuesday 12 August 2003 11:50, Dirk Lutzebaeck wrote: > 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 back

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: Problem reloading modules

2003-08-14 Thread Stas Bekman
Perrin Harkins wrote: If you're interested in working on it, we could discuss possible approaches on the list and review your patch. In a week or so I'll have a bit more free time, and I might try implementing it. I'll start by reading up on mod_perl internals... :-) I'd suggest a different appr

Re: mp1 rflush() and buffer size

2003-08-14 Thread Douglas Theobald
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: Apache::Reload and INC path partialy working

2003-08-14 Thread Geoffrey Young
Here's my perl.conf (sourced by httpd.conf) start LoadModule perl_module modules/mod_perl.so PerlSetEnv PERL5LIB /home/bruce/public_html/ffball/myff on second thought, try PerlSwitches -I/home/bruce/public_html/ffball/myff or PerlSwitches -Mlib=/home/bruce/public_html/ffbal

[ANNOUNCE] mp2: new porting assister package Apache::porting

2003-08-14 Thread Stas Bekman
Apache::porting tries to help you to do the porting to mod_perl 2.0. For more information please refer to: http://perl.apache.org/docs/2.0/api/Apache/porting.html It's a new module and didn't go through much testing. However make sure to check the known issues, before reporting problems: http://

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 /root/.cpan/build/lib

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 r

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 t

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

2003-08-14 Thread Andrew Ho
Hello, ML>If you absolutely need to be in port 80, either setup a simple ML>lightweight apache on port 80 as a reverse proxy (see the mod_perl ML>guide) or, even simpler, do some port forwarding from port 80 to your ML>high port of choice. Has anybody had very good experiences using a simple p

Re: [mp2] Child process exited

2003-08-14 Thread Stas Bekman
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, Apache/

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 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

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 wit

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 und

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

2003-08-14 Thread Chris Faust
Ahh, didn't know that.. Thanks Stas! -Chris - Original Message - From: "Stas Bekman" <[EMAIL PROTECTED]> To: "Chris Faust" <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Sunday, August 10, 2003 2:37 PM Subject: Re: $r->headers_out Location and Set-Cookie > Chri

Re: Problem reloading modules

2003-08-14 Thread Jean-Sebastien Guay
> However, there will always be things that Apache::Reload doesn't > handle. For example, you might import functions from one module into > another module, as opposed to importing into a Registry script. Well, making a given module aware of who imported it (whether it's a module or a Registry scr

Re: [mp2] Child process exited

2003-08-14 Thread Randy Kobes
On Wed, 13 Aug 2003, Stas Bekman wrote: > Jean-Sebastien Guay wrote: > > 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. > > That's possible, but at least you can see that

Re: [mp2] Child process exited

2003-08-14 Thread Stas Bekman
Jean-Sebastien Guay wrote: Stas, One of the following will work. PerlSwitches -Id:/htdocs or PerlSwitches -Mlib=d:/htdocs Thanks, I'll try those. But I still don't know a) why Apache crashes (I know you can't repro, maybe someone else on Win32 will, so this is stalled for now). b) why my w

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

2003-08-14 Thread Dennis Stout
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. Just a thought. Dennis S.T.O.U.T. = Synthetic Technician Optimized for Ultimate Troublshoot

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: How to restart the root server from within modperl?

2003-08-14 Thread Dirk Lutzebaeck
Thanks, I made it a bit more simple: use POSIX; if (! fork) { # child setsid; POSIX::close(0); POSIX::close(1); exec("restart-apache-command"); } Works great! Thanks, Dirk Torsten Foertsch writes: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > On Tues

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 Colin

Re: Question about mod_perl startup script

2003-08-14 Thread Thomas Klausner
Hi! On Wed, Aug 13, 2003 at 09:28:37AM -0700, Wes Plate wrote: > 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. See here for some infos on startup.pl; http:

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

2003-08-14 Thread Stas Bekman
Stas Bekman wrote: Chris Faust wrote: I haven't had any problems setting a cookie and redirecting on MP2 by using the below $r->err_headers_out->add('Set-Cookie' => $packed_cookie); $r->header_out('Location' => $url); $r->status(REDIRECT); $r->send_http_header; That's when you use Apac

Re: Apache::Session

2003-08-14 Thread Patrick Galbraith
Strip out stuff that could be problematic. This is what we did with Slash. We strip out javascript or any tag that can be problematic, or be used even to break the layout of the page. It'll make you're life much easier ;) Take this from someone who coded tons of features to ward off trolls! Al

Re: Apache::Session

2003-08-14 Thread Joelle Nebbe
Hi I do a few basic things that improve security - its still not strict security but 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. If they h

Re: Problem reloading modules

2003-08-14 Thread Perrin Harkins
On Thu, 2003-08-14 at 15:33, Jean-Sebastien Guay wrote: > In a week or so I'll have a bit more free time, and I might try > implementing it. I'll start by reading up on mod_perl internals... :-) Actually, all you need to read is the code for Apache::Registry or ModPerl::Registry (depending on whic

Re: unsetting PerlTransHandler

2003-08-14 Thread Torsten Foertsch
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Thursday 14 August 2003 14:49, Geoffrey Young wrote: > trans handlers are used to map the URI to a filename, the result of which > lets Apache know to which the URI belongs to. it can also > affect which the URI belongs to if that is paired > wi

Re: Problem reloading modules

2003-08-14 Thread Jean-Sebastien Guay
> How can you tell? Can you post some sample code? You might be doing > something that doesn't work when reloaded, like closures. Well, here's the code I'm trying to run. (I have verified that Param('script_root') returns D:/htdocs, as expected). The initial code was this: <

Re: [mp2] Child process exited

2003-08-14 Thread Steve Hay
Jean-Sebastien Guay wrote: Steve, How did you build Apache 2? I downloaded the binaries... Sorry, can't help there. Please keep me posted as to your progress. OK, I've now got Apache 2 building (with a little off-list help from Randy Kobes - the secret is to use the .zip sources rath

Re: [JOB] Perl Web application development with small experiencedteam

2003-08-14 Thread Jean-Michel Hiver
Unfortunately I'm far too busy writing Webarchitects' web CMS which promotes accessibility, usability and W3C standards, (http://www.mkdoc.com/) to help. However we at webarchitects have been subcontracting various projects (both OSS and non-OSS) with Steve Purkis ([EMAIL PROTECTED]) through his L

Re: Problem reloading modules

2003-08-14 Thread Jean-Sebastien Guay
Hi Perrin, > I don't see anything wrong with that chunk of code. If you restart the > server, does it pick up the change? Yes. > Is there anything unusual about the > way you call this sub (AUTOLOAD, function ref, etc.)? Not at all. It is imported with use Hybride::Projects qw(getImage ); a

Re: unsetting PerlTransHandler

2003-08-14 Thread Torsten Foertsch
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Thursday 14 August 2003 18:20, Geoffrey Young wrote: > Frank Maas wrote: > > Ehm... considering both solutions worked and the quoted paragraph, > > shouldn't we read it as 'the results of this sequence can be used during > > the translation phase, b

Re: [mp2] Child process exited

2003-08-14 Thread Stas Bekman
Jean-Sebastien Guay wrote: Stas, Thanks for trying out my code. Jean-Sebastien, are you *sure* that what crashes is apache and not your client? it seems that you have the client crashing if removing changes everything. What's your error_log says? My client is IE, and it stays open and respo

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

2003-08-14 Thread Egor Shipovalov
In fact, I'm using 'killall httpd', which effectively kills every httpd process. The drawback is that you need /proc available and that it may kill httpd's belonging to another Apache. But afrer all, you can always write awk script that would parse ps output and do exactly what you want. Egor. >

[ANNOUNCE] Apache::ASP v2.55 released

2003-08-14 Thread Josh Chamas
Hi, The latest version of Apache::ASP v2.55 has been released. The biggest improvement is no longer loading Apache::compat for running under mod_perl2. For the rest of the changes in this release, please see below. To get the latest, install from your local CPAN, and also: http://www.cpan.org/

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 it...

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 t

Re: mod_perl.c version for httpd 2.0.47

2003-08-14 Thread Stas Bekman
Robert E. Shelton wrote: I am installing Apache httpd 2.0.47 on my RH9 Intel Linux box. I get the following error when I start httpd: [EMAIL PROTECTED] init.d]# /usr/local/apache2/bin/apachectl start httpd: module "mod_perl.c" is not compatible with this version of Apache (found 20020628, ne

Re: Problem reloading modules

2003-08-14 Thread Jean-Sebastien Guay
Stas Bekman wrote: > > OK, I've written a proper entry for the man page, Jean-Sebastien can you > > please verify that it all works, as I wrote it without testing. Great work Stas, you're quick :-) Other than the little mistake Perrin pointed out, the suggested change works. Perrin Harkins wrot

Re: make test fails in building modperl2+apache2+perl5.8

2003-08-14 Thread Stas Bekman
gerard uolaquetalestem wrote: Hi everyone (my first message). The message is that there is a syntax error in line x of some conf file, the syntax error is that PerlSwitches is an unknown command. I am trying to compile modperl2 with perl 5.8 compiles with mpm and ithreads and with apache2 compi

Re: [mp2] Child process exited

2003-08-14 Thread Stas Bekman
Jean-Sebastien Guay wrote: 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 t

Re: Problem reloading modules

2003-08-14 Thread Perrin Harkins
On Thu, 2003-08-14 at 15:10, Stas Bekman wrote: > OK, I've written a proper entry for the man page, Jean-Sebastien can you > please verify that it all works, as I wrote it without testing. Thanks. > http://perl.apache.org/docs/2.0/api/Apache/Reload.html#Problems_with_Scripts_Running_with_Registry_

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 [mailto:[EMA

Re: Apache::AuthenNTLM module with HP/Apache

2003-08-14 Thread Shannon Eric Peevey
Antony Batten wrote: Hi, Sorry to direct email you, but I am desperate, and was hoping the solution to the problem below would be a quick one from the people who wrote the module ;) Thanks, Antony. Appologies if this is no longer your domain, but [posted to comp.infosystems.www.servers.unix

Re: Set-Cookie2

2003-08-14 Thread Jie Gao
On Tue, 5 Aug 2003, Stas Bekman wrote: > 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 Sorry. Now let me ask a question that'

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

2003-08-14 Thread Steve Bannerman
Stas, Replies below: -- Steve Bannerman [EMAIL PROTECTED] 44.(0)1865.273866 > -Original Message- > From: Stas Bekman [mailto:[EMAIL PROTECTED] > Sent: 05 August 2003 18:07 > To: [EMAIL PROTECTED] > Cc: [EMAIL PROTECTED] > Subject: Re: HTTP POST: parameters "empty" when using Mod

  1   2   >