Installing mod_perl for 2 versions of Perl?

2011-07-11 Thread Octavian Rasnita
Hi, Under Ubuntu 10.04, is it possible to install mod_perl for 2 versions of Perl for the same Apache? I have the default build of Apache that comes with Ubuntu and the default Perl that comes with Ubuntu and I also have the mod_perl installed with apt-get. I want to test ActivePerl 5.14 and

Re: Installing mod_perl for 2 versions of Perl?

2011-07-11 Thread André Warnier
Octavian Rasnita wrote: Hi, Under Ubuntu 10.04, is it possible to install mod_perl for 2 versions of Perl for the same Apache? I have the default build of Apache that comes with Ubuntu and the default Perl that comes with Ubuntu and I also have the mod_perl installed with apt-get. I want to

Re: Installing mod_perl for 2 versions of Perl?

2011-07-11 Thread Torsten Förtsch
On Monday, July 11, 2011 09:13:25 Octavian Rasnita wrote: I want to test ActivePerl 5.14 and I want to install Mod_perl for it but I wouldn't like to need uninstalling the actual Apache/Perl/mod_perl. Don't you have separate module libraries? Anyway, you always can use the DESTDIR=... option:

Re: Installing mod_perl for 2 versions of Perl?

2011-07-11 Thread André Warnier
Torsten Förtsch wrote: On Monday, July 11, 2011 09:13:25 Octavian Rasnita wrote: I want to test ActivePerl 5.14 and I want to install Mod_perl for it but I wouldn't like to need uninstalling the actual Apache/Perl/mod_perl. Don't you have separate module libraries? Anyway, you always can use

Re: mod_perl EC2 AMI's or other platform providers?

2011-07-11 Thread Michael Peters
On 07/10/2011 06:28 AM, Tosh Cooey wrote: Looks there like they have a Perl stack available, which is super for the world but not so for me since the stack requires you use PSGI which is a great approach but since I don't require portability I never went that route, oh woe is me... PSGI isn't

Re: Installing mod_perl for 2 versions of Perl?

2011-07-11 Thread Perrin Harkins
2011/7/11 Octavian Rasnita orasn...@gmail.com: Under Ubuntu 10.04, is it possible to install mod_perl for 2 versions of Perl for the same Apache? Just install another apache. It's pretty simple to compile apache and mod_perl against your own perl, and it avoids needing to put a bunch of custom

Re: Installing mod_perl for 2 versions of Perl?

2011-07-11 Thread Fred Moyer
On Mon, Jul 11, 2011 at 10:44 AM, Perrin Harkins per...@elem.com wrote: 2011/7/11 Octavian Rasnita orasn...@gmail.com: Under Ubuntu 10.04, is it possible to install mod_perl for 2 versions of Perl for the same Apache? Just install another apache.  It's pretty simple to compile apache and

Re: mod_perl EC2 AMI's or other platform providers?

2011-07-11 Thread Perrin Harkins
I saw Miyagawa at YAPC::NA and it looks like DotCloud is serious about their Perl support. The situation seems pretty good to me. We have DotCloud, for people who want to try something simple very quickly with minimal startup costs. We have cheap virtual servers (e.g. Linode) running linux with

Changing browser URL based on condition

2011-07-11 Thread Jerry Pereira
Hi All, I would like to know if there is a way to change the URL displayed on browser without using Redirect option. The URL visible on client browser must be based on some condition that is evaluated in my mod_perl handler. For example - 1. User types the URL - www.example.com, this will

Re: Changing browser URL based on condition

2011-07-11 Thread Ronald J Kimball
On Mon, Jul 11, 2011 at 11:48:09AM -0700, Jerry Pereira wrote: I would like to know if there is a way to change the URL displayed on browser without using Redirect option. The URL visible on client browser must be based on some condition that is evaluated in my mod_perl handler. Imagine if a

RE: Changing browser URL based on condition

2011-07-11 Thread Szekeres, Edward
If you are looking to do this for cosmetic reasons, I do this be simply using frame sets and doing redirects in the child frame. The URL displayed in the location bar will always be constant for the parent frame. I don't think there is any way to do this at the core level or it would be a

Re: Changing browser URL based on condition

2011-07-11 Thread Octavian Rasnita
From: Jerry Pereira online.je...@gmail.com Hi All, I would like to know if there is a way to change the URL displayed on browser without using Redirect option. Nope, not possible. You need to do that redirection somehow. What the user sees in the address bar is the URL accessed by the

Re: Changing browser URL based on condition

2011-07-11 Thread Jerry Pereira
Hi Edward, I have the following design: A single PerlResponseHandler for all requests. This handler based on the path decides the action to be taken For example, if the user submits to www.example.com/login, then the handler delegates the request to authentication module, which will then either

Re: Changing browser URL based on condition

2011-07-11 Thread Michael Peters
On 07/11/2011 03:14 PM, Jerry Pereira wrote: Any suggestions to handle this scenario will be great. As others have noted, there isn't a way to do this. If it's a requirement of your application then the only way to handle it is to do redirection. And as others have pointed out it's a good

Re: Installing mod_perl for 2 versions of Perl?

2011-07-11 Thread Octavian Rasnita
From: Fred Moyer f...@redhotpenguin.com On Mon, Jul 11, 2011 at 10:44 AM, Perrin Harkins per...@elem.com wrote: 2011/7/11 Octavian Rasnita orasn...@gmail.com: Under Ubuntu 10.04, is it possible to install mod_perl for 2 versions of Perl for the same Apache? Just install another apache. It's

Re: Installing mod_perl for 2 versions of Perl?

2011-07-11 Thread Octavian Rasnita
From: Perrin Harkins per...@elem.com 2011/7/11 Octavian Rasnita orasn...@gmail.com: Under Ubuntu 10.04, is it possible to install mod_perl for 2 versions of Perl for the same Apache? Just install another apache. It's pretty simple to compile apache and mod_perl against your own perl, and

Re: mod_perl EC2 AMI's or other platform providers?

2011-07-11 Thread Octavian Rasnita
From: Perrin Harkins per...@elem.com I saw Miyagawa at YAPC::NA and it looks like DotCloud is serious about their Perl support. The situation seems pretty good to me. We have DotCloud, for people who want to try something simple very quickly with minimal startup costs. I have tried, or

Re: Changing browser URL based on condition

2011-07-11 Thread Douglas Sims
Much better to go with a more RESTful approach - the URL is the identifier for the page and you don't want that identifier to represent the wrong page, e.g. if example.com/login sometimes returns the home page and sometimes returns some other page (assuming you can login from and return to

Re: Changing browser URL based on condition

2011-07-11 Thread Octavian Rasnita
From: Jerry Pereira online.je...@gmail.com Hi Edward, I have the following design: A single PerlResponseHandler for all requests. This handler based on the path decides the action to be taken For example, if the user submits to www.example.com/login, then the handler delegates the request to

Re: Changing browser URL based on condition

2011-07-11 Thread MK
On Mon, 11 Jul 2011 11:48:09 -0700 Jerry Pereira online.je...@gmail.com wrote: 1. User types the URL - www.example.com, this will display the login page. 2. Once the user enters the credentials and hits submit, the request is posted to www.example.com/login action. 3. If the credentials

Re: Installing mod_perl for 2 versions of Perl?

2011-07-11 Thread Perrin Harkins
On Mon, Jul 11, 2011 at 3:14 PM, Octavian Rasnita orasn...@gmail.com wrote: From: Perrin Harkins per...@elem.com I am still afraid to compile Perl+Apache+mod_perl since the old days when I needed to do that because there were no other solutions, and when I needed to face some ugly compiling

Re: Changing browser URL based on condition

2011-07-11 Thread Brad Van Sickle
Agree with the consensus. The URI should be descriptive of the function, so any requests to /login should be from users who are attempting to... login. The home page should be housed under a separate URL (/home for example) After the user has authenticated, the login module should

Re: Installing mod_perl for 2 versions of Perl?

2011-07-11 Thread Fred Moyer
On Mon, Jul 11, 2011 at 12:38 PM, Perrin Harkins per...@elem.com wrote: On Mon, Jul 11, 2011 at 3:14 PM, Octavian Rasnita orasn...@gmail.com wrote: From: Perrin Harkins per...@elem.com I am still afraid to compile Perl+Apache+mod_perl since the old days when I needed to do that because there

RE: Changing browser URL based on condition

2011-07-11 Thread Szekeres, Edward
It seems to be just an attempt to do what is already done in Apache2::AuthCookie (CPAN), which encapsulates a server side authentication. -Original Message- From: MK [mailto:m...@cognitivedissonance.ca] Sent: Monday, July 11, 2011 3:37 PM To: modperl@perl.apache.org Subject: Re:

Re: Changing browser URL based on condition

2011-07-11 Thread Jerry Pereira
Thanks Guys!!! I will go ahead with Redirect approach. I was more interested in building a generic framework for my application that would handle such scenarios (login was just one of them). On Mon, Jul 11, 2011 at 12:42 PM, Szekeres, Edward edward.szeke...@perkinelmer.com wrote: It seems to

RE: Changing browser URL based on condition

2011-07-11 Thread James B. Muir
I think you need to do a redirect. From within your mod_perl handler try something like this: $r-content_type(text/plain); $r-headers_out-set(Location=$url); return Apache2::Const::HTTP_TEMPORARY_REDIRECT; From: Jerry Pereira [mailto:online.je...@gmail.com] Sent: Monday, July 11,

Best approach to store Application Configuration

2011-07-11 Thread Jerry Pereira
Hi All, I am new to mod_perl (a java developer). I would like to know the best approach to store and retrieve Applicaiton configurations that is accessible to all packages in my mod_perl application. My application configuration includes - Database details, Template mapping, LDAP configuration

RE: Best approach to store Application Configuration

2011-07-11 Thread James B. Muir
This page describes pretty well how to set up custom configuration directives; perhaps helpful? http://perl.apache.org/docs/2.0/user/config/custom.html -James From: Jerry Pereira [mailto:online.je...@gmail.com] Sent: Monday, July 11, 2011 5:08 PM To: modperl@perl.apache.org Subject: Best

RE: Best approach to store Application Configuration

2011-07-11 Thread Szekeres, Edward
Database Flatfile on disk (look up Storable module on how to save/load binary representation of PERL structures), works well if you want to have an instant structure, but flatfiles need location on the server. I use both regularly From: Jerry Pereira [mailto:online.je...@gmail.com] Sent:

Re: Best approach to store Application Configuration

2011-07-11 Thread Michael Peters
On 07/11/2011 05:16 PM, James B. Muir wrote: This page describes pretty well how to set up custom configuration directives; perhaps helpful? http://perl.apache.org/docs/2.0/user/config/custom.html I would almost always avoid this kind of configuration and go with an external configuration

Re: Best approach to store Application Configuration

2011-07-11 Thread McCarrell, Jeff
Hi Jerry. I went through a couple of different approaches before settling on using YAML files to describe configuration. There are several nice properties of YAML IMO, not least of which is arbitrary nesting so the config can closely match the software being configured. Here is a sanitized

Re: Best approach to store Application Configuration

2011-07-11 Thread Fred Moyer
On Mon, Jul 11, 2011 at 2:23 PM, Michael Peters mpet...@plusthree.com wrote: On 07/11/2011 05:16 PM, James B. Muir wrote: This page describes pretty well how to set up custom configuration directives; perhaps helpful? http://perl.apache.org/docs/2.0/user/config/custom.html I would almost

Re: Best approach to store Application Configuration

2011-07-11 Thread Jerry Pereira
please correct me if I am wrong, I should be using tool like YAML/Config::General for application configuration storage and reteieval, and load them on startup using startup.pl script? That would mean i will have to store the name of configuration file some where (probabaly in mod_perl

RE: Best approach to store Application Configuration

2011-07-11 Thread James B. Muir
The PerlSetVar overhead occurs on every request, whereas the overhead associated with using the custom configuration occurs once when Apache is started. -James -Original Message- From: Fred Moyer [mailto:f...@redhotpenguin.com] Sent: Monday, July 11, 2011 5:35 PM To: Michael Peters Cc:

Re: Best approach to store Application Configuration

2011-07-11 Thread McCarrell, Jeff
Naming the path to the config file in an httpd conf will certainly work. In my case, the path the config file is hard coded in the method that reads the config as it is not something that changes. Here is on of my httpd conf file (a separate file loaded in the http configuration directory so

Re: Best approach to store Application Configuration

2011-07-11 Thread Michael Peters
On 07/11/2011 05:41 PM, Jerry Pereira wrote: please correct me if I am wrong, I should be using tool like YAML/Config::General for application configuration storage and reteieval, and load them on startup using startup.pl http://startup.pl script? Yes. That would mean i will have to store

Re: Best approach to store Application Configuration

2011-07-11 Thread Keywan Ghadami
Hi Jerry, I use JSON:XS in my framework, but before writing a hole framework from the scratch, think about using catalyst. regards keywan Am 11.07.2011 23:07, schrieb Jerry Pereira: Hi All, I am new to mod_perl (a java developer). I would like to know the best approach to store and

Re: Help Debugging Windows Server 2003 Win32 + Apache2.2 + mod_perl + Activestate Pelr 5.8.8 ErrorID 26

2011-07-11 Thread Randolf Richardson
awarnier wrote: snip What happens if you disable Apache2::Reload ? 48 hours continuous operations now without a single glitch at all. Almost certain that Apache2::Reload was not the root cause, but it was certainly heavily implicated in the problem and resultant instability. If

Re: mod_perl-1.31 compilation with perl 5.14.1 fails

2011-07-11 Thread Fred Moyer
Looks like a patch for this issue was posted. Greg, do you want to try out this patch and report back? https://rt.cpan.org/Public/Bug/Display.html?id=64999#txn-954785 On Mon, Jul 4, 2011 at 10:20 AM, Fred Moyer f...@redhotpenguin.com wrote: On Mon, Jun 27, 2011 at 4:54 PM, Gregory Coleman

Re: Installing mod_perl for 2 versions of Perl?

2011-07-11 Thread Octavian Rasnita
From: Fred Moyer f...@redhotpenguin.com On Mon, Jul 11, 2011 at 12:38 PM, Perrin Harkins per...@elem.com wrote: On Mon, Jul 11, 2011 at 3:14 PM, Octavian Rasnita orasn...@gmail.com wrote: From: Perrin Harkins per...@elem.com I am still afraid to compile Perl+Apache+mod_perl since the old days

Re: Changing browser URL based on condition

2011-07-11 Thread Octavian Rasnita
From: Jerry Pereira Thanks Guys!!! I will go ahead with Redirect approach. I was more interested in building a generic framework for my application that would handle such scenarios (login was just one of them). Then, as somebody suggested, start using Catalyst framework. It will handle

Re: Installing mod_perl for 2 versions of Perl?

2011-07-11 Thread Vincent Veyron
Le lundi 11 juillet 2011 à 22:14 +0300, Octavian Rasnita a écrit : Mmm, I like the word simple :-) These are the notes I took about a year ago for compilation on Debian of Perl/Apache2/Mod_perl2. If I am not mistaken, they are all you need. Look for 'Compilation' under each title. Perl