Re: handlers

2006-08-01 Thread Vladimir S. Tikhonjuk
John ORourke пишет: > Vladimir S. Tikhonjuk wrote: > >> >> O.K. Thanks for answer :) >> I want to write rather big project. How I have to construct it: I mean, >> should I make a lot of handlers, like, /debitor, /debitor/documents, >> /debitor/documents/contracts Or, create *.pl scripts. Or m

Re: handlers

2006-08-01 Thread Frank Maas
On Tue, Aug 01, 2006 at 07:33:51AM +0100, John ORourke wrote: > > You could even do something really clever and make it map URI onto > module - eg. so /debitor/contract/create calls > Debitor::Contract->create(), but that wouldn't be very secure! > Why would that be not very secure? Could you g

Re: handlers

2006-08-01 Thread John ORourke
Frank Maas wrote: On Tue, Aug 01, 2006 at 07:33:51AM +0100, John ORourke wrote: You could even do something really clever and make it map URI onto module - eg. so /debitor/contract/create calls Debitor::Contract->create(), but that wouldn't be very secure! Why would that be not very

Re: handlers

2006-08-01 Thread John ORourke
Vladimir S. Tikhonjuk wrote: John ORourke пишет: Vladimir S. Tikhonjuk wrote: O.K. Thanks for answer :) I want to write rather big project. How I have to construct it: I mean, should I make a lot of handlers, like, /debitor, /debitor/documents, /debitor/documents/contracts Or, c

RE: handlers

2006-08-01 Thread Frank Maas
> Frank Maas wrote: > >> On Tue, Aug 01, 2006 at 07:33:51AM +0100, John ORourke wrote: >> >> >>> You could even do something really clever and make it map URI onto >>> module - eg. so /debitor/contract/create calls >>> Debitor::Contract->create(), but that wouldn't be very secure! > > As descri

Apache::DBI->connect_on_init

2006-08-01 Thread Vladimir S. Tikhonjuk
Hi all! There are some problem with subj :) I made Apache-DBI-startup.pl script: # BEGIN Apache-DBI-startup.pl Apache::DBI->connect_on_init( 'dbi:Pg:dbname=database;host=database', 'user', 'password', { PrintError => 1, RaiseError => 1, AutoCommit => 0 } ); 1; # END Apac

Re: Fwd: Install and error Can't locate loadable object for module Apache::Constants

2006-08-01 Thread Davood Firoozian
Thanks a lot, Now everything looks good, but Apache configuration,I have to install this service on a domain and on a port like 2000 (not 80) something like http://foo.bar:looand I have to dispatch calls to a module in /var/www my configuration does not work fine please help me if you can this is m

Unsuscribe....

2006-08-01 Thread lalitanand dandge
Hi,I want to unsuscribe the mailing list.thanks.lalit-- "Talk is cheap. Show me the code. Think Open, use Open Source!"Visit & Register at http://www.ossrc.org.in

Broken connection filters (was: Transforming request to HTTP/1.1)

2006-08-01 Thread Radoslaw Zielinski
Radoslaw Zielinski <[EMAIL PROTECTED]> [31-07-2006 18:20]: [...] > But... this doesn't quite work. $r->protocol for these requests > contains "HTTP/0.9". The difference is: HTTP headers are neither [...] > I know I could get it done using filters, but writing them is a pain... Well, I wrote a co

Re: Fwd: Install and error Can't locate loadable object for module Apache::Constants

2006-08-01 Thread Davood Firoozian
again with this configurationServerName ozinoserver.ozino.comNameVirtualHost  soorenaserver.ozino.com:2000soorenaserver.ozino.com:2000>        SetHandler perl-script    PerlResponseHandler Apache2::SOAP    PerlSetVar dispatch_to "/var/www/soorenaserver.zoino.

Re: how to use mod_perl sections with mod_jk?

2006-08-01 Thread Robert Nicholson
I found a small discussion on $PerlConfig but where is the documentation for this? For instance I don't know how it interacts with other Perl section syntax within the same Perl section. But are there limitations with using regular Perl section syntax with other modules directives or shou

Re: urgent help needed

2006-08-01 Thread Tom Schindl
It seems you are using old documentations: philge philip schrieb: > Following are the scripts I tried to run.For the first script I got the > result and it shows mod_perl is installed and running but in the second > script am unable to load the apache module.I have also attached the part of > th

Re: handlers

2006-08-01 Thread Michael Peters
John ORourke wrote: > You could even do something really clever and make it map URI onto > module - eg. so /debitor/contract/create calls > Debitor::Contract->create(), but that wouldn't be very secure! You could use something like Apache::Dispatch to achieve this or CGI::Application::Dispatch

Q: Don't filter requests from server side includes

2006-08-01 Thread Reif Peter
How do I configure my server, so that it does not I have ssi enabled on my web server. I also have a content filter in mod_perl: PerlOutputFilterHandler Apache::MyFilter How do I configure the server that it does not send requests made by

Re: urgent help needed

2006-08-01 Thread Tom Schindl
That's completely easy you simple load Apache::DBI when the server starts see the Apache::DBI docu. The rest of your code stays as is. http://search.cpan.org/dist/Apache-DBI-1.01/lib/Apache/DBI.pm Tom philge philip schrieb: > am very new to mod perl, actually we were just using use DBI modules a

Re: Fwd: Install and error Can't locate loadable object for module Apache::Constants

2006-08-01 Thread Randy Kobes
On Tue, 1 Aug 2006, Davood Firoozian wrote: again with this configuration ServerName ozinoserver.ozino.com NameVirtualHost soorenaserver.ozino.com:2000 SetHandler perl-script PerlResponseHandler Apache2::SOAP PerlSetVar dispatch_to "/var/www/soo

mod perl Apache2::SOAP Segmentation fault

2006-08-01 Thread Davood Firoozian
Hello,I'm tring to config a Apache2::SOAP Module over a debian box:apache2apache2-commonapache2-mpm-prefork or apache2-mpm-worker or apache2-mpm-perchild (all tested)libapache2-mod-perl2 -- Kindly RegardsDavood FiroozianProud DeveloperOzino Group http://www.ozino.com

Re: handlers [OT]

2006-08-01 Thread John ORourke
Michael Peters wrote: John ORourke wrote: You could even do something really clever and make it map URI onto module - eg. so /debitor/contract/create calls Debitor::Contract->create(), but that wouldn't be very secure! You could use something like Apache::Dispatch to achieve this or

Re: Fwd: Install and error Can't locate loadable object for module Apache::Constants

2006-08-01 Thread Davood Firoozian
No,   CPAN.pm: Going to build R/RK/RKOBES/Apache2-SOAP-0.71.tar.gz[   info] generating script t/TESTChecking if your kit is complete...Looks goodWriting Makefile for Apache2::SOAPCPAN: YAML loaded ok cp lib/SOAP/Transport/HTTP2.pm blib/lib/SOAP/Transport/HTTP2.pmcp lib/Apache2/SOAP.pm blib/lib/Apac

Re: mod perl Apache2::SOAP Segmentation fault

2006-08-01 Thread Kjetil Kjernsmo
On Tuesday 01 August 2006 16:43, Davood Firoozian wrote: > libapache2-mod-perl2 Debian stable unfortunately has a pre-release version of libapache2-mod-perl2. It is really, really not want you want to work with, so you may have to use backports. You'll find one at http://www.backports.org/ We'r

Re: handlers [OT]

2006-08-01 Thread Michael Peters
John ORourke wrote: > > Michael Peters wrote: > >> John ORourke wrote: >> >> >>> You could even do something really clever and make it map URI onto >>> module - eg. so /debitor/contract/create calls >>> Debitor::Contract->create(), but that wouldn't be very secure! >>> >> >> You could use

Re: urgent help needed

2006-08-01 Thread Tom Schindl
Ok. That's really basic database stuff: Normally every Select-statement you send to a database has 3 steps: 1. Prepare ClientLib sends Statement to Database which does different checks: - Syntax - do tables exists - ... 2. Execute ClientLib sends database information to execute the

Re: how to use mod_perl sections with mod_jk?

2006-08-01 Thread robert
Just exactly how does $PerlConfig work? Can I put my entire configuration in a here document using $PerlConfig? What are the limitations with $PerlConfig? Quoting Robert Nicholson <[EMAIL PROTECTED]>: > I found a small discussion on $PerlConfig but where is the > documentation for this? > >

Re: Q: Don't filter requests from server side includes

2006-08-01 Thread Torsten Foertsch
On Tuesday 01 August 2006 16:23, Reif Peter wrote: > How do I configure my server, so that it does not > > I have ssi enabled on my web server. I also have a content filter in > mod_perl: > > PerlOutputFilterHandler Apache::MyFilter > > How do I configure the server that it does not send requ

Re: Fwd: Install and error Can't locate loadable object for module Apache::Constants

2006-08-01 Thread Randy Kobes
On Tue, 1 Aug 2006, Davood Firoozian wrote: CPAN.pm: Going to build R/RK/RKOBES/Apache2-SOAP-0.71.tar.gz [ info] generating script t/TEST Checking if your kit is complete... Looks good Writing Makefile for Apache2::SOAP CPAN: YAML loaded ok cp lib/SOAP/Transport/HTTP2.pm blib/lib/SOAP/Transpo

Re: Apache::DBI->connect_on_init

2006-08-01 Thread Jonathan Vanasco
On Aug 1, 2006, at 6:25 AM, Vladimir S. Tikhonjuk wrote: Well, when I put "use Apache::DBI" into Apache-DBI-startup.pl script - no errors. Because you need to import Apache::DBI before you call any of its methods- same as any other perl script. But I don't see any connections to the Datab

Re: handlers [OT]

2006-08-01 Thread Jonathan Vanasco
On Aug 1, 2006, at 10:45 AM, John ORourke wrote: Excellent, I'd never heard of that. I only found out about Class::DBI yesterday too - next thing you'll be telling me there's a guide that picks out the most useful CPAN modules to stop people reinventing the wheel! Personally, I disliked

Re: how to use mod_perl sections with mod_jk?

2006-08-01 Thread Andreas J. Koenig
> On Tue, 1 Aug 2006 11:06:15 -0500, [EMAIL PROTECTED] said: > Just exactly how does $PerlConfig work? > Can I put my entire configuration in a here document using $PerlConfig? Yes. > What are the limitations with $PerlConfig? Try it out. The Apache::PerlSections manpage is a bit te

Re: how to use mod_perl sections with mod_jk?

2006-08-01 Thread robert
Well I did try to put my entire configuration and it was producing errors so now I'm liberally using Perl Sections and I'm going to try to use $PerlConfig to solve my mod_jk problem. if I've got three perl sections and I use perlconfig on the second one will everything "join" together correctly t

Re: how to use mod_perl sections with mod_jk?

2006-08-01 Thread Andreas J. Koenig
> On Tue, 1 Aug 2006 13:56:31 -0500, [EMAIL PROTECTED] said: > That resulted in errors at least in my case. You did read that I said you need SVN recent for apache2? -- andreas

Re: handlers

2006-08-01 Thread Enno
John ORourke wrote: I would strongly recommend using one of the well used frameworks. You can find more info and tutorials from the links on this page: http://perl.apache.org/products/app-server.html How come Catalyst is not on that page? Someone might as well add it. Enno

Confused about variable scope.

2006-08-01 Thread robert
So if my httpd.conf has multiple sections and I am doing something like this in the first one. for (`env`) { next unless /^X_/; /(.*)=(.*)/; $ENV{$1} = $2; push @PassEnv, $1; #print "$_\n"; } and I then do my $somevariable = $

Another question about variable scope.

2006-08-01 Thread robert
So my httpd.conf includes another file that also has Perl Sections it seems that the in a file included by httpd.conf then the condition isn't true Why is that? This message was sent using IMP, the Internet Messaging Program.

Re: Another question about variable scope.

2006-08-01 Thread robert
This was something else so please forget this particular question. Quoting [EMAIL PROTECTED]: > So my httpd.conf includes another file that also has Perl Sections > > it seems that the > so if httpd.conf loaded mod_perl and I try a > > > > in a file included by httpd.conf > > then the con

Re: Confused about variable scope.

2006-08-01 Thread Jonathan Vanasco
On Aug 1, 2006, at 4:38 PM, [EMAIL PROTECTED] wrote: for (`env`) { next unless /^X_/; /(.*)=(.*)/; $ENV{$1} = $2; push @PassEnv, $1; #print "$_\n"; } and I then do my $somevariable = $ENV{'X_KEY'}; my question is what exact

Re: Confused about variable scope.

2006-08-01 Thread robert
The approach I'm using is the suggested approach in the mod perl book. Basically setup the environment in order to pass information to apache so that it's available in httpd.conf and then in httpd.conf to use mod perl to interrogate %ENV. One problem is that mod_perl clears out %ENV so what you se

Re: how to use mod_perl sections with mod_jk?

2006-08-01 Thread Robert Nicholson
So can you or somebody else post a complete httpd.conf that makes use of $PerlConfig then? On Aug 1, 2006, at 2:24 PM, Andreas J. Koenig wrote: On Tue, 1 Aug 2006 13:56:31 -0500, [EMAIL PROTECTED] said: That resulted in errors at least in my case. You did read that I said you need SVN r

Re: Apache::DBI->connect_on_init

2006-08-01 Thread Vladimir S. Tikhonjuk
Well, I installed last versions of Apache ( 2.0.58 ), DBI ( 1.50 ), Apache-DBI ( 1.01 ) and mod_perl ( 2.0.2 ). Here is my stutup file: # Start of apache-dbi-startup.pl use Apache::DBI; use DBI; $Apache::DBI::DEBUG = 1; Apache::DBI->connect_on_init( "dbi:Pg:dbname=database;host=localhost",