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

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 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

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

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: 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

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_09 (called

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

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 the

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

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,

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 --

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

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 =

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: 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: 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

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_infosbm=SecIsubmit=search Hope it's easy to fix. Best, Arshavir -- Report problems: http://perl.apache.org/bugs/ Mail list info:

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

svn commit: rev 76184 - in perl/modperl/docs/trunk/src/docs: 1.0/guide 2.0/devel 2.0/user

2004-11-17 Thread gozer
Author: gozer Date: Wed Nov 17 15:08:40 2004 New Revision: 76184 Modified: perl/modperl/docs/trunk/src/docs/1.0/guide/config.cfg perl/modperl/docs/trunk/src/docs/2.0/devel/config.cfg perl/modperl/docs/trunk/src/docs/2.0/user/config.cfg Log: need to skip .svn directory in a few more