Re: multiple instances of one web application

2004-11-16 Thread perrin
> i would like to install the same application more than once on the same > web-server without changing the application code. 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

Re: Bug Report: seg fault with 1.29/Apache 1.3.33/RedHat 7.1

2004-11-16 Thread Tim Evans
On Tue, 16 Nov 2004 16:00:19 -0500, Stas Bekman wrote > so at the moment the solution is to recompile perl with > -DPERL_USE_SAFE_PUTENV I'll give this a try in the next day or so. > not sure about: > >* Replace all PHP calls to putenv() with apache_setenv(). I read this as an either red

Perl 5.8.6 RC1 is out

2004-11-16 Thread Stas Bekman
Make sure to test your mod_perl (and other perl) apps with this RC1 if you can. Original Message Subject: [use Perl] Stories for 2004-11-16 Date: Tue, 16 Nov 2004 02:03:03 + ++ | Perl 5.8.6 RC1 is out

Re: Bug Report: seg fault with 1.29/Apache 1.3.33/RedHat 7.1

2004-11-16 Thread Stas Bekman
Tim Evans wrote: On Tue, 16 Nov 2004 16:00:19 -0500, Stas Bekman wrote so at the moment the solution is to recompile perl with -DPERL_USE_SAFE_PUTENV I'll give this a try in the next day or so. not sure about: * Replace all PHP calls to putenv() with apache_setenv(). I read this as an eith

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

2004-11-16 Thread Stas Bekman
Raphael Ferguson wrote: [...] but after the request, the POSTed values never show up in the param() of CGI.pm or Apache::Request. GET requests names and values work, but not POST. These POSTed values are very small, but just in case I set MaxPostSize in httpd.conf to 10240. That didn't help either.

Re: multiple instances of one web application

2004-11-16 Thread Stas Bekman
Harald Meier wrote: dear group, i am developing a web application using apache 2.0 and mod_perl 2.0. the application is split into a couple of perl modules. i would like to install the same application more than once on the same web-server without changing the application code. so http://www.f

Re: Segfaults with mod_php + mod_perl + mysql + mysqli

2004-11-16 Thread Stas Bekman
jonathan vanasco wrote: [...] Because I upgraded my MySQL server to 4.1.7, I tried to compile my mod_php with mysql + mysqli support. After some problems with double "-lmysqlclient" in Makefile (found solution in bugs.php.net), the new mod_php compiled. But after testing it with Apache, The webs

Re: Bug Report: seg fault with 1.29/Apache 1.3.33/RedHat 7.1

2004-11-16 Thread Stas Bekman
Tim Evans wrote: Here's something more of interest (more than a year old, but the described symptons are spot-on: http://www.phpbuilder.com/lists/php-install/2003092/0018.php An excellent find, Tim. Funny but this exact problem is now discussed on p5p: http://www.gossamer-threads.com/lists/perl/

Re: Strange error calling a handler

2004-11-16 Thread Stas Bekman
Roman Medina-Heigl Hernandez wrote: On Mon, 15 Nov 2004 19:37:08 -0500, you wrote: try installing: use Carp; $SIG{__DIE__} = \&Carp::confess; Where? In my perl module? How could you get this to run if the module is not executed? (that's at least what I suspect). startup.pl or sections. Any diffe

Re: Problem building apache_1.3.33 and mod_perl-1.29 on Fedora Core 3

2004-11-16 Thread Stas Bekman
[please don't forget CC'ing the list] Chris Croome wrote: Hi On Mon 15-Nov-2004 at 04:16:03PM -0500, Stas Bekman wrote: Yup, just drop PREP_HTTPD=1. Please see: http://perl.apache.org/docs/1.0/guide/getwet.html#Building_mod_perl Thanks, sorry for asking a question that is answered in the install g

Re: Strange error calling a handler

2004-11-16 Thread Roman Medina-Heigl Hernandez
On Mon, 15 Nov 2004 19:37:08 -0500, you wrote: >try installing: > >use Carp; >$SIG{__DIE__} = \&Carp::confess; Where? In my perl module? How could you get this to run if the module is not executed? (that's at least what I suspect). >to see who called it. But most likely it's mod_perl that does t

push_handler with Apache::ModuleConfig

2004-11-16 Thread Xavier
Hello, for best look, I'd like to replace : PerlInitHandler My::Module with MyModule On I've done the XS file using Apache::ExtUtils, but I don't know how to write the "MyModule" sub. Is there any entry in the $cfg object to do it? sub MyModule { my($cfg,$parms,$arg)[EMAIL PROTECTED]; $

Re: New to ModPerl 2

2004-11-16 Thread Stef1
I've used the following for about 6 months without any problem for reading cookies: # just copied all Apache related "use", not all needed for the sample code below of course use Apache::Connection; use Apache::RequestRec (); use Apache::RequestIO (); use Apache::Request(); use APR::Brigade ();

AW: multiple instances of one web application

2004-11-16 Thread Gernot Homma
Hello Harald,   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,

Re: New to ModPerl 2

2004-11-16 Thread Jonathan Vanasco
I'm just wondering how people have handled cookie stuff before -- There seems to be a group that has encountered this error, and another group that has not -- if anyone is a member of the latter group and can share their approach to cookie/request handling (assuming its more than just substitut

Re: Send ASCII file to the browser

2004-11-16 Thread Michael Stepanov
Chris Gamache wrote: This might be solution: $r->content_type('text/plain'); Yes, you are right! I should be more careful! Thanks. --- Michael Stepanov <[EMAIL PROTECTED]> wrote: Hi guys, I have a small problem with sending simple ASCII file to the browser. Inside perl module I have a method wh

multiple instances of one web application

2004-11-16 Thread Harald Meier
dear group,i am developing a web application using apache 2.0 and mod_perl 2.0.the application is split into a couple of perl modules.i would like to install the same application more than once on the same web-server without changing the application code.so    http://www.foo.bar/myapp/instanc

Re: Segfaults with mod_php + mod_perl + mysql + mysqli

2004-11-16 Thread jonathan vanasco
On Nov 16, 2004, at 3:58 AM, Sönke Ruempler wrote: Hi, I asked the php-install and php-dev lists before - they didn't answer. I dunno if it's PHP and/or Perl related - so before I open a PHP Bug Report, maybe here someone has an idea: << Hi, Because I upgraded my MySQL server to 4.1.7, I tried to

Re: New to ModPerl 2

2004-11-16 Thread Joe Schaefer
jonathan vanasco <[EMAIL PROTECTED]> writes: > On Nov 15, 2004, at 11:18 AM, Joe Schaefer wrote: [...] >> Can you please show us the code which segfaults? [...] > sub handler > { > my $r = shift; > my $req= Apache::Request->new( $r , DISABLE_UPLOADS=>1); >

Upload/POST fails repeatedly with mod_perl 1.29 and 1.27

2004-11-16 Thread Raphael Ferguson
Hello all, when attempting to post a form with enctype="multipart/form-data" for file uploading, I receive the following errors in my error_log and the upload fails: [Tue Nov 16 00:20:49 2004] [error] [client xx.xx.xx.xx] [libapreq] file upload forbidden [Tue Nov 16 00:20:49 2004] [error] Apach

multiple instances of one web application

2004-11-16 Thread Harald Meier
dear group, i am developing a web application using apache 2.0 and mod_perl 2.0. the application is split into a couple of perl modules. i would like to install the same application more than once on the same web-server without changing the application code. so http://www.foo.bar/myapp/instanc

cookies in subrequest

2004-11-16 Thread Marc Lambrichs
I want to pass cookies into a subrequest. I use Apache::Cookie to fetch all my available cookies. Next, I have to put them into a HTTP::Cookies cookiejar so I can use add_cookie_header() to add my cookies to a LWP::UserAgent. Is there no easier way? Cheers, Marc -- Report problems: http://perl.

Re: Bug Report: seg fault with 1.29/Apache 1.3.33/RedHat 7.1

2004-11-16 Thread Tim Evans
Here's something more of interest (more than a year old, but the described symptons are spot-on: http://www.phpbuilder.com/lists/php-install/2003092/0018.php -- Tim Evans, TKEvans.com, Inc.|5 Chestnut Court [EMAIL PROTECTED] |Owings Mills, MD 21117 http://www.tkevans.c

Segfaults with mod_php + mod_perl + mysql + mysqli

2004-11-16 Thread Sönke Ruempler
Hi, I asked the php-install and php-dev lists before - they didn't answer. I dunno if it's PHP and/or Perl related - so before I open a PHP Bug Report, maybe here someone has an idea: << Hi, Because I upgraded my MySQL server to 4.1.7, I tried to compile my mod_php with mysql + mysqli support.