Re: Charts and Graphs

2007-04-13 Thread martin
> On Thursday 12 April 2007 19:15, Bill Whillers wrote: >> Hello, >> >> I'm wondering what people are using for efficiently generating charts >> and >> graphs on the fly from within a mod_perl environment. I've been using >> GD::Graph for a while but I'm hoping to get a bit more feature-deep. >> I

set request params

2007-09-28 Thread martin
as i see there is no way to set request parameter in mod_perl2 is there any chance this could happen in near future releases?

libapreq2 and FreeBSD

2004-01-16 Thread Martin Nilsson
.so ///usr/local/lib/perl5/site_perl/5.6.1/mach/Apache2/auto/Apache/Request/Request.bs ///usr/local/lib/perl5/site_perl/5.6.1/mach/Apache2/auto/Apache/Request/Request.so ///usr/local/lib/perl5/site_perl/5.6.1/mach/auto/libapreq2/.packlist Thanks for any help making this work! /Martin -- Reporting bugs: h

Re: libapreq2 and FreeBSD

2004-01-18 Thread Martin Nilsson
Joe Schaefer wrote: Martin Nilsson <[EMAIL PROTECTED]> writes: I'm trying to install libapreq2-2.02-dev on FreeBSD 4.9 with Perl 5.6.1 and Apache 2.048 mod_perl2-1.99r12 all installed from ports. The perl glue looks ok to me. Where did mod_apreq.so and libapreq2.so wind up going

Re: Search Bot

2004-01-28 Thread martin langhoff
ndler only for Googlebot, address the problem? I seem to recall a thread where people were using it to throttle clients based on a "bad client" IP list that was updated on a cron script. cheers, martin -- Reporting bugs: http://perl.apache.org/bugs/ Mail list info: http://

Re: [OT] Forcing httpd's to not swap out of memory

2004-02-29 Thread Martin Langhoff
em back to 'handle' the signal, and then they'd ignore it. You get all the children, it's simpler and doesn't muck up you logs or request counts. Untested cron entry: */10 * * * * ps -u apache --option-show-only-pids | xargs kill -SIGARLM cheers, martin -- -- Mar

Refreshing Caches at server restart

2004-04-19 Thread MARTIN MOSS
All,   I have a few modules which cache a few arrays. I want to get around the problem of these arrays staying cached when Apache Restarts gracefully. I can't have the server stop and start, and Apache::Reload isn't really the solution for this problem (or at least I don't think it is).   Has anybo

Re: DBI and Apache::DBI

2004-05-14 Thread MARTIN MOSS
You didn't specify which Database server you're using. If it's mysql you need to be cautious of the 'ping' method used by Apache::DBI to check if a connection is stale or not. the DBD::mysql ping method always returns a 'true' string e.g. "0 but true" rather than a 1 or a 0.   I believe the latest

Method Handler not working

2004-07-22 Thread MARTIN MOSS
All,   I have a quirky issue concerning a redhat machine and Apache 1. I have a method handler   sub handler ($$) {   my $class=shift;   my $r = shift; }   Which when running on a redhat linux machine dies with the error message "Attempt to bless into a reference"  and when analysing the incoming v

Re: Method Handler not working

2004-07-22 Thread MARTIN MOSS
I'm not sure, is there a way to find out what options apache has been built with?   There are no differences in code & http.conf between the working machines, only OS versions.   MartyPerrin Harkins <[EMAIL PROTECTED]> wrote: On Thu, 2004-07-22 at 11:26, MARTIN MOSS wrote:>

Re: Method Handler not working

2004-07-22 Thread MARTIN MOSS
Michael <[EMAIL PROTECTED]> wrote:Perrin Harkins wrote: > On Thu, 2004-07-22 at 11:26, MARTIN MOSS wrote: > >>This error doesn't occur on machines running the same code (mirrored >>in the same way as the redhat box), it works perfectly fine. >> >>Has a

Re: Method Handler not working

2004-07-24 Thread MARTIN MOSS
> > > It is setup like this:- > > > > > > > > > SetHandler perl-script > > > PerlHandler My::Package > > > > > Shouldn't that be > >PerlHandler My::Package->handler > > Technically that isn't necessary if your method is > called handler() and > you have prototyped it with ($$). > I've go

Re: Method Handler not working

2004-07-24 Thread MARTIN MOSS
Thanks very much Perrin, Have a nice weekend, Marty --- Perrin Harkins <[EMAIL PROTECTED]> wrote: > On Fri, 2004-07-23 at 18:12, MARTIN MOSS wrote: > > My question is, If you don't have a PerlModule > > statement or a use My::Module, or a require or a > > +M

Re: Method Handler not working

2004-07-26 Thread MARTIN MOSS
--- Perrin Harkins <[EMAIL PROTECTED]> wrote: > On Fri, 2004-07-23 at 18:12, MARTIN MOSS wrote: > > My question is, If you don't have a PerlModule > > statement or a use My::Module, or a require or a > > +My::Module statement so it looks like this > >

[mp2] make test fails on t/hooks/hookrun.t t/hooks/stacked-handlers2.t and t/user/rewrite.c

2004-09-04 Thread Martin Wheldon
Hi Folks, Hope you can help me with this one. Apologies if I've missed and critical information. If I have please let me know and I'll provide any additional that is required. Thanks in advance Martin -8<-- Start Bug Report 8<-- 1. Pro

[mp2] make test fails on t/hooks/hookrun.t t/hooks/stacked-handlers2.t and t/user/rewrite.c

2004-09-07 Thread Martin Wheldon
Hope you can help me with this one. Apologies if I've missed and critical information. If I have please let me know and I'll provide any additional that is required. Thanks in advance Martin -8<-- Start Bug Report 8<-- 1. Problem Descripti

[mp2] & Apache2: undefined symbol: PL_localizing

2004-10-11 Thread MARTIN Pierre
Hello all, I am totally new to mod_perl mailing list so maybe i am not posting in the right place.   I recently installed a debian woody on a pentium based box. I also managed to install Apache 2 (with php and some others modules) and it works perfectly as i was waiting it to do :) I red tha

Re: [mp2] & Apache2: undefined symbol: PL_localizing

2004-10-11 Thread MARTIN Pierre
problem... Thank you! Pierre - Original Message - From: "Stas Bekman" <[EMAIL PROTECTED]> To: "MARTIN Pierre" <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Monday, October 11, 2004 7:33 PM Subject: Re: [mp2] & Apache2: undefined symbol: PL_localizing

Re: [mp2] & Apache2: undefined symbol: PL_localizing

2004-10-11 Thread MARTIN Pierre
> Hmm, can you please paste the arguments you passed to perl Makefile.PL? I > can't figure out why the above output doesn't show a link to libperl.so To configure i just did: perl Makefile.PL MP_AP_PREFIX=/usr/local/apache2 MP_INST_APACHE2=1 Is there a step before that i forgot? /data/misc/mod_pe

Re: [mp2] & Apache2: undefined symbol: PL_localizing

2004-10-11 Thread MARTIN Pierre
> what happens if you do: >nm src/modules/perl/mod_perl.so | grep PL_ U PL_curcop U PL_curinterp U PL_curpad U PL_curstack U PL_curstackinfo U PL_curstash U PL_defoutgv U PL_defstash U PL_diehook U PL_egi

Re: [mp2] & Apache2: undefined symbol: PL_localizing

2004-10-11 Thread MARTIN Pierre
> Please do: > cd src/modules/perl/ > rm mod_perl.so > make -f Makefile.modperl Here we go: /data/misc/mod_perl-1.99_16/src/modules/perl# rm mod_perl.so /data/misc/mod_perl-1.99_16/src/modules/perl# make -f Makefile.modperl rm -f mod_perl.so cc -shared -L/usr/local/lib \ \ mod_perl.lo modperl_in

Re: [mp2] & Apache2: undefined symbol: PL_localizing

2004-10-11 Thread MARTIN Pierre
> I think your linker is broken. I say that because it included the linking > directives: > >-L/usr/lib/perl/5.6.1/CORE -lperl > > but the resulting mod_perl.so doesn't show it up. It should have > complained if it didn't find it. Try upgrading your linker (cc) and try > rebuilding mod_perl aga

Re: [mp2] & Apache2: undefined symbol: PL_localizing

2004-10-12 Thread MARTIN Pierre
> Hi Pierre, Hello William, > I run Apache with Debian and have had > troubles in the past with compiling mod_perl due to having two copies of > libperl.so[1]; I think this would more likely be the case if you have > compiled Perl yourself. We discussed about all this with Stas and we arrived at

Re: [mp2] & Apache2: undefined symbol: PL_localizing

2004-10-12 Thread MARTIN Pierre
Hello Nick, > If you want mod_perl for Apache2 in Debian, I'd suggest you use a > packaged > version; it's a lot easier. My problem is, that i CANT get the debian package because i compiled & installed apache manualy. Few weeks ago i tryed to override some debian dependency packages, and the resu

Mod perl performance and DSO?

2004-10-12 Thread Martin Moss
All, I have a brand new redhat 9 box. I have plenty of diskspace and I need to install apache mode perl mod php and mod ssl. Most information I find on the web to do this uses DSO. Performance is absolutely critical for this machine, it's going to be handling millions of web 'hits' per day. My

Re: Mod perl performance and DSO?

2004-10-13 Thread Martin Moss
liam McKee <[EMAIL PROTECTED]> wrote: > On Tue, Oct 12, 2004 at 05:06:18PM +0100, Martin > Moss wrote: > > Most information I find on the web to do this uses > > DSO. Performance is absolutely critical for this > > machine, it's going to be handling millions of

Re: Mod perl performance and DSO?

2004-10-13 Thread Martin Moss
eek, sorry, you guessed right at apache 1.x (1.3.31) Marty --- William McKee <[EMAIL PROTECTED]> wrote: > On Wed, Oct 13, 2004 at 12:46:19PM +0100, Martin > Moss wrote: > > Hmmm, I'm a little concerned that using DSO does > have > > a performance hit for no

Re: Modperl setup Linux (which version)?

2004-10-13 Thread Martin Moss
Not for Mp2 but did you come across this link? http://www.brtnet.org/linux/rtinstall.htm Marty --- Jon Forrest <[EMAIL PROTECTED]> wrote: > Maybe others know something that I don't know, > but I was unable to build mod_perl2 with apache 2 > on either Mandrake 10.0 or Fedora Core 2. I sent > se

[mp2] Large (>11584 bytes) requests truncated

2004-10-15 Thread Scot Martin
Apache 2.0.52 mod_perl 1.99_16 Perl 5.8.5 OpenSSL 0.9.7d Solaris 8 Greetings! I am building a load test environment that simulates responses from a large database, with all I/O in an XML payload. Most of the requests and responses are no more than a few hundred bytes, but then there are

Re: [mp1] text-book forking code still producing zombies

2004-10-15 Thread Scot Martin
Hi Mark, I don't know if this will help, but out of the numerous ways I tried this is the only way I could solve the zombie issue in MP2 on Solaris 8: use POSIX 'WNOHANG'; use POSIX ":sys_wait_h"; my($kid); do { $kid=waitpid(-1,WNOHANG); } until $kid <= 0; if(!(defined ($pid = fork( {

Embedding another webpage within a web page

2004-10-06 Thread Martin Moss
All, I have an interesting issue. I'm in the process of whitelabeling a website, but part of the process I need to whitepabel is hosted by an outsourced company. Rather than get the outsource company to change their html, I would rather download and edit the html from the outsourced website on t

Re: Embedding another webpage within a web page

2004-10-07 Thread Martin Moss
Thanks guys, Marty --- Tom Schindl <[EMAIL PROTECTED]> wrote: > Martin Moss wrote: > > All, > > > > I have an interesting issue. I'm in the process of > > whitelabeling a website, but part of the process I > > need to whitepabel is hosted by a

Re: [mp2] & Apache2: undefined symbol: PL_localizing

2004-10-21 Thread MARTIN Pierre
Hello here to everybody who helped me when i was in troubles... I write this just to tell you where i am now, i hope it will help you to understand something new in the "linker" (???) subject. So, my problem was, that i was unable to compile modperl 2 with apache 2. Not exactly will you say, i wa

Re: [mp2] Large (>11584 bytes) requests truncated

2004-10-21 Thread Scot Martin
--- Stas Bekman <[EMAIL PROTECTED]> wrote: > Scot Martin wrote: > > Apache 2.0.52 mod_perl 1.99_16 Perl 5.8.5 > > OpenSSL 0.9.7d Solaris 8 > > > > > > The problem I'm having is that my largest request > is > > 349024 bytes and whe

Re: Apache::DBI, Postgresql, and transactions

2004-10-27 Thread Martin Moss
Heyho, I spent ages trying to track down a mysql/Apache::DBI bug, and whilst I'm not sure what's going wrong with your system, I found it useful to add the PID of the individual mysql process (not sure if you can do this with postgresql) to the $dbh and then implement a error handler which logs th

Re: Request methods not found

2004-11-02 Thread Martin Moss
Hi Marina, Can you post a bit of your http.conf which declares your AuthHandler's usage? Are you saying:- PerlAuthHandler Our::Auth->authen_handler or PerlAuthHandler Our::Authen::authenhandler I ran some code across SuSe and Redhat and noticed different behviours for using "->". If you use "-

RE: Request methods not found

2004-11-02 Thread Martin Moss
t circumstances it's possible to NOT get an Apache object passed into your handler subroutine? Does this happen when a subrequest occurs? Regards Marty --- Marina Markus <[EMAIL PROTECTED]> wrote: > Hello and many thanks to Martin and Geoffrey, > > Martin was right - usi

Protecting against Cookie copying

2004-11-08 Thread Martin Moss
All, I'm looking into ways of uniquely identifying a computer. I've been reading around the web looking at different mechanisms, and so far I've drawn a fuzzy blank. Currently, I want to use SSL to let a user sign in and then I return a session cookie, which I then use to confirm the user is logge

Re: Protecting against Cookie copying

2004-11-08 Thread Martin Moss
ding our site from normal Basic authentication, which sends username and password unencrypted anyway, so compared to that the security upgrade is still a big increase! Marty --- Sam Tregar <[EMAIL PROTECTED]> wrote: > On Mon, 8 Nov 2004, Martin Moss wrote: > > > I&#x

Authentication using https

2004-11-10 Thread Martin Moss
All, I'm about to replace the authentication mechanism that our web site uses. However I wanted to sanity check my thought process. Is it possible to have an Authen handler sitting on certain areas of a site, and if a user isn't logged in (i.e. doesn't have an auth session cookie) we present the

Re: Authentication using https

2004-11-12 Thread Martin Moss
Cheers Fellas, this was the bit I was concerned about. Apache::AuthCookie, looked a little bloated to me, however I'm a big fan of only inventying new types of wheels not old so I'll revisit... Regards Marty --- Michael J Schout <[EMAIL PROTECTED]> wrote: > On Wed, 10 Nov 2004, Skylos wrote:

Urgent justification for perl

2004-11-19 Thread Martin Moss
All, I've had an urgent request for a few paragraphs on the justification for the use of perl. In particularly mod_perl. Someone in the powers that be read an outdated description and thinks that using perl is a security risk - (I know, its not what you use, but how you use it thats the security

Re: Urgent justification for perl

2004-11-22 Thread Martin Moss
gt; On 19 Nov 2004, at 12:35, Martin Moss wrote: > > > I've had an urgent request for a few paragraphs on > the > > justification for the use of perl. In particularly > > mod_perl. > > > > Someone in the powers that be read an outdated > > description

[mp2] Problem with forking cleanup in high request rate server

2003-09-22 Thread Scot Martin
mp1.99.10-devApache 2.0.47Solaris 8I'm building a single-purpose, high-performance, multi-threaded  application server using the above and have run into problems with forking and cleanup of old httpd instances.  Yes, I have to fork and exec as I have to call some legacy C code and then set up comms

Re: [mp2] Problem with forking cleanup in high request rate server

2003-09-23 Thread Scot Martin
27;t work for me.  I realize that I didn't try the waitpid() example after the fork.Stas Bekman <[EMAIL PROTECTED]> wrote: Scot Martin wrote:> mp1.99.10-dev Apache 2.0.47 Solaris 8> > I'm building a single-purpose, high-performance, multi-threaded application> server using th

Re: [mp2] Problem with forking cleanup in high request rate server

2003-09-24 Thread Scot Martin
Stas Bekman wrote: >> When spawn_proc_prog() is called I get a segfault in strrchr when >> modperl_spawn_proc_prog calls ap_make_dirstr_parent, which then calls >> strrchr. Unfortunately, my Perl 5.8 and Apache are not compiled with >> debugging on so I'm recompiling all now. More later >

Re: [mp2] Problem with forking cleanup in high request rate server

2003-09-25 Thread Scot Martin
Sorry about the last post. This one is definately plain text. The good news is that I've distilled the problem down to a one line change in my httpd.conf file. With the following line, Apache drops a core when spawn_proc_prog() is called: PerlTransHandler Apache::OK The above line causes

anchor tag

2003-11-01 Thread martin moss
Heyho, If I have a url of http://some.domain.com/test/index.html#test When I do a $r->uri I ge the url path /test/index.html and $r->path_info is blank. How do I get the #test anchor bit on the end of the url? Regards Marty

Re: ... and startup.pl equivalent?

2004-12-13 Thread Martin Moss
Hi Colin, just my opinion, but from a 'practicalities' point of view, as startup.pl gets more complex (your site grows larger, you wish to do more intricate mod_perly things), you will find that it is a distinct advantage to run it from the command line in the debugger. you wouldn't be able to do

Re: HTML::Embperl + mod_perl + segfault

2004-12-15 Thread Martin Moss
I upgraded to the latest version of Embedperl and ran the same code from my previous post. IT no longer segfaults but I get the following error... Embperl::Execute({ req_rec=>$r, inputfile=>$file, param =>[$params],

HTML::Embperl + mod_perl + segfault

2004-12-13 Thread Martin Moss
All, I'm getting segfaults on every page request I make to a mod_perl handler thats running under HTML::Embedperl. We're trying to migrate away from Embperl as fast as possible, but whenever I call HTML::Embperl::Execute in my code more than 4 or 5 times I get seg faults.. perl 5.6, apache 1.

Re: sessions:THANK YOU!

2005-01-06 Thread Martin Moss
I didn't get chance to reply, and the others covered everything, but the point of Apache::Session is that you don't need to store ANY data other than a session_id in a hidden field or in a cookie... All of the rest of the data you need gets stored locally on the server side. Much more secure. Ma

Re: Apache::DBI

2005-01-09 Thread Martin Moss
> > Is PerlSetVar the best way to pass values from > httpd.conf to perl > > securely? > > It's a good way, although there are plenty of > others. I use a separate > config file usually. > For what it's worth I use both. I keep 'site wide' configuration vales in a Config file/module (usually Bac

Re: Overriding PerlAuthenHandler in sub-directories

2005-01-10 Thread Martin Moss
I was looking into this a while back, and came across several posts that described using a PerlAccessHandler to determine if PerlAuthenHandler should be set or not. You could then setup PerlSetVar Require_Auth '0' in any sublocations that didn't need Auth. your AccessHandler would then do a set-ha

Re: Mac::Glue and mod_perl

2005-01-14 Thread Martin Moss
please forgive the really daft question, but have done a complete server shutdown and restart? I've come across bus errors before where a complete server restart made the problem go away and never come back... Marty --- Brian Dimeler <[EMAIL PROTECTED]> wrote: > Sorry for cross-posting this,

Re: [mp1] Method handler that eventually seems to "forget" it's a method handler

2005-02-02 Thread Martin Moss
I've seen this problem and never got to the bottom of it, on a redhat box with 5.8.3 (I think) and same apache and mod_perl, Marty --- Andrew Green <[EMAIL PROTECTED]> wrote: > Hi, > > I seem to have a bizarre problem with method > handlers on my setup. I > have a set of different handler

Re: [mp1] Method handler that eventually seems to "forget" it's a method handler

2005-02-02 Thread Martin Moss
I tried ->handler in my configs, made no difference. I was doing a 'require' in a startup script if that makes any difference. Haven't seen this issue with simillar code anywhere else.. Marty --- Geoffrey Young <[EMAIL PROTECTED]> wrote: > > > > > PerlTransHandler MyApp::MyIn

Sanity check on mod_rewrite and POST data [slightly OT]

2005-02-04 Thread Martin Moss
All, Can I get a sanity check on this:- I have a form which POSTs to https://server/url That https servers uses mod_rewrite to forward the request onto another server internally as http://server/url However after the rewrite, the POST data is lost. Can anybody throw any light on this? the rewri

Re: End result of Wiki-ish system design + final question

2005-02-14 Thread Martin Moss
Hi Ben, I have a few thoughts on this... In my experience writing a daemon process is easy (well ish) but then configuring your system to manage them (have they died, have they crashed etc..) is more trouble than its worth. Is it possible to use some kind of cronjob based system, which runs a scr

Board down? Test email

2005-03-13 Thread Martin Moss
Is anybody else having problems posting? I posted a message on Monday, it still hasn't arrived, now I just get undeliverables Marty Send instant messages to your online friends http://uk.messenger.yahoo.com

Re: shared memory

2005-03-15 Thread Martin Moss
--- André Warnier <[EMAIL PROTECTED]> wrote: > Jonathan Vanasco wrote: > > > > look into memcached -- http://danga.com/memcached/ > > Thank you for the link, I didn't know that module, > and I'll keep it in > mind for some other projects. > But it is slightly off the mark as far as the issue >

Re: Authentication problem

2005-04-07 Thread Martin Moss
Hi, what's your MaxClients setting in your apache conf? It could just be that you aren't running enough apache child processes to serve the number of connections being made, Regards Marty --- "Levi E. Stanley" <[EMAIL PROTECTED]> wrote: > Hi, > > Been seeing problems with an Authenticate scr

slightly OT - defining variables in httpd.conf for use in httpd.conf

2005-04-07 Thread Martin Moss
All, I know I've seen this done before, but I'd like to define a variable at the top of my httpd.conf file, and then use it many times throughout the conf file... e.g. define Server='fred' DocumentRoot /usr/local/${server} I just can't find any info on this... Can anybopdy point me at the rig

RE: slightly OT - defining variables in httpd.conf for use in httpd.conf

2005-04-07 Thread Martin Moss
mod_define! Thats the one I can't believe I didn't find a link to in when searching google for 'dynamic variables httpd.conf' Ah well Thanks for that, regards Marty --- "Reed, Jonathan" <[EMAIL PROTECTED]> wrote: > We set them in Section 2 of the httpd.conf after the > DocumentRoo

to ENV or not to ENV

2005-05-18 Thread Martin Moss
All, We're in the process of introducing mod perl method handlers and template toolkit into a system which is also running Embperl. There is some interaction between the two, and as Embperl (and especially our code which uses it) uses %ENV to pass around variables like $ENV{REMOTE_USER_ID} and oth

Re: Getting lots of redefined statements in the error_log

2005-06-20 Thread Martin Moss
Can you confirm you have the same version of Perl on both systems? I've seen these errors on perl 5.8 after upgrading from perl 5.005 Marty p.s. I still have them too, so any help with this issue would be useful to me too... --- Boysenberry Payne <[EMAIL PROTECTED]> wrote: > Here is a samp

mod_define apache2

2005-08-17 Thread Martin Moss
All, We're in the middle of centralising our apache (1.3) config files and I would like to use mod_define to simplify the process. However I've noticed that mod_define isn't available for apache2. Is there an alternative I can use, or is mod_define's functionality now core to mod_perl2? Regards

[mp2] 'make test' error--cannot start server: httpd () does not exist

2005-08-22 Thread Eric Martin
. Return-Path: <[EMAIL PROTECTED]> Received: (qmail 69110 invoked by uid 99); 22 Aug 2005 16:50:07 - Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 22 Aug 2005 09:50:07 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0

Fw: [mp2] 'make test' error--cannot start server: httpd () does not exist

2005-08-22 Thread Eric Martin
; -D DEFAULT_SCOREBOARD="logs/apache_runtime_status" -D DEFAULT_LOCKFILE="logs/accept.lock" -D DEFAULT_ERRORLOG="logs/error_log" -D AP_TYPES_CONFIG_FILE="conf/mime.types" -D SERVER_CONFIG_FILE="conf/httpd.conf" - Original Message - From: "Philippe M

Re: Fw: [mp2] 'make test' error--cannot start server: httpd () does not exist

2005-08-22 Thread Eric Martin
Note: chowning the entire apache tree to nobody:nobody still causes the "httpd () does not exist" error in mod_perl 2. Have you tried $> su - nobody $> stat /usr/local/stow/apache-2.0.54/apache2/bin/httpd ? 'stat' command? Did I mention the machine is a vanilla Solaris 10 host? I suspect n

Multiple Handlers

2005-08-31 Thread Martin Moss
All, I'm trying to make something work in mod perl, and all the docs seem to be pointing me in ways which just don't work on our system... Server version: Apache/1.3.33 (Unix) SunOS 5.9 perl, v5.8.6 I wish to have a handler which sits after the Authentication stage, which can choose whether to d

Re: Multiple Handlers

2005-08-31 Thread Martin Moss
Have an awful suspicion the book I used suggested doing it the other way around? Would that make a difference? $r->handler('perl-script'); $r->set_handlers(PerlHandler => [ My::Handler ]); Marty --- Geoffrey Young <[EMAIL PROTECTED]> wrote: > > > > I originally tried using $r->set_handlers.

Re: Multiple Handlers

2005-08-31 Thread Martin Moss
27; ]; $VAR3 = [ 'III::Apache::User::Notification' ]; == == 15253 Apache::AuthenDBI request type = main In Embperl::handler So as you can see, the set_handlers seems to work... But after the Authen s

Apache::DBI How tro tell if enabled

2005-09-29 Thread Martin Moss
All, I'm trying to confirm whether Apache::DBI is running on a server.. I can tell if it's loaded, using perl-status, but I can't tell if it's running correctly - e.g. intercepting calls to DBI->connect/disconnect... Can anybody give me a few pointers? Marty __

Re: Apache::DBI How tro tell if enabled

2005-09-29 Thread Martin Moss
So I presume that having done all this, and my logfile remains blank, then it is not working? :-) --- Michael Peters <[EMAIL PROTECTED]> wrote: > > > Martin Moss wrote: > > All, > > > > I'm trying to confirm whether Apache::DBI is > running > >

Re: Apache::DBI How tro tell if enabled

2005-09-30 Thread Martin Moss
irm Apache::DBI debug level2 output wasnt' appearing in the logs.. so it's definitely disabled... Fine tooth comb time:-( Cheers for all the help, Marty --- Perrin Harkins <[EMAIL PROTECTED]> wrote: > On Thu, 2005-09-29 at 17:08 +0100, Martin Moss > wrote: > > So I

Module mod_log_config and custom Auth

2005-10-03 Thread Martin Moss
All, I'm looking to ensure that an Authenticated user's username is logged in our logfiles, along with a cookie string.. I've had a quick look through google and I'm currently finding that I should use %u for username, but this is appearing blank... What do I need to set in my Custome Authenticat

Re: Module mod_log_config and custom Auth

2005-10-03 Thread Martin Moss
erl installed... Can this have anything to do with it? Marty --- Geoffrey Young <[EMAIL PROTECTED]> wrote: > Martin Moss wrote: > > All, > > > > I'm looking to ensure that an Authenticated user's > > username is logged in our logfiles, along with a

is_intial_req

2005-11-01 Thread Martin Moss
I'm a little confused. And was wondering if I could get a sanity check.. I have a mod perl method handler and at start it runs this code my $is_initial_req = $r->is_initial_req; my $is_main = $r->is_main; my $main = $r->main; my $proxyreq = $r->proxyreq; print STDERR Dumper('is_i

Re: is_intial_req

2005-11-01 Thread Martin Moss
rank Wiles <[EMAIL PROTECTED]> wrote: > On Tue, 1 Nov 2005 14:31:33 + (GMT) > Martin Moss <[EMAIL PROTECTED]> wrote: > > > I'm a little confused. And was wondering if I > could > > get a sanity check.. > > > > I have a mod perl method ha

Re: is_intial_req

2005-11-01 Thread Martin Moss
nd the details of why.. Marty --- Frank Wiles <[EMAIL PROTECTED]> wrote: > On Tue, 1 Nov 2005 14:54:31 + (GMT) > Martin Moss <[EMAIL PROTECTED]> wrote: > > > Hey Frank.. > > > > I agree, thats why I setup the logout2 control > test. > > What I don

Re: is_intial_req

2005-11-01 Thread Martin Moss
d the scenes, and I can't work it out... Is it possible Embperl does something with the Apache Request in an earlier Phase of the request? --- Michael Peters <[EMAIL PROTECTED]> wrote: > > > Martin Moss wrote: > > I'm a little confused. And was wondering

Re: is_intial_req

2005-11-01 Thread Martin Moss
I had a quick look at this and found both my requests to /logout/ and /logout2/ typed into the browser manually, continue to result in the same issue.. Here's the rewrite rules I have on my https proxy that each request comes through.. RewriteRule ^/logout/(.*)$ http://${farm:map_pf}/logout/$1 [P

Authentication

2005-11-10 Thread Martin Moss
All, During the Authentication phase, Any custom responses that need to be sent back to a user, MUST be sent with FORBIDDEN using custom_repsonse? Under Authentication 200 (OK) simply lets Apache Move on the to the next phase (authz, content etc..)... I have an authen handler which uses cookie

Re: Authentication

2005-11-10 Thread Martin Moss
So an Authen Handler can return a REDIRECT? I use a 403 custom repsonse which is a self submitting page (with non javascript handling)... By doing so it prevent's any of the authentication pages appearing in IE's back button on the browser... Marty --- Perrin Harkins <[EMAIL PROTECTED]> wrot

Re: Authentication

2005-11-10 Thread Martin Moss
s appear in their browser history... Marty --- John ORourke <[EMAIL PROTECTED]> wrote: > My fault guys, not looking up the numbers - Martin > is your admin > complaining about too many FORBIDDENs or REDIRECTs? > > The only thing I can add is that I'd recommend not >

configuration error: couldn't check user. No user file?:

2005-11-11 Thread Martin Moss
I'm seeing this error in the logfiles... configuration error: couldn't check user. No user file?: Any ideas what might cause it... it is appearing on different webpages... seems to be during large POST's. We've just changed from Basic to Cookie based Auth... Marty _

Re: configuration error: couldn't check user. No user file?:

2005-11-11 Thread Martin Moss
ge amount of content... And intermittently on other page requests (GET & POST) the subroutine fails the can_read but the client is Still there Any ideas? We use a reverse proxy in front of our mod_perl server... Marty --- Martin Moss <[EMAIL PROTECTED]> wrote: > I'm se

Re: Apache::DBI

2006-01-16 Thread Martin Moss
Not sure why it's doing it, if you've got a default clean install, But to control it's debug level you can put this in your startup.pl $Apache::DBI::DEBUG=0; Regards Marty --- Paul Harrison <[EMAIL PROTECTED]> wrote: > > > I installed Apache::DBI - 0.98 on FreeBSD 5.4 with > mod_perl 1.

[JOB] [OT] London

2006-02-28 Thread Martin Moss
All, We are seeking a perl developer to join a small development team. The ideal candidate will have 3+ years experience developing, supporting and debugging internet/intranet projects, using perl within an Apache, linux/solaris environment. Candidates must also have 2+ years experience using Ora

Perl Script using MapToStorageHandler

2006-03-01 Thread Glenn Martin
ted... How would i remove theses changes and what handler would you suggest for me to tie in to? Thank You Glenn R. Martin

Re: Perl Script using MapToStorageHandler

2006-03-01 Thread Glenn Martin
do i reset the configuration? --- Andy Armstrong <[EMAIL PROTECTED]> wrote: > On 1 Mar 2006, at 21:44, Glenn Martin wrote: > > Ive got a script im wokring on that uses the > > "PerlMapToStorageHandler" at that point it adds to > the > > Apache Configuration usi

Re: Perl Script using MapToStorageHandler

2006-03-01 Thread Glenn Martin
If i am doing this wrong, how would you suggest doing it? Glenn R. Martin --- Andy Armstrong <[EMAIL PROTECTED]> wrote: > On 1 Mar 2006, at 21:44, Glenn Martin wrote: > > Ive got a script im wokring on that uses the > > "PerlMapToStorageHandler" at that po

Re: Perl Script using MapToStorageHandler

2006-03-01 Thread Glenn Martin
sprintf("SVNPath %s", $localpath), '']); and $r->add_config([sprintf('', $localpath), 'DirectoryIndex .', 'Options +Indexes', 'Dav On', '']); --- "Philippe M. Chiasson" <[EMAIL

Re: Perl Script using MapToStorageHandler

2006-03-01 Thread Glenn Martin
sprintf("SVNPath %s", $localpath), '']); and $r->add_config([sprintf('', $localpath), 'DirectoryIndex .', 'Options +Indexes', 'Dav On', '']); --- "Philippe M. Chiasson" <[EMAIL

Re: Perl Script using MapToStorageHandler

2006-03-02 Thread Glenn Martin
working on now... the Subversion/Dav one... Glenn --- Torsten Foertsch <[EMAIL PROTECTED]> wrote: > On Wednesday 01 March 2006 23:20, Glenn Martin > wrote: > > Sounds great, but how would i do something simular > to: > > > >       $r->add_co

Crypt::CBC

2006-04-10 Thread Martin Moss
All, I had some code which ran the old version of Crypt::CBC (2.12). Using these headers to create the object:- my $cipher = new Crypt::CBC($ENCRYPTION_KEY,'Blowfish'); I've now built a new machine. Copied the database values (encrpypted using the above) onto the new machine DB using mysqldump

Re: Crypt::CBC

2006-04-10 Thread Martin Moss
/~lds/Crypt-CBC-2.12/ > > --Ian > > > On 4/10/06, Martin Moss > <[EMAIL PROTECTED]> wrote: > > All, > > > > I had some code which ran the old version of > > Crypt::CBC (2.12). > > > > Using these headers to create the object:- > > >

[MP2] Is there anything shared between threads in threaded MPMs like the Winnt one?

2006-04-15 Thread Lionel MARTIN
  Hi,   I'm using MP v2.02, along with ActivePerl v5.8.8 and Apache v2.054, all that under Windows XP.   Under Win32, the Apache memory model is a threaded model, i.e. we have one master Apache process,and, then, one unique child process, containing several threads, that can, if needed,

Re: How many people use the Windows combo of Apache2 + mod_perl2 ?

2006-04-26 Thread Lionel MARTIN
Hi, I'm having the same kind of interrogation. Concerning me, I'm working on a project that's still in development, and I'm developing under Windows (MP2, ActivePerl 5.8.8 Build 816 , Apache 2.055) I'll have to make a choice for the production environment, and I'm not sure what to choose. I'll h

  1   2   >