Re: Virtual Host Logging Perl Script

2003-07-16 Thread Ged Haywood
Hi there, On Tue, 15 Jul 2003, Jez Hancock wrote: Does anyone how one could log errorlog entries in a similar manner to the script above - ie pipe the errorlog to a script which appends one copy of the error entry to a main error logfile and another copy to the virtual host's error logfile?

Re: perl5.8

2003-07-16 Thread Ged Haywood
Hi there, On Wed, 16 Jul 2003, Grant Cooper wrote: I was upgrading to perl5.8 using freeBSD To install via ports, I typed this : cd /usr/ports/lang/perl5.8 make install clean rehash use.perl port What does rehash do? And what does use.perl port do? This List is for questions

Re: Undocumented behaviour in Apache-print()?

2003-07-16 Thread Steve Hay
Stas Bekman wrote: Steve Hay wrote: It's only Perl 5.8 that has the special UTF-8 flag which the functions above all operate with respect to. If a Perl variable contains a sequence of bytes that make up a valid UTF-8 character, but the string is not flagged with Perl's special flag, then

Re: Virtual Host Logging Perl Script

2003-07-16 Thread Jez Hancock
On Wed, Jul 16, 2003 at 12:40:06PM +0200, Guillaume Fougnies wrote: Wed, Jul 16, 2003 at 11:07:47AM +0100: Jez Hancock wrote: I would do this but we wanted to give our users 'live' logfiles, rather than making them wait until log rotation before being able to view them (or did I

Re: Virtual Host Logging Perl Script

2003-07-16 Thread Ged Haywood
Hi Jez, On Wed, 16 Jul 2003, Jez Hancock wrote: [snip] We started looking at mod_log_sql: [snip] but had trouble getting it to work on FreeBSD unfortunately. I'd have thought something a bit lighter might do for this. Right now it seems a bit silly having a separate ErrorLog line in each

RE: Virtual Host Logging Perl Script (mod_macro note)

2003-07-16 Thread Marc M. Adkins
Right now it seems a bit silly having a separate ErrorLog line in each of the apache virtual host stubs, but as far as I am aware there isn't an easier way is there? You could look at mod_macro. mod_macro (http://www.coelho.net/mod_macro) works great for me. I found that I had to make a

Re: Virtual Host Logging Perl Script (mod_macro note)

2003-07-16 Thread Jez Hancock
On Wed, Jul 16, 2003 at 12:40:10PM -0700, Marc M. Adkins wrote: Right now it seems a bit silly having a separate ErrorLog line in each of the apache virtual host stubs, but as far as I am aware there isn't an easier way is there? You could look at mod_macro. mod_macro

Double erroneous requests in POST with multipart/form-data

2003-07-16 Thread Mark Maunder
This has got me stumped, any help is much appreciated: I'm using IE6 and mod_perl 1.27 with apache 1.3.27. I have mod_rewrite and mod_proxy and mod_gzip compiled into the server, but have now disabled all of them until I sort this problem out. IE generates a request who's headers look like this

Re: Double erroneous requests in POST with multipart/form-data

2003-07-16 Thread David Dick
What are you using to parse the request? CGI.pm? Mark Maunder wrote: This has got me stumped, any help is much appreciated: I'm using IE6 and mod_perl 1.27 with apache 1.3.27. I have mod_rewrite and mod_proxy and mod_gzip compiled into the server, but have now disabled all of them until I sort

How do you set vars via interactive startup?

2003-07-16 Thread Patrick Galbraith
Hi there, I'm trying to figure out how one would set vars via a startup.pl script or using PerlSections. I want to set a var on startup where I'll be prompted and a var that I can retrieve via $r-dir_config('FOO') will get me that value. I've tried endless ideas, none of which are working

Re: Double erroneous requests in POST with multipart/form-data

2003-07-16 Thread Mark Maunder
I'm running all scripts under Apache::Registry and using Apache::Request because I'm handling file uploads. Sorry, should have included that. I did test this: I modified the Apache::Registry script that was being posted to so that it didn't create an Apache::Registry request object, but simply

Re: How do you set vars via interactive startup?

2003-07-16 Thread Perrin Harkins
On Wed, 2003-07-16 at 17:39, Patrick Galbraith wrote: I'm trying to figure out how one would set vars via a startup.pl script or using PerlSections. Is there a reason you can't just put it in a global? The dir_config() stuff is really for when you want to config something specific to a

cookies

2003-07-16 Thread Dennis Stout
Okay, so technically this isn't really mod_perl speific... but the cookie is being set with mod_perl and it's a huge mod_perl program being affected by this:) I have a cookie, the domain is set to .stout.dyndns.org (with the leading .). I set the cookie just fine now (thanks to those helping me

Re: cookies

2003-07-16 Thread Mark Maunder
Forgot to include the list. -Forwarded Message- From: Mark Maunder [EMAIL PROTECTED] To: Dennis Stout [EMAIL PROTECTED] Subject: Re: cookies Date: 16 Jul 2003 14:19:27 -0700 Hi Dennis, One possibility: Check the -path option. It's supposed to set it to '/' by default if you

How to share subroutine

2003-07-16 Thread Matthew Wu
Hi: 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. Thanks. Matthew Wu School Loans Corp. 10780 Santa Monica Blvd, Ste 225 Los

Re: How do you set vars via interactive startup?

2003-07-16 Thread Patrick Galbraith
Yes, if I hardcode it, fine, but not via reading STDIN into a var, and then setting whatever to that var. On 16 Jul 2003, Perrin Harkins wrote: On Wed, 2003-07-16 at 17:39, Patrick Galbraith wrote: I'm trying to figure out how one would set vars via a startup.pl script or using

Re: cookies

2003-07-16 Thread Dennis Stout
One possibility: Check the -path option. It's supposed to set it to '/' by default if you dont specify it, but it doesn't. I discovered this about 20 minutes ago with a similar bug. So manually specify something like: my $cookie = Apache::Cookie-new($r, -name =

Re: [RFC] web-messaging application for mod_perl

2003-07-16 Thread James G Smith
Adi Fairbank [EMAIL PROTECTED] wrote: On, or in the near vicinity of Tue, 15 Jul 2003 01:47:13 -0500 Ok, I'm sold. Now I get the reason for not using such a generic name. In fact, I really like your suggestion Apache::App::Mercury. If you don't mind, I'll use that name! Do you mind? Glad I

pnotes and notes not working from Apache::Registry to handler

2003-07-16 Thread Mark Maunder
Hi, I'm trying to store data about a user who has authenticated in $r-pnotes so that a perl logging phase handler can stick the user_id in the db. I call $r-pnotes('keyname' = 'somevalue'); in an apache registry script, and then call $r-pnotes('keyname') in the logging handler later on during the

Re: pnotes and notes not working from Apache::Registry to handler

2003-07-16 Thread Mark Maunder
Found this piece of info in the archives. I'm also running 1.27. Is this a known bug? http://groups.yahoo.com/group/modperl/message/45472 *snip* Subject: notes/pnotes broke between 1.25=1.27 So I got the advisory about the Apache servers having a security hole, so I decided to upgrade some

Problem configuring and making mod_perl

2003-07-16 Thread Richard Kurth
I am trying to compile mod_perl-1.28 with apache_1.3.27,openssl-0.9.7b and mod_ssl-2.8.12-1.3.27. When I run configure with the following and then do a make I get all these parse error can anybody tell me way I get this. THIS IS WHAT I AM RUNNING TO CONFIGURE perl Makefile.PL USE_APACI=1

Re: Problem configuring and making mod_perl

2003-07-16 Thread C. Jon Larsen
I hit the same error trying to build on a rh9.0 workstation. This solved my problem: CPPFLAGS=-I/usr/kerberos/include export CPPFLAGS Than unpack, config, make, etc ... On Wed, 16 Jul 2003, Richard Kurth wrote: I am trying to compile mod_perl-1.28 with apache_1.3.27,openssl-0.9.7b and

Re: Problem configuring and making mod_perl

2003-07-16 Thread Richard Kurth
Thanks for the suggestion but it did not work I still get the same error. Also this is a rh9.0 Server I hit the same error trying to build on a rh9.0 workstation. This solved my problem: CPPFLAGS=-I/usr/kerberos/include export CPPFLAGS Than unpack, config, make, etc ... On Wed, 16 Jul 2003,

Re: cookies

2003-07-16 Thread Dennis Stout
Well I'll be damned. My computer at home does the cookie thing perfectly well. My workstation at work does not do cookies. So my mod_perl creation is working fine as far as getting the cookies. rant YAY FOR WIN2K DOMAINS AND ADMIN WHO USE HELP DESK TECHS TO PROGRAM TICKETING SYSTEMS FOR DSL,

Re: cookies

2003-07-16 Thread Dennis Stout
*pounds head against brick wall* why must it work against me??? A cookie for anyone who solves this. sub handler { my $r = shift; my $result = undef; eval { $result = inner_handler($r) }; return $result unless $@; warn Uncaught Exception: $@;

Re: cookies

2003-07-16 Thread Mark Maunder
From perldoc CGI::Cookie # fetch existing cookies %cookies = fetch CGI::Cookie; $id = $cookies{'ID'}-value; #You're doing $cookies-value; ID == the name that you used when you set the cookie. On Wed, 2003-07-16 at 21:27, Dennis Stout wrote: *pounds head against brick wall* why must it work

Re: cookies

2003-07-16 Thread Dennis Stout
w00t! ttms_user: mp2Ti5p1JkhCObm9LKBFGsiAltop8aAWwl6vLLDr/3rtb09MRzZrEg== Here, your $cookie = Apache::Cookie-new($state-{r}, -name = 'Mark', -value = 'AWESOME!!!', -expires= time + 86400*30*7,

Re: cookies

2003-07-16 Thread Mark Maunder
Cool dude. Now if you know why $r-pnotes() isn't working under apache/modperl .27 you'll make my day! :wq On Wed, 2003-07-16 at 21:42, Dennis Stout wrote: w00t! ttms_user: mp2Ti5p1JkhCObm9LKBFGsiAltop8aAWwl6vLLDr/3rtb09MRzZrEg== Here, your $cookie =

Re: cookies

2003-07-16 Thread Dennis Stout
Cool dude. Now if you know why $r-pnotes() isn't working under apache/modperl .27 you'll make my day! Got some source code to show me what you're doing with it? Otherwise I'll just have to cut and paste the mod_perl API book to you ;) hehehehe. Dennis

Re: cookies

2003-07-16 Thread Dennis Stout
WOOO! I went to the ttms site, logged in, AND IT AUTHNTICATED ME AND GAVE ME PAGES!! :D Aight, drink of choice is on me tonight :D I can't beleive it! 3 weeks on this bloody thing and I got it to finally Authenticat me =D Course, I had to disable things in

Re: pnotes and notes not working from Apache::Registry to handler

2003-07-16 Thread Dennis Stout
I'm trying to store data about a user who has authenticated in $r-pnotes so that a perl logging phase handler can stick the user_id in the db. I call $r-pnotes('keyname' = 'somevalue'); in an apache registry script, and then call $r-pnotes('keyname') in the logging handler later on during the