Re: Upload/POST fails repeatedly with mod_perl 1.29 and 1.27

2004-11-17 Thread Raphael Ferguson
Thank you much for the quick response. I tried setting the TMPDIR in startup.pl and in httpd.conf to no avail. The "[libapreq] file upload forbidden" error message is almost certainly coming from ibapreq's apache_request.c, line 591: if (req->disable_uploads) { ap_log_rerror(RE

Re: PerlRequire script starts two times - how to avoid this

2004-11-17 Thread Stas Bekman
Marcin Kosewski wrote: Hi Gurus, I'm using Apache 1.3.33 with mod_perl 1.29. In Apache httpd.conf file I'm loading external perl directives using: PerlRequire startup.pl I've checked, that during apache startup 'startup.pl' runs two times. And I want, that this script runs only once (because I'

PerlRequire script starts two times - how to avoid this

2004-11-17 Thread Marcin Kosewski
Hi Gurus, I'm using Apache 1.3.33 with mod_perl 1.29. In Apache httpd.conf file I'm loading external perl directives using: PerlRequire startup.pl I've checked, that during apache startup 'startup.pl' runs two times. And I want, that this script runs only once (because I'm allocating there sh

Re: Internal Server Error on perl.apache.org

2004-11-17 Thread Stas Bekman
Arshavir Grigorian wrote: Hello list, I just tried searching for 'path_info' in the 2.0 docs and got an internal server error(500). http://perl.apache.org/search/swish.cgi?query=path_info&sbm=SecI&submit=search The /x1/log/www/error_log says: [Wed Nov 17 15:01:50 2004] [error] [client 65.92.240.

Internal Server Error on perl.apache.org

2004-11-17 Thread Arshavir Grigorian
Hello list, I just tried searching for 'path_info' in the 2.0 docs and got an internal server error(500). http://perl.apache.org/search/swish.cgi?query=path_info&sbm=SecI&submit=search Hope it's easy to fix. Best, Arshavir -- Report problems: http://perl.apache.org/bugs/ Mail list info: http://pe

Re: read not sysread?

2004-11-17 Thread Stas Bekman
Sean T Allen wrote: using 1.99_17... moved code to a new machine that i built as compared to a pre-existing machine running... 1.99_07-dev i have a stripped down CGI reading routine... eval ( "sysread( \STDIN, \$input, $ENV{ 'CONTENT_LENGTH' } )" ); CGI.pm uses read, not sysread. Where did

Re: multiple instances of one web application

2004-11-17 Thread perrin
> thanks for the info, might be a bit much afford. Not at all -- you can run them all on a single machine. There should be no extra cost to this approach except a bit more setup work. > do you know any way to put some placeholders inside the perl code that > will be replaced before compilation?

Re: Advice needed on custom webapp framework

2004-11-17 Thread Jonathan Vanasco
I'm pretty damn sure you did get that right! That would do EXACTLY what i want it to do! I'm gonna play around with that approach when i get home tonight. Thanks! On Nov 17, 2004, at 2:26 PM, Tom Schindl wrote: What you really need here when talking about Pattern-Programming is a "Factory-Class

Re: Advice needed on custom webapp framework

2004-11-17 Thread Tom Schindl
Jonathan Vanasco wrote: package Website1; my $DB = new Website1::DB(); # make a new ref for the website sub handler { my $r = shift; my $user = new Website::User( \$r, \$DB ); my $page = new Website::Page( \$user , \$DB ); my $html = $page->

Re: Advice needed on custom webapp framework

2004-11-17 Thread Jonathan Vanasco
Because i'm an idiot and didn't realize that I was doing that! I'm just used to passing refs everywhere. to get into the whole 'No More passing large vars around' thing, i just stopped passing everything but a ref Silly me! On Nov 17, 2004, at 1:25 PM, Tom Schindl wrote: I don't answer your que

Re: Advice needed on custom webapp framework

2004-11-17 Thread Tom Schindl
jonathan vanasco wrote: I built for mod_perl1 a customer webapp framework It functions as 2 perl modules/package sets /lib/WebAppFramework /lib/Website For each website/webapp, i make a new /lib/Website that subclasses the WebAppFramework (which handles users, email, webpage generation, etc -- an

read not sysread?

2004-11-17 Thread Sean T Allen
using 1.99_17... moved code to a new machine that i built as compared to a pre-existing machine running... 1.99_07-dev i have a stripped down CGI reading routine... eval ( "sysread( \STDIN, \$input, $ENV{ 'CONTENT_LENGTH' } )" ); doesnt read anything but read( STDIN, $input, $EN

Re: Advice needed on custom webapp framework

2004-11-17 Thread Jonathan Vanasco
Thanks! Right now, I should have been more clear, though -- I'm am kinda doing a bit of each approach you mentioned -- but i am in need of a little more help. I think what i want is more of your second approach right now... Let me elaborate for a moment WebAppFramework::DB.pm Base C

Re: Advice needed on custom webapp framework

2004-11-17 Thread Michael Schout
On Wed, 17 Nov 2004, jonathan vanasco wrote: > Ideally, I would have the packages in Website and WebAppFramework > lookup the right DB for the Website There are many ways to solve this problem. I'll show you 2 ways. I'll focus just on the database part to keep this as short as possible, but th

Advice needed on custom webapp framework

2004-11-17 Thread jonathan vanasco
I built for mod_perl1 a customer webapp framework It functions as 2 perl modules/package sets /lib/WebAppFramework /lib/Website For each website/webapp, i make a new /lib/Website that subclasses the WebAppFramework (which handles users, email, webpage generation, etc -- and makes heavy use of cpa

Re: Apache::Directive::conf tree error with mod_perl 1.99x and Apache 2

2004-11-17 Thread Beberle
--- Tom Schindl <[EMAIL PROTECTED]> wrote: > Beberle wrote: > > >Ok, I've read the documentation and searched the > >archives for a similar problem but no luck. If > anyone > >has any suggestions, I'd be most grateful. > > > >Here's my situation: > > > >I've got Apache 2.0.46 with mod_perl 1.99

Re: multiple instances of one web application

2004-11-17 Thread Harald Meier
Perrin wrote: I would echo what Stas said about rethinking your need for this. It's not something that is easy to support in Perl. However, if you really need to do it without changing your application code or using virtualhosts, you would probably have to do it by running multiple mod_perl backe

Re: multiple instances of one web application

2004-11-17 Thread Harald Meier
Gernot Homma wrote: i think you can use instances instead of classes, under mod_perl 1 i have the following setup (the code ist just to show how it should work ;.) under mod_perl, i think you just have to change the name of the directives(PerlHandler => PerlResponseHandler), but i'm not shure, i

Re: Apache::Directive::conf tree error with mod_perl 1.99x and Apache 2

2004-11-17 Thread Tom Schindl
Beberle wrote: Ok, I've read the documentation and searched the archives for a similar problem but no luck. If anyone has any suggestions, I'd be most grateful. Here's my situation: I've got Apache 2.0.46 with mod_perl 1.99_09 (called 2.0-tobe in the documentation) both of which were installed by

Re: Segfaults with mod_php + mod_perl + mysql + mysqli

2004-11-17 Thread Tom Schindl
Sönke Ruempler wrote: Stas Bekman wrote on Tuesday, November 16, 2004 10:03 PM: Right. It's documented here: http://perl.apache.org/docs/1.0/guide/troubleshooting.html#_ex it_signal_Segmentation_fault__11___with_mysql I use PHP 5.0. There is no bundled mysql library with PHP anymore. I use

Apache::Directive::conf tree error with mod_perl 1.99x and Apache 2

2004-11-17 Thread Beberle
Ok, I've read the documentation and searched the archives for a similar problem but no luck. If anyone has any suggestions, I'd be most grateful. Here's my situation: I've got Apache 2.0.46 with mod_perl 1.99_09 (called 2.0-tobe in the documentation) both of which were installed by the Red Hat

RE: Segfaults with mod_php + mod_perl + mysql + mysqli

2004-11-17 Thread Sönke Ruempler
Stas Bekman wrote on Tuesday, November 16, 2004 10:03 PM: > Right. It's documented here: > http://perl.apache.org/docs/1.0/guide/troubleshooting.html#_ex > it_signal_Segmentation_fault__11___with_mysql I use PHP 5.0. There is no bundled mysql library with PHP anymore. I use MySQL 4.1.7. But it se