Re: Problem configuring and making mod_perl

2003-07-18 Thread Stas Bekman
Richard Kurth wrote: Thanks for the suggestion but it did not work I still get the same error. Also this is a rh9.0 Server it's possible that you don't have the kerberos package installed. What: % locate krb5.h gives? If you get nada, install the package and try again. I hit the same error tr

Re: mod_per2/PerlInc in Virtualhost

2003-07-18 Thread Stas Bekman
Thomas Schindl wrote: Hi, Is it possible to use different PerlINC-Paths in different virtual hosts in mod_perl2. In mod_perl1 I've used Apache::PerlVINC what do I use in mod_perl2? It's possible with threaded mpm: http://perl.apache.org/docs/2.0/user/config/config.html#toc_C_Parent_

Re: clones and parents

2003-07-18 Thread Stas Bekman
Marc M. Adkins wrote: No wonder this seemed familiar. I wrote pretty much the same memo six weeks ago. D'oh! I've been spending too much time at the keyboard... I thought I had dejavu ;) So is PerlOptions +Parent working? Whenever I enable it I get a segfault on W2K / Ap2.0.46 / mp1.99.10dev.

Re: Problem configuring and making mod_perl

2003-07-18 Thread Richard Kurth
I get this when I run locate krb5.h /usr/kerberos/include/gssapi/gssapi_krb5.h /usr/kerberos/include/krb5.h So I would say it is there Richard Kurth wrote: Thanks for the suggestion but it did not work I still get the same error. Also this is a rh9.0 Server it's possible that you don't have the

Re: modperl2 Apache::HTTP_FORBIDDEN... [long post]

2003-07-18 Thread Stas Bekman
Shannon Eric Peevey wrote: use constant MP2 => ($mod_perl::VERSION >= 1.99); # test for the version of mod_perl, and use the appropriate libraries BEGIN { if (MP2) { require Apache::Const; require Apache::Access; require Apache::Connection;

Re: modperl2 Apache::HTTP_FORBIDDEN and Apache::HTTP_INTERNAL_SERVER_ERRORimplemented?

2003-07-18 Thread Stas Bekman
Shannon Eric Peevey wrote: Stas Bekman wrote: speeves wrote: Hi! Just wondering if Apache::HTTP_FORBIDDEN and Apache::HTTP_INTERNAL_SERVER_ERROR have been implemented? I have been trying to port Apache::AuthenNTLM, and keep getting: [Tue Jul 15 16:46:08 2003] [error] failed to resolve handle

RE: clones and parents

2003-07-18 Thread Marc M. Adkins
> > So is PerlOptions +Parent working? Whenever I enable it I get > a segfault on > > W2K / Ap2.0.46 / mp1.99.10dev. > > have you submitted a bug report? > http://perl.apache.org/docs/2.0/user/help/help.html#Reporting_Problems I never know whether to submit a bug report or not. Often these thing

Re: clones and parents

2003-07-18 Thread Stas Bekman
Marc M. Adkins wrote: So is PerlOptions +Parent working? Whenever I enable it I get a segfault on W2K / Ap2.0.46 / mp1.99.10dev. have you submitted a bug report? http://perl.apache.org/docs/2.0/user/help/help.html#Reporting_Problems I never know whether to submit a bug report or not. Often the

Re: Problem configuring and making mod_perl

2003-07-18 Thread Stas Bekman
Richard Kurth wrote: I get this when I run locate krb5.h /usr/kerberos/include/gssapi/gssapi_krb5.h /usr/kerberos/include/krb5.h So I would say it is there Indeed. Next check the Makefile file and see why the path /usr/kerberos/include is not in includes list. e.g. you could manually fix it to ad

CGI files in apache

2003-07-18 Thread AROSO Jose Antonio
Hi... When I run a cgi file codified in perl in apache server the server says that have a 500 internal server error. What is it and how can resolve? thanks

Re: CGI files in apache

2003-07-18 Thread Stas Bekman
AROSO Jose Antonio wrote: Hi... When I run a cgi file codified in perl in apache server the server says that have a 500 internal server error. What is it and how can resolve? http://perl.apache.org/docs/1.0/guide/debug.html#Curing_The__Internal_Server_Error_ __

RE: CGI files in apache

2003-07-18 Thread csebe
Start by looking in Apache's error log to see what's reporting. HTH, Lian Sebe, M.Sc. Freelance Analyst-Programmer www.programEz.net > -Original Message- > From: AROSO Jose Antonio [mailto:[EMAIL PROTECTED] > Sent: Friday, July 18, 2003 12:36 PM > To: '[EMAIL PROTECTED]' > Subject: CGI

Need help, Global Hash corruption under mod_perl in perl 5.8.0 !?!

2003-07-18 Thread Влад Сафронов
Hi, I used Apache::ePerl ( http://www.ossp.org/pkg/tool/eperl/ ) for a long time (up to perl 5.6.1) until our admin install perl 5.8.0 and recompiled apache and mod_perl with it. After that global hash $Cache where all precompiled eperl scripts kept in bec

Re: mod_accel redirects

2003-07-18 Thread greg
Check UseCanonicalName in Apache config. What you describe is what happens when this is turned ON and Apache generates a URL that points back to itself. Try turning this off and see if it makes a difference. On Fri, 18 Jul 2003, Philip Mak wrote: > Given this server configuration (this is a front

Re: Problem configuring and making mod_perl

2003-07-18 Thread greg
Try adding a -I for /usr/kerberos/include. Since they are not in the /usr/include path that may be why it has problems. On Fri, 18 Jul 2003, Richard Kurth wrote: > I get this when I run locate krb5.h > /usr/kerberos/include/gssapi/gssapi_krb5.h > /usr/kerberos/include/krb5.h > > So I would say it

Re: does pnotes() work at all in 1.27?

2003-07-18 Thread Perrin Harkins
On Thu, 2003-07-17 at 16:51, Mark Maunder wrote: > > And then install those as a content and logging phase handler. If you > > have the time and the interest. I've tried this and the logging handler > > comes up with nothing in pnotes. I've also checked that it's not a sub > > request. Did you get

IPC Open

2003-07-18 Thread Cameron B. Prince
Hi, I have the following subroutine in a package that's called by an embperl page via mod_perl: sub MP3Check { my ($self,$params) = @_; use IPC::Open3; my ($pid,%values); $SIG{ALRM} = sub { my $kill = "kill -9 $pid"; system($kill); $values{'CHECK_PROBLEM'} = 1;

Loosing required parameters between request

2003-07-18 Thread Craig L McMillon
I'm using Mason with mod-perl. I seem to loose a required parameter "section_id" between request. This obviously causes a mason error. Does anyone have any idea of what could be causing that? = Digital Color Image Craig L. McMillon Work: 856.662.5532 Mobile: 908.720.6835 Home: 610.792.5911

IPC Open / IPC Run

2003-07-18 Thread Cameron B. Prince
I just realized, I meant to say IPC::Run below from my previous post. > I also read a post about IPC::Open... I looked at the synopsis and it looks rather complicated. > Is this definately a better way to go?

Re: IPC Open / IPC Run

2003-07-18 Thread Barrie Slaymaker
On Fri, Jul 18, 2003 at 12:30:22PM -0500, Cameron B. Prince wrote: > I just realized, I meant to say IPC::Run below from my previous post. > > > I also read a post about IPC::Open... I looked at the synopsis and it > looks rather complicated. Only if you're trying to do something complicated, lik

Getting list of all cookies available?

2003-07-18 Thread greg
I'm using Apache 1.3.27, mod_perl 1.28, and Apache::ASP 2.53 (+ mod_ssl, all on cygwin). I know how I can get and set cookies in Apache:ASP, this is no problem. What I am trying to figure out is how to get a list of cookies that are available. Is there a way to get the list of available cookies f

Re: IPC Open

2003-07-18 Thread Stas Bekman
I'm getting the error message: [16307]ERR: 24: Error in Perl code: Can't locate object method "OPEN" via package "Apache::RequestRec" at /usr/lib/perl5/5.8.0/IPC/Open3.pm line 136. perl -MApache2 -MModPerl::MethodLookup -e print_method OPEN to use method 'OPEN' add: use Apache::RequestIO

IPC::Run

2003-07-18 Thread Cameron B. Prince
Hi Barrie, I dug out an old note from you and started trying IPC::Run. Here's what I have so far: sub MP3Check { my ($self,$params) = @_; use IPC::Run qw( run timeout ); my @command = ( $self->{MP3Check}, qq! -v "$params->{file}"! ); run [EMAIL PROTECTED], \undef, \my

Re: IPC::Run

2003-07-18 Thread Barrie Slaymaker
On Fri, Jul 18, 2003 at 01:18:12PM -0500, Cameron B. Prince wrote: > Hi Barrie, > > I dug out an old note from you and started trying IPC::Run. Here's what I > have so far: > > sub MP3Check { >my ($self,$params) = @_; >use IPC::Run qw( run timeout ); > >my @command = ( > $self-

Re: does pnotes() work at all in 1.27?

2003-07-18 Thread Mark Maunder
Hi Perrin, thanks for the reply. No progress yet. I just tested pnotes in the same handler and it works. Tested it again by setting a value in the content handler and trying to retreive it it my logging handler and no luck. #The line in my content handler is: $sess->get_r()->pnotes('marktest', 'a

RE: clones and parents

2003-07-18 Thread Marc M. Adkins
> > I never know whether to submit a bug report or not. Often > these things turn > > out to be known issues or I find out it was my own bug at some > later time... > > If you get a segfault, chances are that something is broken, since the sw > should gracefully handle cases when someone does some

authentication realms in http and https

2003-07-18 Thread Jason Fong
We recently upgraded our webserver from Apache 1.3.6 / modperl 1.19 to Apache 1.3.27 / modperl 1.27 We use a .htaccess file in a directory to have a modperl script do authentication for directory access (for downloading files, etc.). It also redirects the user from http to https if he does not c

Re: Need help, Global Hash corruption under mod_perl in perl 5.8.0!?!

2003-07-18 Thread Perrin Harkins
On Fri, 2003-07-18 at 09:03, Влад Сафронов wrote: > I used Apache::ePerl ( http://www.ossp.org/pkg/tool/eperl/ > ) for a long time (up to perl > 5.6.1) > until our admin install perl 5.8.0 and recompiled apache and mod_perl > with it. > > After that global ha

templating system opinions

2003-07-18 Thread Patrick Galbraith
Hi there, Just wondering what the best templating system is to use and/or learn. I've briefly read up on the pros and cons of each, and am just wondering which one is the most widely _used_ and best to learn if you're wanting to know something that there are jobs for. thanks ;) -- Patrick G

Re: templating system opinions

2003-07-18 Thread Ken Y. Clark
On Fri, 18 Jul 2003, Patrick Galbraith wrote: > Date: Fri, 18 Jul 2003 14:25:32 -0700 (PDT) > From: Patrick Galbraith <[EMAIL PROTECTED]> > To: [EMAIL PROTECTED] > Subject: templating system opinions > > Hi there, > > Just wondering what the best templating system is to use and/or learn. > > I've

Re: templating system opinions

2003-07-18 Thread Chris Devers
On Fri, 18 Jul 2003, Patrick Galbraith wrote: > Just wondering what the best templating system is to use and/or learn. > > I've briefly read up on the pros and cons of each, and am just wondering > which one is the most widely _used_ and best to learn if you're wanting to > know something that the

Re: templating system opinions

2003-07-18 Thread Mark Maunder
Hey Peter, Template Toolkit rocks! (Sorry about the overt glee, but I am just finishing a project where it has been very good to me) Besides the complete seperation that it gives you between presentation and back-end coding, it's super fast. I benchmarked a 2GHz server with 256 Megs of RAM using a

DDD and mod_perl handler

2003-07-18 Thread Pablo Velasquez
Hello, I've been searching for guidance on using DDD with mod_perl. (DDD is fantastic) I use DDD to debug my perl scripts like so: ddd --perl myperlscript.pl (quite simple :) However, I haven't been able to do the same with a mod_perl handler. Perl 5.005_03 Apache/1.3.24 (Unix) mod_perl/1.26

Re: templating system opinions - Mason recommendation

2003-07-18 Thread Chris Devers
Sorry to cc: this to the list, but I stand corrected and might as well mention that to the list :) On Fri, 18 Jul 2003, Dave Baker wrote: > Correction: Bricolage is written in Mason, I believe. That's what the > Bricolage authors say at http://bricolage.cc/ Hmm, so it does. I wonder where I got

Re: templating system opinions - Mason recommendation

2003-07-18 Thread Leon Brocard
Chris Devers sent the following bits through the ether: > It's a pretty clever approach; I'd like to see something like this done > with a Perl backend (I haven't really been keeping track of development, > for all I know there already is a Perl backend...). Read more: Your wish is my command. Wi

Re: templating system opinions

2003-07-18 Thread Patrick Galbraith
Thanks much, Yeah, I worked with TT when I was on the Slash team ;) On Fri, 18 Jul 2003, Chris Devers wrote: > On Fri, 18 Jul 2003, Patrick Galbraith wrote: > > > Just wondering what the best templating system is to use and/or learn. > > > > I've briefly read up on the pros and cons of each,

Re: templating system opinions

2003-07-18 Thread Patrick Galbraith
The one thing about TT was that I don't know if I really liked how it had a different syntax than perl. Plus, as far as performance, we did some specific coding to make it faster for Slash so our templates would be in the DB. On 18 Jul 2003, Mark Maunder wrote: > Hey Peter, > > Template Toolk

Re: templating system opinions - Mason recommendation

2003-07-18 Thread Perrin Harkins
On Fri, 2003-07-18 at 17:23, Chris Devers wrote: > > Correction: Bricolage is written in Mason, I believe. That's what the > > Bricolage authors say at http://bricolage.cc/ > > Hmm, so it does. I wonder where I got the idea that it was H::T based... The data entry UI is in Mason, but it can optio

Re: templating system opinions

2003-07-18 Thread Chris Devers
On Fri, 18 Jul 2003, Patrick Galbraith wrote: > Yeah, I worked with TT when I was on the Slash team ;) Then why are you asking a question like this?? :) -- Chris Devers [EMAIL PROTECTED] http://devers.homeip.net:8080/ Turing machine, n. [After Alan M. Turing (1912-1954), British mathematici

Re: DDD and mod_perl handler

2003-07-18 Thread Perrin Harkins
On Fri, 2003-07-18 at 17:13, Pablo Velasquez wrote: > 5. This is all good, since now the perl debugger is running my program, just > like when I use DDD to run a regular perl script. However, the question is, > how can I use DDD to run on top of this? You need to change DDD's behavior so that it

Re: does pnotes() work at all in 1.27?

2003-07-18 Thread James Hartling
I use pnotes all over the place in 1.27, and haven't noticed any problems. I just stepped through some code and everything looks good between the Init phase and the content handling phase. I'm using Apache::Request->instance everywhere so I'm dealing with the same request object, but even if you'

Re: [mp2 Patch] BUG with mod_deflate and $|=1 (20014:Error string not specified)

2003-07-18 Thread Slava Bizyayev
Hi guys, In my understanding _it is_ a problem of mod_deflate. It's a bit tricky to flush dynamically generated content over HTTP/1.1: Core Apache marks the end of your document with empty chunk. When you flush an empty string in the middle of your document Apache has no way to serve your directio

RE: clones and parents (bug report)

2003-07-18 Thread Marc M. Adkins
-8<-- Start Bug Report 8<-- 1. Problem Description: # Problem: When I add PerlOptions +Parent I get a segfault. # # Breaks with: # Windows 2000 SP2 # Apache 2.0.46 # ActiveState Perl 5.8.0 (build 804) # mod_perl 1.99.10dev(

Re: templating system opinions

2003-07-18 Thread Patrick Galbraith
TT was ok, but it did use a bunch of ram ;) I gotta have something to counter PHP people with too ;) On Fri, 18 Jul 2003, Chris Devers wrote: > On Fri, 18 Jul 2003, Patrick Galbraith wrote: > > > Yeah, I worked with TT when I was on the Slash team ;) > > Then why are you asking a question lik

Re: templating system opinions

2003-07-18 Thread Dave Rolsky
On Fri, 18 Jul 2003, Patrick Galbraith wrote: > TT was ok, but it did use a bunch of ram ;) So does Mason. HTML::Template is no doubt much leaner, but it's also lean on features. Nothing wrong with that if it suits your needs, though. Most Perl templating systems are probably slower and/or bul

Re: does pnotes() work at all in 1.27?

2003-07-18 Thread Dennis Stout
> No progress yet. I just tested pnotes in the same handler and it works. > Tested it again by setting a value in the content handler and trying to > retreive it it my logging handler and no luck. It looks like I start work on finding out about your problem tonight instead of last night. Funny st

RE: clones and parents (bug report)

2003-07-18 Thread Randy Kobes
On Fri, 18 Jul 2003, Marc M. Adkins wrote: > > -8<-- Start Bug Report 8<-- > 1. Problem Description: > > # Problem: When I add PerlOptions +Parent I get a segfault. > # > # Breaks with: > # Windows 2000 SP2 > # Apache 2.0.46 > # Active

Re: templating system opinions - Mason recommendation

2003-07-18 Thread Stas Bekman
Chris Devers wrote: [...] A little bird tells me that TT is about to get an O'Reilly book as well, though it's not on their upcoming titles page (yet). While Andy is working on it, you can read a TT for mod_perl chapter in "Practical mod_perl", written by Andy as well! (http://modperlbook.org) __

Re: clones and parents (bug report)

2003-07-18 Thread Stas Bekman
Randy Kobes wrote: [..] Just to verify, I also get this with ActivePerl 806, Apache/2.0.47, and the current mod_perl cvs version. Here's some partial debug information: PERL58! 28083490() PERL58! 280648b5() and what are these two perl cal

Re: does pnotes() work at all in 1.27?

2003-07-18 Thread Stas Bekman
James Hartling wrote: I use pnotes all over the place in 1.27, and haven't noticed any problems. I just stepped through some code and everything looks good between the Init phase and the content handling phase. I'm using Apache::Request->instance everywhere so I'm dealing with the same request obje