cvs commit: modperl-2.0/t/response/TestModperl method.pm methodname.pm methodobj.pm

2002-05-17 Thread dougm
dougm 02/05/17 19:07:42 Added: t/response/TestModperl method.pm methodname.pm methodobj.pm Log: add some test for method handlers Revision ChangesPath 1.1 modperl-2.0/t/response/TestModperl/method.pm Index: method.pm

cvs commit: modperl-2.0/t/conf modperl_extra.pl

2002-05-17 Thread dougm
dougm 02/05/17 19:08:21 Modified:t/conf modperl_extra.pl Log: add config for modperl/methodobj test Revision ChangesPath 1.14 +4 -0 modperl-2.0/t/conf/modperl_extra.pl Index: modperl_extra.pl

cvs commit: modperl-2.0/todo asap.txt

2002-05-17 Thread dougm
dougm 02/05/17 20:20:37 Removed: todo asap.txt Log: these are no longer issues and anything to be added here should be in a STATUS file

compatibility problem

2002-05-17 Thread Jie Gao
Hi all, I've been trying to get httpd-2.0.35 + mod_perl-1.99_01 work with backward compatibility. MY startupl.pl: #! /usr/bin/perl use lib '/usr/lib/perl5/site_perl/5.6.1/i386-linux/Apache2'; use strict; use Apache::compat (); use Apache2 (); use My::AuthCookieHandler; 1; and this script

mod_perl and mod_cgi

2002-05-17 Thread Konstantin Yotov
Hello! Here some details of my httpd.conf PerlTaintcheck On Alias /perl/ /home/httpd/perl/ PerlModule Apache::Registry Location /perl SetHandler perl-script PerlHandler Apache::Registry Options ExecCGI allow from all PerlSendHeader On /Location

Re: Apache::DB

2002-05-17 Thread Stas Bekman
Gregory Matthews wrote: Hello All. I am trying to install Apache::DB and am getting the following error: + make test cc -c-DVERSION=\0.06\ -DXS_VERSION=\0.06\ -DPIC -fpic -I/usr/libdata/perl/5.00503/mach/CORE DB.c In file included from

Dynamically Changing the Document Root

2002-05-17 Thread simran
Hi All, We are currently building a mod_perl application that has a content management component in it. After editing a page, we want to be able to give people a 'Preview your site' ability where they are view a 'preview/staged' mode of their site. The 'staged' version of their site is

RE: Force a 404 error?

2002-05-17 Thread Jonathan M. Hollin
See Chapter 4, Handling Errors, in the Eagle book. Great Thomas, I have a working handler now. Thanks very much to Thomas and everyone else who replied with suggestions. Jonathan M. Hollin - WYPUG Co-ordinator West Yorkshire Perl User Group http://wypug.pm.org/ http://wypug.digital-word.com/

Re: Dynamically Changing the Document Root

2002-05-17 Thread Marc Slagle
The 'staged' version of their site is stored in a different directory, and if i could just changed the document_root dynamically, most(?) of our issues would be over. Is there a way to do this? The documentation does not have any reference to be able to change the document root (just get it

Re: Dynamically Changing the Document Root

2002-05-17 Thread Geoffrey Young
Is there a way to do this? The documentation does not have any reference to be able to change the document root (just get it via $r-document_root). see recipe 4.3 in the cookbook for a description of $r-document_root and the perils involved. the minimum you should be aware of is that

Re: Apache::DB

2002-05-17 Thread Per Einar Ellefsen
At 06:41 17.05.2002, Gregory Matthews wrote: Hello All. I am trying to install Apache::DB and am getting the following error: + make test cc -c-DVERSION=\0.06\ -DXS_VERSION=\0.06\ -DPIC -fpic -I/usr/libdata/perl/5.00503/mach/CORE DB.c In file included from

Re: Dynamically Changing the Document Root

2002-05-17 Thread Per Einar Ellefsen
At 09:59 17.05.2002, simran wrote: ps: We are intending on having something like where when people go to http://www.testsite.com/preview/contactus/index.html we strip out the /preview from the URL (i assume i can change this via $r-uri... and change the document root from

modperl idle timeout....

2002-05-17 Thread Jim Morrison [Mailinglists]
Guys, I am currently using mod_perl XML::Xalan.. which is going well.. (For those of you who answered questions of mine about memory usage, I found some big memory leaks in my code... Doh!... Much better now... ) However, because it's only a little box, and because Xalan (and therefore

Re: modperl idle timeout....

2002-05-17 Thread Stas Bekman
Jim Morrison [Mailinglists] wrote: Anyhow... I was wondering... is there a simple way to set up a sort of idle timeout to get each single httpd to restart itself if two conditions are met: - 1 - It has compiled mod_perl - 2 - The mod_perl aliases have not been accessed for 'x'

[OT] Refs don't work, like I want

2002-05-17 Thread Viljo Marrandi
Hello, Sorry about non mod_perl question, but as I'm subscribed to this list and I know I can get help from here, I ask my question here. Can anyone tell me, what's wrong with this piece of code: $vars-{'key2'} = value of second key; $vars = { xxx = AAA, yyy = BBB, zzz = CCC, };

Re: [OT] Refs don't work, like I want

2002-05-17 Thread F . Xavier Noria
On Fri, 17 May 2002 17:10:53 +0300 (EEST) Viljo Marrandi [EMAIL PROTECTED] wrote: : $vars-{'key2'} = value of second key; The hash $vars points to has a key named key2. : $vars = { : xxx = AAA, : yyy = BBB, : zzz = CCC, : }; Now you change the reference stored in $var. It points

Re: [OT] Refs don't work, like I want

2002-05-17 Thread Stas Bekman
Viljo Marrandi wrote: Sorry about non mod_perl question, but as I'm subscribed to this list and I know I can get help from here, I ask my question here. Please do NOT do that in the future. This is the *modperl* list. There are hundreds of perl lists which will gladly help you out.

Re: [OT] Refs don't work, like I want

2002-05-17 Thread Stas Bekman
Stas Bekman wrote: I know I don't sound nice, but we try hard to keep a low Sound to Noise Ratio here. of course I meant a *high* Sound to Noise Ratio. the heat and humidity shows :) p.s. sorry for adding to the noise. back to work on adding more sound.

Re: [OT] Refs don't work, like I want

2002-05-17 Thread Jon Robison
In support of F. Xavier Noria, and in simpler terms - your $vars = { . } overwrote your previous assignment of $vars-{'key2'}. Perhaps you could have done: my $var = {}; $var-{'key2'} = some value; my @args = qw/ XXX YYY ZZZ /; my @vals = qw/ AAA BBB CCC /; my $i; for ($i =0; $i

Re: [2.x] Windows interpreter-wide locking due to modules?

2002-05-17 Thread Randy Kobes
On Thu, 16 May 2002, James Luberda wrote: I have installed Randy Kobes' 5-10-2002 Apache-2/modperl-2 Win32 binaries on a Win2k Professional P3 uniprocessor development machine. I have left all of the startup.pl script as is. Everything works great--however, with some scripts I seem to still

Re: compatibility problem

2002-05-17 Thread Peter Rothermel
You'll find a few other issues with AuthCookie and mod_perl-1.9.9_01 beyond the REDIRECT constant. Here's a quick summary: 1) move all the $r-connection-user() calls to $r-user() calls 2) change all the err_header_out() calls to err_headers_out() calls.

Re: Apache::DB

2002-05-17 Thread Stas Bekman
[please don't forget that to CC the list!] Gregory Matthews wrote: Stas: Thanks for your reply on my issue in the Mod_Perl list. Excuse my ignorance, but how do I do the following: before you try to build Apache::DB try to build test.c with the contents: #include time.h int

Reloading Library Files

2002-05-17 Thread Ted Prah
Hi, I am new to mod_perl and am having problems seeing the changes made to library files. Must I restart the server every time I change a library file in order to see my changes? My test code and environment is below. z.pl - test script which calls entry_point in z_lib.pl

Re: Apache::DB

2002-05-17 Thread Stas Bekman
Gregory Matthews wrote: Stas: Out of curiosity, what do YOU use to debug perl running under mod_perl? Apache::DB __ Stas BekmanJAm_pH -- Just Another mod_perl Hacker http://stason.org/ mod_perl Guide ---

Re: Reloading Library Files

2002-05-17 Thread Drew Taylor
Take a look at Apache::Reload or Apache::StatINC. Reload is more flexible, but StatINC has been around a little longer. Both have worked well for me. But be sure that you don't use these modules on a production server. :-) httpd.conf == PerlInitHandler Apache::Reload Drew At 01:38 PM

Re: Reloading Library Files

2002-05-17 Thread Ted Prah
I have tried Apache::Reload as well, but I get the same results. Ted Drew Taylor wrote: Take a look at Apache::Reload or Apache::StatINC. Reload is more flexible, but StatINC has been around a little longer. Both have worked well for me. But be sure that you don't use these modules on a

Re: Reloading Library Files

2002-05-17 Thread Drew Taylor
Have you tried moving the PerlInitHandler PerlSetVar up and out of the Location directive, making it global for the server? I'm not sure that would fix it, but it's worth a try. Drew At 02:37 PM 5/17/02 -0400, Ted Prah wrote: I have tried Apache::Reload as well, but I get the same results.

Re: Reloading Library Files

2002-05-17 Thread Ted Prah
Thanks Drew, I tried that, but it did not work. Ted Drew Taylor wrote: Have you tried moving the PerlInitHandler PerlSetVar up and out of the Location directive, making it global for the server? I'm not sure that would fix it, but it's worth a try. Drew At 02:37 PM 5/17/02 -0400, Ted

Re: [OT] Refs don't work, like I want

2002-05-17 Thread Per Einar Ellefsen
At 16:10 17.05.2002, Viljo Marrandi wrote: Hello, Sorry about non mod_perl question, but as I'm subscribed to this list and I know I can get help from here, I ask my question here. Can anyone tell me, what's wrong with this piece of code: $vars-{'key2'} = value of second key; $vars = {

Generating dynamic VirtualHost and Location directives

2002-05-17 Thread Mathieu Jondet
Hi all, I'm actually working on a application for generating dynamic virtual host and locations in these virtual host from a web interface. The purpose of this application is to give a non-administrator the possibility of adding on the fly virtualhost to a webserver without modifying

Generating dynamic VirtualHost and Location directives and reloading Apache configuration

2002-05-17 Thread Mathieu Jondet
Hi all, I'm actually working on a application for generating dynamic virtual host and locations in these virtual host from a web interface. The purpose of this application is to give a non-administrator the possibility of adding on the fly virtualhost to a webserver without modifying

Re: Force a 404 error?

2002-05-17 Thread Helios de Creisquer
On Thu, May 16, 2002 at 11:40:49AM +0100, Jonathan M. Hollin wrote: Hi JAPHs, Is it possible to force a 404-error from within a mod_perl CGI? I am working on my CMS and I want to generate a 404 if the user hacks the URI in a certain way: i.e, if the use passes a value in the URI that