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

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

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

2003-08-14 Thread Dirk Lutzebaeck
Martin Langhoff writes: > >>how can I restart the root httpd server from within modperl? > > Use `at` to schedule it a minute in the future -- effectively forking it. Yes, also thought of that but the smallest unit of 'at' is minutes and I want to restart the server immediately. > Note tha

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

2003-08-14 Thread Frank Maas
On Tue, Aug 12, 2003 at 11:50:01AM +0200, 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 background (with a &) or > > fork it

Re: How to pass parameters from the UNIX command line ?

2003-08-09 Thread Fabián R. Breschi
Thanks to everybody, I have opted for using libwwwperl which it looks like to be the more straightforward method to use CL commands into cron jobs with GET or lwp-download. Fab.

Re: How to pass parameters from the UNIX command line ?

2003-08-09 Thread Jean-Sebastien Guay
> > http://server.domain.com/cgi-bin/MyProcedure.pl?cust_id=x > > > > I'd like to make a cron job to source the above PERL script as from > > the command line to resemble something like: > > > > perl /usr/local/apache/cgi-bin/MyProcedure.pl << need to pass the > > parameter here as cust_id=x > >

RE: How to pass parameters from the UNIX command line ?

2003-08-08 Thread Frank Maas
> http://server.domain.com/cgi-bin/MyProcedure.pl?cust_id=x > > I'd like to make a cron job to source the above PERL script as from > the command line to resemble something like: > > perl /usr/local/apache/cgi-bin/MyProcedure.pl << need to pass the > parameter here as cust_id=x I am very do

Re: how to extend CPAN module?

2003-07-24 Thread Stas Bekman
wrote: Hi, How to correctly extend CPAN module, perldoc only explains how to create CPAN module from scratch, but what about extending? I want to add some Foo::My.pm to existing Foo bundle. Which Makefile.PLs should patched? all? just one in subsdirectory 'mod'? Any link? Please ask

Re: How to share subroutine

2003-07-17 Thread Thomas Klausner
:Hi! On Wed, Jul 16, 2003 at 10:46:27PM +0100, Ged Haywood wrote: > Hi there, > > On Wed, 16 Jul 2003, Matthew Wu wrote: > > >I put all my subroutine in file.pm, what I need to do such that it > > can be used by my program? I don't what location I need to put it in and > > what kind of confi

Re: How to share subroutine

2003-07-16 Thread Ged Haywood
Hi there, On Wed, 16 Jul 2003, Matthew Wu wrote: >I put all my subroutine in file.pm, what I need to do such that it > can be used by my program? I don't what location I need to put it in and > what kind of configuration I need to modify. I am running Redhat 6.3. At the risk of repetition...

Re: how to unsubscribe from this list

2003-06-17 Thread Stas Bekman
Jordan Ward wrote: Can someone please direct me to where I can unsubscribe from this list. it's in the mail headers: list-help: list-unsubscribe: list-post: --

Re: how to make sure code wasn't changed

2003-05-31 Thread Randal L. Schwartz
> "Mike" == Mike Zelina <[EMAIL PROTECTED]> writes: Mike> Here's my question: has anyone setup a clever way, possibly Mike> using CRC/MD5 analysis, to check to make sure code hasn't been Mike> changed? I don't care if someone steals it or gives it to their Mike> friends, but I don't want the

Re: how to make sure code wasn't changed

2003-05-30 Thread Patrick Mulvany
On Thu, May 29, 2003 at 06:02:10PM -0700, Mike Zelina wrote: > Here's my question: has anyone setup a clever way, possibly using CRC/MD5 analysis, > to check to make sure code hasn't been changed? I don't care if someone steals it or > gives it to their friends, but I don't want the code to yield

RE: how to secure perl modules?

2003-05-30 Thread wsheldah
x27;t really make sense, but the errors went away when I stopped using Switch. Wes Perrin Harkins <[EMAIL PROTECTED]> on 05/29/2003 05:56:05 PM To:[EMAIL PROTECTED] cc:John Saylor <[EMAIL PROTECTED]>, modperl <[EMAIL PROTECTED]> Subject:RE: how to secure

Re: how to secure perl modules?

2003-05-30 Thread Martin Moss
;[EMAIL PROTECTED]> To: "modperl" <[EMAIL PROTECTED]> Sent: Friday, May 30, 2003 8:58 AM Subject: Re: how to secure perl modules? > Hi! > > On Thu, May 29, 2003 at 10:27:54AM -0700, iCap wrote: > > i have a collection of perl modules (running under the mod_perl um

Re: how to secure perl modules?

2003-05-30 Thread Thomas Klausner
Hi! On Thu, May 29, 2003 at 10:27:54AM -0700, iCap wrote: > i have a collection of perl modules (running under the mod_perl umbrella) > and would like to distribute the application to several different sources > (clients with open internet web servers). but i dont want to send it out > without at

Re: how to secure perl modules?

2003-05-30 Thread Ged Haywood
Hi there, On Thu, 29 May 2003, Kirk Rogers wrote: > i have a collection of perl modules ... i dont want to send it out > without at least making it somewhat difficult for some hacker to just simply > steal it and load it somewhere else without my consent. This is getting to be an old chestnut,

RE: how to secure perl modules?

2003-05-30 Thread Perrin Harkins
On Thu, 2003-05-29 at 17:41, Kirk Rogers wrote: > why the scarcasm? You asked a very loaded question that is guaranteed to get you a lot angry responses on most Perl mailing lists. Hiding your source code is a FAQ (http://perldoc.com/perl5.8.0/pod/perlfaq3.html#How-can-I-hide-the-source-for-my-Pe

Re: how to secure perl modules?

2003-05-30 Thread David Dick
you seem to be talking about two different things here. firstly, do you want to protect your source code being viewed by other people? secondly, do you want to ensure that your code is only being run on computers that you have authorised? these are related problems, but each requires a different

RE: how to secure perl modules?

2003-05-30 Thread Kirk Rogers
why the scarcasm? >-Original Message- >From: John Saylor [mailto:[EMAIL PROTECTED] >Sent: Thursday, May 29, 2003 2:34 PM >To: [EMAIL PROTECTED] >Cc: modperl >Subject: Re: how to secure perl modules? > > >hi > >( 03.05.29 14:25 -0700 ) Kirk Rogers: >>

Re: how to secure perl modules?

2003-05-30 Thread John Saylor
hi ( 03.05.29 14:25 -0700 ) Kirk Rogers: > but i dont want to send it out without at least making it somewhat > difficult for some hacker to just simply steal it and load it > somewhere else without my consent. why not? have you ever read the GNU manifesto? http://www.gnu.org/gnu/manifesto.html

Re: How to make apache with both mod_perl and mod_ssl?

2003-04-02 Thread Stas Bekman
Charlie Smith wrote: How to make apache with both mod_perl and mod_ssl? RTFM: http://perl.apache.org/docs/1.0/guide/install.html#Installation_Scenarios_for_mod_perl_and_Other_Components __ Stas BekmanJAm_pH --> Just A

Re: how to make an Alias?

2003-03-13 Thread Abdul-wahid Paterson
Hi, Alias /cctvimages/ /home/me/images/ Should do it. Regards, Abdul-Wahid On Thu, 2003-03-13 at 18:35, mel awaisi wrote: > Hi list > > How do i make an alias on my webserver? > > i have images on my machine located in /home/me/images/. i would like to be > able to access them on /home/ht

Re: how to take advantage of mod_perl and analize effectiveness ofefforts?

2003-03-08 Thread Perrin Harkins
On Fri, 2003-03-07 at 18:21, Charlie Smith wrote: > What is being cached by the mod_perl? You should definitely read the mod_perl documentation that another poster pointed you to. However, let me address your core question about what is being cached with mod_perl. Technically, mod_perl doesn't c

Re: how to take advantage of mod_perl and analize effectiveness ofefforts?

2003-03-07 Thread Ken Y. Clark
On Fri, 7 Mar 2003, Charlie Smith wrote: > Date: Fri, 07 Mar 2003 16:21:15 -0700 > From: Charlie Smith <[EMAIL PROTECTED]> > To: [EMAIL PROTECTED] > Cc: [EMAIL PROTECTED] > Subject: how to take advantage of mod_perl and analize effectiveness of > efforts? > > A couple questions: > In order to

Re: How to figure out with what options a mod_perl is built

2003-03-02 Thread Richard Clarke
> Hi, > > Is there a way, like PHP has , to figure out with > what options a standard linux distribution mod_perl is built ? > > I would like to know if it was built with EVERYTHING=1 or if > PERL_CHILD_INIT=1 > http://perl.apache.org/docs/1.0/guide/install.html#Discovering_Whether_Some_ Option

Re: How to figure out with what options a mod_perl is built

2003-03-02 Thread Ilya Martynov
> On Sun, 02 Mar 2003 14:47:12 +0100, Feite Brekeveld <[EMAIL PROTECTED]> said: FB> Hi, FB> Is there a way, like PHP has , to figure out with FB> what options a standard linux distribution mod_perl is built ? FB> I would like to know if it was built with EVERYTHING=1 or if FB> PERL_CHILD_I

Re: How to avoid loss of POST data in a good way?

2003-02-28 Thread Geoffrey Young
Frank Maas wrote: Hi, Excuse me for this question that is, without question, due to my newbie- ness, but I am against a wall here. I am creating a website that is running under mod_perl and using several handlers of the chain. The website uses the POST method to send form data. I first used Apac

Re: How to find out if mod_perl is running

2003-02-17 Thread Stas Bekman
Gazi, Nasser (London) wrote: I have a very simple question (please excuse me if it is too simple). I need to find out if of one of my Linux servers is running mod_perl, and if so, which version it is running. Any suggestions as to how I can do this? Use the guide: http://perl.apache.org/docs/1.

Re: How to find out if mod_perl is running

2003-02-17 Thread Serguei Trouchelle
Gazi, Nasser (London) wrote: I have a very simple question (please excuse me if it is too simple). I need to find out if of one of my Linux servers is running mod_perl, and if so, which version it is running. Any suggestions as to how I can do this? perldoc mod_perl GATEWAY_INTERFACE The

Re: How to find out if mod_perl is running

2003-02-17 Thread Pierre Smolarek
lynx -head http://www.yourdomainname.com if you have lynx that is - Original Message - From: "Gazi, Nasser (London)" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, February 17, 2003 5:30 PM Subject: How to find out if mod_perl is running > I have a very simple question (pleas

Re: How to test for mod_perl

2003-01-27 Thread Richard
Thank you VERY much!!! I've bookmarked that site! Have a good day! - Original Message - From: "Stas Bekman" <[EMAIL PROTECTED]> To: "Richard" <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Monday, January 27, 2003 5:30 PM Subject: Re:

Re: How to test for mod_perl

2003-01-27 Thread Stas Bekman
Richard wrote: Ok, I just installed apache::asp which forced the install of mod_perl. How do I test to see if mod_perl is running ok on any given server? Thanks! PS. I'm currently reading the manpage mod_perl that is on my server, thus far I don't see anything regarding testing that it work

Re: how to detect a broken connection using mod_proxy

2002-11-11 Thread Ged Haywood
Hi Stas, Welcome back! How was China? On Mon, 11 Nov 2002, Stas Bekman wrote: > Anybody knows of similar to mod_proxy modules that do play nicely with > the backend regarding aborted connections? I think dapi said his mod_accel might do that, and wasn't mod_deflate supposed to do something li

Re: how to detect a broken connection using mod_proxy

2002-11-11 Thread Robert Landrum
On Mon, Nov 11, 2002 at 11:51:12PM +0800, Stas Bekman wrote: > > heavy sql stm's. after each one of them i would like to check if the > > client is still there so that i will proceed to the next one or just > > return OK and forget about the request). > > As far as I know you can't do that, since

Re: how to detect a broken connection using mod_proxy

2002-11-11 Thread Stas Bekman
giorgos wrote: hi all, i am running standard setup with one plain apache with mod_proxy and a mod_perl apache to which all mod_perl requests are directed by the proxy module. i want to be able to detect when the client connection breaks but all standard recipes like the one mentioned in p.147 of

Re: How to parse after reading POST data in mod_perl 2 ?

2002-11-04 Thread Sumitro Chowdhury
Thanks Philippe for the tip. After looking at Apache2::Apache::compat and some input from Randy Kobes, I came up with the following package called getform.pm which gets the form data into a hash without using Apache::compat. (Hope it will help some newbie !!): package ModPerl::getform; use stric

Re: How to limit the size of requests ?

2002-08-30 Thread WC -Sx- Jones
[follow-ups set] PMFJI: Buffer overflow in this case happened because of sub-requests - which are hard to deal with at any rate. The actual GET/POST had nothing to do with the insecure action as far as this issue is concerned, the side effect was caused by the way the sub-request handled the

Re: Re: How to limit the size of requests ?

2002-08-30 Thread Vasile Borcan
> >On Friday, 2002-08-30 at 18:33:13 +, HalbaSus wrote: > >> About that stoopid way of preventing buffer owerflows... Well, tell me a >> better one. Of course you can patch known bugs. But... how are you gonna >> prevent new buffer owerflows ? > >Auditing? don't you think that before rele

Re: How to limit the size of requests ?

2002-08-30 Thread Lupe Christoph
On Friday, 2002-08-30 at 18:33:13 +, HalbaSus wrote: > About that stoopid way of preventing buffer owerflows... Well, tell me a > better one. Of course you can patch known bugs. But... how are you gonna > prevent new buffer owerflows ? Auditing? > What if the guys with 0-day warez are fas

Re: How to limit the size of requests ?

2002-08-30 Thread HalbaSus
Well first of all I would like to thank Geoffrey's input... you know RTFM... that's all if I would have read about LimitRequest's before would have spared me like 2 days of coding... About that stoopid way of preventing buffer owerflows... Well, tell me a better one. Of course you can patch k

Re: How to limit the size of requests ?

2002-08-30 Thread Geoffrey Young
>>my the time mod_perl enters the request, Apache has already taken care >>of parsing the request, so there's not much you can do about it (in >>1.3, at least). > > > Parsing the request *headers*. So you can't prevent any overflow in the > headers with mod_perl. well, headers and the reque

Re: How to limit the size of requests ?

2002-08-30 Thread Lupe Christoph
On Friday, 2002-08-30 at 09:22:47 -0400, Geoffrey Young wrote: > >I have written a perl script which prevents browsers (or evil exploits) to > >send buffer owerflows to apache. Basicaly this script is supposed to > >listen on port 80 for incoming connections. The input (from browsers) is > >re

Re: How to limit the size of requests ?

2002-08-30 Thread Geoffrey Young
> I have written a perl script which prevents browsers (or evil exploits) to > send buffer owerflows to apache. Basicaly this script is supposed to listen > on port 80 for incoming connections. The input (from browsers) is read up to > 500 characters. don't the apache directives: LimitReq

Re: How to detect data avaliability on ARP::Socket

2002-08-11 Thread Stas Bekman
Hideki Noma wrote: > I am currently developping a private module utilizing > PerlProcessConnection handler and facing a bit of problem. > (Apache::2.0.39 + mod_perl 1.99.04) > > This is the part of program: > sub handler { > my Apache::Connection $c = shift; > my APR::Socket $socket = $

Re: how to unsubscribe

2002-07-31 Thread ok
Hendrik Janse van Rensburg writes: > could someone please tell me how to unsubscibe? Look into the mail-headers

RE: How to see debug information in Net::Smtp?

2002-07-17 Thread Peter Werner
its bitten me in the ass a few times before, just thought id mention it cheers -pete -Original Message- From: Stas Bekman [mailto:[EMAIL PROTECTED]] Sent: Wednesday, July 17, 2002 1:29 PM To: Peter Werner Cc: [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: Re: How to see debug information

Re: How to see debug information in Net::Smtp?

2002-07-17 Thread Stas Bekman
EMAIL PROTECTED] > Cc: [EMAIL PROTECTED] > Subject: Re: How to see debug information in Net::Smtp? > > > [EMAIL PROTECTED] wrote: > >>I use Net::Smtp module in my mod_perl script. When I run the >>fragment of my code from command line I can see the debug info. >>

RE: How to see debug information in Net::Smtp?

2002-07-17 Thread Peter Werner
and set your LogLevel to debug -Original Message- From: Stas Bekman [mailto:[EMAIL PROTECTED]] Sent: Wednesday, July 17, 2002 10:27 AM To: [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Subject: Re: How to see debug information in Net::Smtp? [EMAIL PROTECTED] wrote: > I use Net::Smtp mod

Re: How to see debug information in Net::Smtp?

2002-07-17 Thread Stas Bekman
[EMAIL PROTECTED] wrote: > I use Net::Smtp module in my mod_perl script. When I run the > fragment of my code from command line I can see the debug info. > But running it on the production server I can't see the debug > information. > > What can I do to see the debug info on the production se

Re: How to proxy everything except selected urls?

2002-05-22 Thread Issac Goldstand
Ken Miller wrote: >I the past, when I've setup a proxy/app server configuration, it's always >been to forward certain url's to the app server, with the rest being >processed by the proxy. > >However, I need to turn this around. I want to pass everything to the app >server, except for some url's

Re: How to proxy everything except selected urls?

2002-05-22 Thread Randal L. Schwartz
> "Ken" == Ken Miller <[EMAIL PROTECTED]> writes: Ken> I initially thought something like this would work: Ken> --- Ken> ProxyPass On Ken> ProxyPass / http://other.server.com:1234/ Ken> ProxyPassReverse / http://other.server.com:1234/ Ken

Re: How to configure mod_perl to get Connection.so, Connection.bsand so on...

2002-05-20 Thread Doug MacEachern
On Sat, 27 Apr 2002, sagar wrote: > > Hi > I have installed apache-1.3.12, openssl-0.9.5a and apache-1.3.12+ssl- > 1.40 and configured mod_perl-1.26 on freeBSD 4.1 with apache by giving > the following: > > %perl Makefile.PL APACHE_SRC=../apache_1.3.12/src DO_HTTPD=1 > USE_APACI=1 EVERYTHING=

RE: How to disable mod_perl in a subdir (apache)

2002-05-14 Thread Erchinger, Ethan
> > At 08:58 AM 5/14/02 -0700, Erchinger, Ethan wrote: > > Do you think it could be the > startup.pl (handler.pl), > >shouldn't that only get run when the handler is perl-script? > > If you have a "PerlRequire startup.pl" statement in your httpd.conf, > startup.pl will always be run as Apache

RE: How to disable mod_perl in a subdir (apache)

2002-05-14 Thread Erchinger, Ethan
I have it setup that way, thanks, still no dice. > Subject: Re: How to disable mod_perl in a subdir (apache) > > > Make sure you put it after the Location directive that sets > HTML::Mason > > > SetHandler perl-script > PerlHandler HTML::Mason >

Re: How to disable mod_perl in a subdir (apache)

2002-05-14 Thread Tim Tompkins
://www.rebelartist.com/ -- - Original Message - From: "Erchinger, Ethan" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, May 14, 2002 8:58 AM Subject: RE: How to disable mod_perl in a subdir (apache) > Try > > SetHandler d

RE: How to disable mod_perl in a subdir (apache)

2002-05-14 Thread Drew Taylor
At 08:58 AM 5/14/02 -0700, Erchinger, Ethan wrote: > > Try > > > > SetHandler default-handler > > > >I tried that as well. Do you think it could be the startup.pl (handler.pl), >shouldn't that only get run when the handler is perl-script? If you have a "PerlRequire startup.pl" statement in yo

RE: How to disable mod_perl in a subdir (apache)

2002-05-14 Thread Erchinger, Ethan
> Try > > SetHandler default-handler > I tried that as well. Do you think it could be the startup.pl (handler.pl), shouldn't that only get run when the handler is perl-script? EE >> Subject: How to disable mod_perl in a subdir (apache) >> Hi all, >> I saw a posting about this subject fro

Re: How to disable mod_perl in a subdir (apache)

2002-05-14 Thread Tim Burden
Try SetHandler default-handler - Original Message - From: "Erchinger, Ethan" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, May 14, 2002 11:50 AM Subject: How to disable mod_perl in a subdir (apache) > Hi all, > I saw a posting about this subject from earlier this year.

Re: how to see /server-status when at MaxClients?

2002-05-11 Thread Andrew McNaughton
On Fri, 10 May 2002, John E. Leon Guerrero wrote: > Date: Fri, 10 May 2002 16:54:47 -0700 > From: John E. Leon Guerrero <[EMAIL PROTECTED]> > To: [EMAIL PROTECTED] > Subject: how to see /server-status when at MaxClients? > > if a job hangs (due to database locking for instance), then a mod_perl

Re: how to see /server-status when at MaxClients?

2002-05-10 Thread Stas Bekman
John E. Leon Guerrero wrote: > if a job hangs (due to database locking for instance), then a mod_perl child > will hang as well (absent some additional watchdog-type program.) if enough > jobs hang to the point that we hit MaxClients, then it is too late to use > /server-status to see what jobs h

Re: How to generate pre-filled forms? (fwd)

2002-04-28 Thread F . Xavier Noria
On 29 Apr 2002 09:16:42 +1000 simran <[EMAIL PROTECTED]> wrote: : Have a look at the HTML::FillInForm module as well... Yeah, thank you, I'll give it a try. I guess this is a natural candidate for an output chain, the HTML generated by two or three Apache modules will need that post-process, so

Re: How to generate pre-filled forms? (fwd)

2002-04-28 Thread simran
Have a look at the HTML::FillInForm module as well... it works wonders for me... On Sat, 2002-04-27 at 04:43, darren chamberlain wrote: > * Ken Clark <[EMAIL PROTECTED]> [2002-04-26 14:33]: > > I'll throw my technique into the ring, too. I use Template Toolkit > > most of the time, and I pass

Re: How to generate pre-filled forms? (fwd)

2002-04-26 Thread darren chamberlain
* Ken Clark <[EMAIL PROTECTED]> [2002-04-26 14:33]: > I'll throw my technique into the ring, too. I use Template Toolkit > most of the time, and I pass the original Apache request object back > to the template as a parameter. Then I call the "param" method to > fill in the "value" of form elemen

Re: How to generate pre-filled forms? (fwd)

2002-04-26 Thread Ken Y. Clark
Forgot to cc the list. -- Forwarded message -- Date: Fri, 26 Apr 2002 11:35:37 -0400 (EDT) From: Ken Y. Clark <[EMAIL PROTECTED]> To: F.Xavier Noria <[EMAIL PROTECTED]> Subject: Re: How to generate pre-filled forms? On Fri, 26 Apr 2002, F.Xavier Noria wrote: > Da

Re: How to generate pre-filled forms?

2002-04-26 Thread F . Xavier Noria
On Fri, 26 Apr 2002 16:15:52 +0200 F. Xavier Noria <[EMAIL PROTECTED]> wrote: : I am writing some modules that receive a form, process it, and return a : page that includes that very form. Is there a standard way to fill that : returned form so the user sees the same data he sent there, as CGI.pm

Re: How to generate pre-filled forms?

2002-04-26 Thread Kee Hinckley
At 4:15 PM +0200 4/26/02, F.Xavier Noria wrote: >I am writing some modules that receive a form, process it, and return a >page that includes that very form. Is there a standard way to fill that >returned form so the user sees the same data he sent there, as CGI.pm >does? > >-- fxn > >PS: I am usin

Re: How to generate pre-filled forms?

2002-04-26 Thread Wim Kerkhoff
On 26-Apr-2002 Paul Lindner wrote: > On Fri, Apr 26, 2002 at 04:15:52PM +0200, F.Xavier Noria wrote: >> I am writing some modules that receive a form, process it, and return a >> page that includes that very form. Is there a standard way to fill that >> returned form so the user sees the same data

Re: How to generate pre-filled forms?

2002-04-26 Thread Tatsuhiko Miyagawa
At Fri, 26 Apr 2002 07:17:44 -0700, Paul Lindner wrote: > Note that HTML::FillInForm is directly supported in Apache::ASP. > Other toolkits may support it as well. You can get the glues for HTML::Template and TT: HTML::Template::FillInForm and Template::Plugin::FillInForm from http://bulknews.ne

Re: How to generate pre-filled forms?

2002-04-26 Thread Paul Lindner
On Fri, Apr 26, 2002 at 04:15:52PM +0200, F.Xavier Noria wrote: > I am writing some modules that receive a form, process it, and return a > page that includes that very form. Is there a standard way to fill that > returned form so the user sees the same data he sent there, as CGI.pm > does? > > -

Re: How to report problems with modperl 2.0

2002-04-15 Thread Stas Bekman
Stas Bekman wrote: > At this time some people will try to run incorrect versions of Apache > and mod_perl and this will cause to most of your problems. So before we > attempt to answer your questions, you have to tell us what versions you > were using. Therefore: > > Whenever you have a proble

Re: how to make apache server to understand the perl commands inhttpsd.conf

2002-04-11 Thread Ged Haywood
Hi there, On Thu, 11 Apr 2002, Mrajesh wrote: > So, to run both the codes, we included the commands like > > PerlSetvar MasonCompRoot /usr/local/apache/htdocs > PerlSetVar MasonDataDir /usr/local/apache/mason > PerlModule HTML::Mason::ApacheHandler > > in httpsd.conf file. > > Now, when we a

Re: [Fwd: Re: How to reload PERL module in all Apache children]

2002-04-11 Thread dougm
On Thu, 11 Apr 2002, Perrin Harkins wrote: > Does it look you'll be able to get the solar variables idea to work for > those data types? i had a simple prototype way back that sorta worked for simple scalars, probably won't take it any further now that there is threads::shared in 5.7.x. hav

Re: [Fwd: Re: How to reload PERL module in all Apache children]

2002-04-11 Thread Perrin Harkins
[EMAIL PROTECTED] wrote: > On Fri, 12 Apr 2002, Stas Bekman wrote: > > >>But if talk about futuristic Solar variables (perl globals shared >>between threads). what if a solar variable is a reference to CODE? Can >>this be shared? If so, will reloading this variable in one interpreter >>affec

Re: [Fwd: Re: How to reload PERL module in all Apache children]

2002-04-11 Thread dougm
On Fri, 12 Apr 2002, Stas Bekman wrote: > But if talk about futuristic Solar variables (perl globals shared > between threads). what if a solar variable is a reference to CODE? Can > this be shared? If so, will reloading this variable in one interpreter > affect others? even if that would wo

Re: [Fwd: Re: How to reload PERL module in all Apache children]

2002-04-11 Thread Stas Bekman
[EMAIL PROTECTED] wrote: > if you use Apache::Reload with a threaded MPM and multiple interpreters, > the modules will be reloaded by each interpreter as they are used, not > every interpreter all at once. similar to 1.x where each child has > its own interpreter, the modules are reloaded as e

Re: [Fwd: Re: How to reload PERL module in all Apache children]

2002-04-11 Thread dougm
if you use Apache::Reload with a threaded MPM and multiple interpreters, the modules will be reloaded by each interpreter as they are used, not every interpreter all at once. similar to 1.x where each child has its own interpreter, the modules are reloaded as each kid is hit with a request.

Re: How to reload PERL module in all Apache children

2002-04-11 Thread Stas Bekman
Sreeji K Das wrote: > Hi Stas, > > >>>I was wondering if there is a possibility to >> >>reload PERL module compiled >> >>>into Apache >>>with Apache::Registry >>>(and I want to reload this module in all Apache >> >>children processes) by running reload-program once. >> >>Currently Apache::Relo

Re: How to reload PERL module in all Apache children

2002-04-11 Thread Sreeji K Das
Hi Stas, > > I was wondering if there is a possibility to > reload PERL module compiled > > into Apache > > with Apache::Registry > > (and I want to reload this module in all Apache > children processes) by running reload-program once. > > Currently Apache::Reload or its equivalent your only >

Re: How to reload PERL module in all Apache children

2002-04-11 Thread Stas Bekman
Waldek Grudzien wrote: > Hello, > > I was wondering if there is a possibility to reload PERL module compiled > into Apache > with Apache::Registry > (and I want to reload this module in all Apache children processes) by > running reload-program once. > > For example Apache::Reload must be set a

Re: how to configure perl with apache server

2002-04-10 Thread Ged Haywood
Hi there, On Wed, 10 Apr 2002, rajesh wrote: > We are facing problems in configuring perl with apache. Please see the mod_perl Guide at http://perl.apache.org/guide, the mod_perl cookbook (see http://modperlcookbook.org for details) and the book we know here as the "Eagle book" which is in real

Re: how to configure perl with apache server

2002-04-10 Thread simran
Hi Rajesh, Can you please include more information on how you are tring to configure it. * Did you compile apache yourself? * What version of apache are you trying to use? * What is the relevant section in the httpd.conf file At a glimpse, it looks like you might not have compiled mod_perl

Re: How to show mem usage of all modules?

2002-04-09 Thread Joao Pedro Goncalves
Check Apache::Status, it gives you several info. On Tue, 2002-04-09 at 15:53, pawelp wrote: > Hi > Is there an easy way to show mem usage of all loaded modules ? > > Thanks > Pawel Piecuch > -- João Pedro Gonçalves 'I have never let my schooling interfere with my education.' - Mark Twain

Re: How to get two perl namespaces in apache

2002-03-28 Thread Garth Winter Webb
You just need to fire up two separate apaches, each with their own conf. So basically you have: /usr/local/apache_prod /usr/local/apache_dev These can actually share the same bin and lib directories; everything is still installed at '/usr/local/apache' and you symlink the directories you want t

Re: How to get two perl namespaces in apache

2002-03-26 Thread Perrin Harkins
Ernest Lergon wrote: > just throwing a glance I found: > > http://thingy.kcilink.com/modperlguide/modules/Apache_PerlVINC_Allows_Module.html Not a good idea for production use. It will slow things down. Handy for development with multiple projects using separate virtual hosts though. - Perri

Re: How to get two perl namespaces in apache

2002-03-26 Thread Ernest Lergon
"Thomas K. Burkholder" wrote: > > So, I guess I'm wondering if there's an easy way to have two completely > separate apache configurations running on the same machine (listening on > different ports obviously). > Hi Thomas, just throwing a glance I found: http://thingy.kcilink.com/modperlguid

Re: How to get two perl namespaces in apache

2002-03-26 Thread Drew Taylor
Thomas, You can run seperate environments if your coding doesn't reference any hard coded paths. I just setup a dev server at my new job and do exactly what you want. All you have to do is add a "use lib qw(/path/to/modules);" in your startup.pl or make sure the PERL5LIB environment var is set

Re: How to get two perl namespaces in apache

2002-03-26 Thread ___cliff rayman___
"Thomas K. Burkholder" wrote: > run them in two different environments - I don't think running them on > two different virtual servers is going to do it, right? Doesn't apache > just start one perl "runtime"? Please tell me if I'm mistaken about there is only one interpreter, so running a mod

Re: how to identify an interrupted downloads?

2002-03-25 Thread Issac Goldstand
F.Xavier Noria wrote: >I would like to know whether in the server side one can figure out if a >user has completed the download of a known file. Would bytes_sent() give >the actual number of bytes sent if the download gets interrumpted by the >client? Would yo know a better approach if not? > >--

Re: How to invoke the save dialog box when clicking in the link, which is generated by PERL script.

2002-03-06 Thread Martin Haase-Thomas
try: [EMAIL PROTECTED] M. SubbaReddy wrote: >Hello Gurus, > >I am very sorry, if this post is on wrong list. > >I have a perl script, which gives dynamic page with search files list. >Pdf and text files are displaying in browser, when clicking in the link of >file. >But, I want to save on to dis

Re: How to do connection pooling

2002-02-28 Thread Tom Hukins
On Thu, Feb 28, 2002 at 09:38:39PM +0100, Joachim Zobel wrote: > At 02:11 28.02.02 +0530, you wrote: > >Hi all, > >How can I maintain the connections in perl? For this I want to use > >connection pooling to contol the traffic of my site. How can I do this in > >perl? Can anybody help me in this

Re: how to disable mod_perl in a subdir? Directory vs Location

2002-02-28 Thread Rick Myers
On Feb 28, 2002 at 05:54:07 -0700, Dan Baker wrote: > > Rick Myers wrote: > > > > On Feb 27, 2002 at 21:14:00 -0700, Dan Baker wrote: > > > > > > I am working with a host that has everything under /cgi-bin running > > > mod_perl by default, and well as using EmbPerl to run the dynamic pages. > >

RE: How to do connection pooling

2002-02-28 Thread Stathy G. Touloumis
Are you perhaps referring to KeepAlive of the TCP/IP client connection? > >How can I maintain the connections in perl? For this I want to use > >connection pooling to contol the traffic of my site. How can I > do this in > >perl? Can anybody help me in this regard? If possible please give the

Re: How to do connection pooling

2002-02-28 Thread Joachim Zobel
At 02:11 28.02.02 +0530, you wrote: >Hi all, >How can I maintain the connections in perl? For this I want to use >connection pooling to contol the traffic of my site. How can I do this in >perl? Can anybody help me in this regard? If possible please give the >steps included in this. Is Apache:

  1   2   3   4   >