RE: *nix distro compatibility (was Re: survey)

2005-09-13 Thread David Christensen
Perrin Harkins wrote:>? > If you want to sell it, and don't want to spend all your time > debugging vendor oddities, I suggest you target popular versions of > RHEL and Fedora Core and build your own RPMs for perl, mod_perl, > apache, and your application. > People with ISPs where they can't instal

RE: *nix distro compatibility (was Re: survey)

2005-09-13 Thread David Christensen
Jeff wrote: > Debian provide a tested, stable environment, usually with added > security factor. We rolled our own once to solve the libc6 2.7 memory > bugs that hit Perl, to be bitten by intermittent and obscure > interaction bugs (MySQL/Perl mid-query dropping db connections etc). > We persevered

Re: How to use DB Connection Pool in mod_perl2 ?

2005-09-13 Thread Perrin Harkins
On Tue, 2005-09-13 at 11:58 -0700, Philippe M. Chiasson wrote: > I think it oughta be possible too with DBD::Proxy and DBD::ProxyServer DBD::Proxy is very slow. I would recommend avoiding it if you have any other choice available. > Unless you are stuck in a situation where you must control the

Re: [mp2] Directive changes the command nam

2005-09-13 Thread Philippe M. Chiasson
Philip M. Gollucci wrote: > Philippe M. Chiasson wrote: > >> Still unable to reproduce this on my end. > > This help any ? Nope, but I've nailed the source of the problem. Turns out that on some BSDs (like FreeBSD) changes to argv[0] do not affect the output of ps and such. Each process instead

Re: Installing apache2/mod_perl2 on mac os x 10.3.9

2005-09-13 Thread Philippe M. Chiasson
Philip M. Gollucci wrote: > Boysenberry Payne wrote: > >> Yes I have OS X 10.3.9 "Panther" >> >> So for the $PREFIX I would use whatever directory I normally install >> into correct? >> Like $PREFIX = '/usr' >> Right? > > You can yes. Unless you are planning on wiping the httpd/mod_perl that sh

Re: How to use DB Connection Pool in mod_perl2 ?

2005-09-13 Thread Philippe M. Chiasson
Perrin Harkins wrote: > On Mon, 2005-09-12 at 14:27 +0800, firingme wrote: > >>I want to know is there any package can give me a DB Connection Pool >>in a mod_perl application ? >> >>I've checked Apache::DBI, but it seems that it'll initialze a >>new connection when a new thread born. > > The onl

RE: Mime Type

2005-09-13 Thread Adam Prime x443
If you use the Content Disposition header you don't have to change the mime-type associated with that extention. adam -Original Message- From: Paul Harrison [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 13, 2005 12:40 PM To: 'Tom Schindl' Cc: modperl@perl.apache.org Subject: RE: Mim

FIXED -- [Fwd: Cannot build static mod_perl 2.0.1 / Apache 2.0.54 on Solaris 9]

2005-09-13 Thread Michael Fourneau
Hi, This has been fixed. Thank you very much to Cory Omand who pointed me to http://www.blastwave.org where Solaris builds for lots of applications are already available. Best regards, Michael Original Message Subject:Cannot build static mod_perl 2.0.1 / Apache 2.0

Re: Mime Type

2005-09-13 Thread Tom Schindl
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Paul Harrison wrote: > So what's the best mime-type then to use ? > > > Paul > http://philringnalda.com/blog/2001/12/force_the_browser_to_save_a_file.php - 8< $r->content_type("application/octet-stream"); -

RE: Mime Type

2005-09-13 Thread Paul Harrison
So what's the best mime-type then to use ? Paul -Original Message- From: Tom Schindl [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 13, 2005 11:32 AM To: Paul Harrison Cc: modperl@perl.apache.org Subject: Re: Mime Type -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 As already said

Re: Mime Type

2005-09-13 Thread Tom Schindl
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 As already said that's nothing specific to mod_perl but when using mod_perl you set the mime-type yourself using: $r->content_type('text/plain'); If you want the user to have get a popup you have to use a content-type the browser has no mapping for.

RE: Mime Type

2005-09-13 Thread Adam Prime x443
If you want that extention to be saved sometimes, but handled by the browser default others use the Content-Disposition header. ie: $r->header_out('Content-disposition' => 'attachment; filename=filename.mp3); adam -Original Message- From: Chris Croome [mailto:[EMAIL PROTECTED] Sent: Tue

Re: How to use DB Connection Pool in mod_perl2 ?

2005-09-13 Thread Perrin Harkins
On Mon, 2005-09-12 at 14:27 +0800, firingme wrote: > I want to know is there any package can give me a DB Connection Pool > in a mod_perl application ? > > I've checked Apache::DBI, but it seems that it'll initialze a > new connection when a new thread born. The only existing solution is sql-rela

Re: [mp2] Directive changes the command nam

2005-09-13 Thread pradeep kumar
I tried to print out the scfg in the modperl_config.c file. This prints 0 : httpd and 1 : -e;0. This is the only place where I see a "-e" being written. char **modperl_config_srv_argv_init(modperl_config_srv_t *scfg, int *argc){    modperl_config_srv_argv_push("-e;0");     *argc = scfg->argv->nelt

Re: Mime Type

2005-09-13 Thread Chris Croome
Hi I'm not quite sure how this relates to mod_perl... On Tue 13-Sep-2005 at 10:26:05AM -0500, Paul Harrison wrote: > Is there a way I can change the mine type in apache Yes: AddType application/octet-stream .mp3 http://httpd.apache.org/docs/2.0/mod/mod_mime.html#addtype I'd suggest just

Mime Type

2005-09-13 Thread Paul Harrison
Is there a way I can change the mine type in apache so when a user clicks on a mp3 link it would pop_up the save window instead of playing it ? Maybe trick the browser into thinking the mp3 file is a zip file so it will pop_up a save as window, so the user can save it to their desktop.  

RE: *nix distro compatibility (was Re: survey)

2005-09-13 Thread Perrin Harkins
On Sun, 2005-09-11 at 15:22 -0700, David Christensen wrote: > My goal is to be able to write Apache2/ mod_perl2/ MySQL applications and then > sell and/or give them away with the instructions "it works under *nix > distribution X version Y.Z with packages A, B, C installed". If you want to sell it

Re: *nix distro compatibility (was Re: survey)

2005-09-13 Thread Perrin Harkins
On Tue, 2005-09-13 at 07:12 +0100, Jeff wrote: > Debian provide a tested, stable environment, usually with added security > factor. We rolled our own once to solve the libc6 2.7 memory bugs that > hit Perl, to be bitten by intermittent and obscure interaction bugs > (MySQL/Perl mid-query dropping d

Re: mod_perl advocacy

2005-09-13 Thread JupiterHost.Net
Octavian Rasnita wrote: Hmm, sorry. I was just trying to think to something that might make perl more used than PHP. - PHP is crap and a half to admin - Its huge and clunky - PHP based systems are more prone attack since PHP relies to much oin assumptions ("Oh its quoting it all for me, so

Re: makefile error

2005-09-13 Thread Tom Schindl
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 and not to forget you have to upgrade your Apache2-Server. Tom -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.0 (GNU/Linux) Comment: Using GnuPG with Mandriva - http://enigmail.mozdev.org iD8DBQFDJsAmkVPeOFLgZFIRAnoyAJ0TzyzkYtATZ90eSvGiLf7LgdGSggC

Re: makefile error

2005-09-13 Thread Tom Schindl
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 See this thread about the installation process: http://www.issociate.de/board/post/198947/%5BRELEASE_CANDIDATE%5D_mod_perl_2.0-RC5.html Please note that an application running on mp-1.99_09 will ***NOT*** run on mp-2.0.1 because there have been massiv

Re: mod_perl advocacy

2005-09-13 Thread Octavian Rasnita
Hmm, sorry. I was just trying to think to something that might make perl more used than PHP. The scope of advocacy is not to make perl better, but to make it be used by more programmers, and most programmers are not super programmers which are able to create an operating system, but just coders th

Re: [mp2] Directive changes the command nam

2005-09-13 Thread pradeep kumar
By commenting out the 2 lines save_scalar(gv); /* local $0 */ sv_setpv_mg(GvSV(gv), directive->filename);   in modperl_cmd.c I have been able to see the proper arguments in the ps output instead of the -e which was seen before. I wasn't sure of exactly what these 2 lines are doing. I however see t

makefile error

2005-09-13 Thread jamuna chandran
Hi, Have the following error when trying to makefile: [EMAIL PROTECTED] mod_perl-2.0.1]# perl Makefile.PL MP_AP_PREFIX=/usr/local/apache2 Reading Makefile.PL args from @ARGV    MP_AP_PREFIX = /usr/local/apache2 mod_perl/1.99_09 installation detected... not ok Cannot install mod_perl/2.0.1 on

Re: Why does my MP2 crash intermittently?

2005-09-13 Thread Foo Ji-Haw
Hello Stephane, Do you think that will make a difference? I am now running an instance of the application on a W2K3 server. If it is stable there, then I will have to disown W2K and set W2K3 as the baseline OS. Maybe I will test on XP too, but since it is a server app, putting XP support may not

Re: mod_perl advocacy

2005-09-13 Thread Eric Ryan Harrison
--- Begin Message --- Octavian Rasnita (2005-09-12, 10:51): > From: "Tagore Smith" <[EMAIL PROTECTED]> > > keep asking the same questions... Stop! Take some time off, and build a > > perl based system- then come back. Until then, I'm really tired of I don't know the backhistory that seems to be pr

Re: Why does my MP2 crash intermittently?

2005-09-13 Thread Stephane GUIBOUD-RIBAUD
Foo Ji-Haw wrote: Hello Nikolay, You mean you didn't use the ActivePerl distribution? You do this to avoid the OEM licensing issue? I am using the standard ActivePerl 5.8.7, with MP2.0.1 and Apache 2.0.52. I hope this is not the cause of the problem. Did you try to upgrade to 2.0.54 ? I ha

Re: Why does my MP2 crash intermittently?

2005-09-13 Thread Foo Ji-Haw
Hello Nikolay,   You mean you didn't use the ActivePerl distribution? You do this to avoid the OEM licensing issue? I am using the standard ActivePerl 5.8.7, with MP2.0.1 and Apache 2.0.52. I hope this is not the cause of the problem.   "Nikolay Ananiev" <[EMAIL PROTECTED]> wrote in message n

Re: Why does my MP2 crash intermittently?

2005-09-13 Thread Foo Ji-Haw
Hello Stephane, I've had a good tip from Mike (thanks Mike!) that the problem is Windows related. Check out http://support.microsoft.com/?kbid=262490 for details. Although they claimed that it is a pre-SP1 problem, I'm running SP4 on W2K and I'm still seeing it. Will try the same setup on W2K3 an

Re: Why does my MP2 crash intermittently?

2005-09-13 Thread Stephane GUIBOUD-RIBAUD
I had the same problem. The only way to solve it was to use the Apache2::Reload module. By using this module, the apache that crashed is killed and a new process is started immediately. However, this not solve the real problem but the popup is not displayed. Moreover, I'm using Apache 2.0.54 a

Re: Why does my MP2 crash intermittently?

2005-09-13 Thread Nikolay Ananiev
Hello, I had a similar problem with mp2 on windows. I was using Visual Studio .NET 2002 to compile mod_perl and this was the source of all evil. A bug in .NET. I had to download service pack 1 for .NET 2002 from microsoft.com and recompile mod_perl. If this doesn't help you should supply a backtr