RE: Query
Dear All, Let me explain my scenario. We are having a secure OS and we plan to integrate mod_perl with the Apache webserver already available on the OS. Being a secure server, it mandates that none of the exec's be done on the server itself, as these potentially can be malicious. Hence we delegate the execution of perl scripts elsewhere. Hence, should I be able to integrate mod_perl to my secure web server, I still would need to receive perl requests through mod_perl only, but rather than executing the scripts there itself, I should instruct mod_perl to delegate the interpretation/execution of perl scripts to elsewhere. This being the requirement, I planned to proceed this way - 1. I would modify mod_perl code to forward a perl request to another standalone server. This I planned to do with sockets (rather than employing Queues, files etc.) since, I would need persistent connections to serve dynamic perl scripts. 2. I should look for a server that could communicate with mod_perl. This server would execute the perl scripts and return the response back to mod_perl. This I call the standalone server. I will probe all the suggestions you all had sent me. I shall look for at the POE mail lists. with thanks rsr. -Original Message- From: Perrin Harkins [mailto:[EMAIL PROTECTED]] Sent: Tuesday, January 07, 2003 10:08 PM To: [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Subject: Re: Query Chandrasekhar R S wrote: > I am having a requirement as follows : > > I need to execute/interpret the perl requests away from mod_perl. Can you explain why you want to do this? Your stated requirement is already met by CGI, FastCGI, SpeedyCGI, and a bunch of other things, but we can't really recommend anything specific without more information. - Perrin
RE: Query
Hello Ken, You gave me a glimmer of hope and enthusiasm. I have scanned through the recent postings on Mod Perl list in vain. I would like to know any such standalone servers that could process the perl requests offline (taking requests from a file or queue end). I definitely would like to get fancier as my requirement is immediate. Upon finding a server that could process the requests away from mod_perl, I most probably would modify mod_perl to communicate with the standalone servers via sockets (and maybe maintain persistence). many thanks rsr. -Original Message- From: Ken Y. Clark [mailto:[EMAIL PROTECTED]] Sent: Tuesday, January 07, 2003 9:02 PM To: Chandrasekhar R S Cc: [EMAIL PROTECTED] Subject: Re: Query On Tue, 7 Jan 2003, Chandrasekhar R S wrote: > Date: Tue, 7 Jan 2003 12:52:27 +0530 > From: Chandrasekhar R S <[EMAIL PROTECTED]> > To: [EMAIL PROTECTED] > Subject: Query > > I am having a requirement as follows : > > I need to execute/interpret the perl requests away from mod_perl. Like, > could mod_perl delegate the execution/interpretation of perl scripts to some > other process. In the end, mod_perl would be used just to accept requests > from the Web Server, but processing will be done elsewhere and response will > be routed back through mod_perl. > > - rsr. > > Namaste, > R S Chandrasekhar > [EMAIL PROTECTED] > ISD : 091-080-2052427 > Telnet : 847-2427 > Phone : 2052427 RSR, You can certainly do something like this, in many different ways. This *is* still Perl, you know. :-) You could use your mod_perl process to update a queue that's in a file or database table, then have another process (written in Perl or whatever) executed by a cron job to look at the queue and process the next job. The user could be given a token to associate with the job, then then check back later to get the results of the job. If you need it to be more immediate, then you'll have to get fancier. If it's a really long-running process you need to kick off, you'll need to take into account the dangers of forking your mod_perl process or having it wait around for the end of the job. Have you tried searching the archives for similar questions? Here's one place you can search: http://mathforum.org/discussions/epi-search/modperl.html Namaste, ky
Query
I am having a requirement as follows : I need to execute/interpret the perl requests away from mod_perl. Like, could mod_perl delegate the execution/interpretation of perl scripts to some other process. In the end, mod_perl would be used just to accept requests from the Web Server, but processing will be done elsewhere and response will be routed back through mod_perl. - rsr. Namaste, R S Chandrasekhar [EMAIL PROTECTED] ISD : 091-080-2052427 Telnet : 847-2427 Phone : 2052427
RE: Mod_Perl Compilation with HPUX Native CC
John, I had run 'perl Makefile.PL' in mod_perl-1.26. It even generated the required makefiles. When I run a "gmake", it tries to use 'gcc'. I am thankful for your assistance and help. Chandra. -Original Message- From: John Arnold [mailto:[EMAIL PROTECTED]] Sent: Wednesday, July 03, 2002 6:46 PM To: [EMAIL PROTECTED] Subject: RE: Mod_Perl Compilation with HPUX Native CC Chandra The command 'perl Makefile.PL' in the mod_perl-1.x.xx directory generates the Makefile and sets CC=cc by default Regards "Chandrasekhar R S" <[EMAIL PROTECTED]> on 07/03/2002 01:17:35 AM Please respond to <[EMAIL PROTECTED]> To:John Arnold/DTC@DTCC cc:<[EMAIL PROTECTED]> Subject:RE: Mod_Perl Compilation with HPUX Native CC Hi John, Could you guide me to information as to how I can compile with "cc". with Thanks Chandra. -Original Message- From: John Arnold [mailto:[EMAIL PROTECTED]] Sent: Tuesday, July 02, 2002 8:41 PM To: [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Subject: Re: Mod_Perl Compilation with HPUX Native CC Yes, mod_perl does compile with cc on HP-UX 11. Per Einar Ellefsen <[EMAIL PROTECTED]> on 07/02/2002 05:12:10 AM To:<[EMAIL PROTECTED]> cc:<[EMAIL PROTECTED]> Subject:Re: Mod_Perl Compilation with HPUX Native CC At 11:02 02.07.2002, Chandrasekhar R S wrote: >Hello everyone, > I must compile Mod_perl on HPUX 11.0 with HPUX's native CC, > instead of gcc. > > Are there any configuration parameters need to be set such that > Mod_Perl is >compiled using "cc". I don't know if mod_perl will compile with HP-UX cc, but if you want to try, you must first of all have a perl binary compiled with cc. Then mod_perl should pick that automatically. -- Per Einar Ellefsen [EMAIL PROTECTED]
RE: Mod_Perl Compilation with HPUX Native CC
Hi John, Could you guide me to information as to how I can compile with "cc". with Thanks Chandra. -Original Message- From: John Arnold [mailto:[EMAIL PROTECTED]] Sent: Tuesday, July 02, 2002 8:41 PM To: [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Subject: Re: Mod_Perl Compilation with HPUX Native CC Yes, mod_perl does compile with cc on HP-UX 11. Per Einar Ellefsen <[EMAIL PROTECTED]> on 07/02/2002 05:12:10 AM To:<[EMAIL PROTECTED]> cc:<[EMAIL PROTECTED]> Subject:Re: Mod_Perl Compilation with HPUX Native CC At 11:02 02.07.2002, Chandrasekhar R S wrote: >Hello everyone, > I must compile Mod_perl on HPUX 11.0 with HPUX's native CC, > instead of gcc. > > Are there any configuration parameters need to be set such that > Mod_Perl is >compiled using "cc". I don't know if mod_perl will compile with HP-UX cc, but if you want to try, you must first of all have a perl binary compiled with cc. Then mod_perl should pick that automatically. -- Per Einar Ellefsen [EMAIL PROTECTED]
Mod_Perl Compilation with HPUX Native CC
Hello everyone, I must compile Mod_perl on HPUX 11.0 with HPUX's native CC, instead of gcc. Are there any configuration parameters need to be set such that Mod_Perl is compiled using "cc". Thanks Chandra. Namaste, R S Chandrasekhar [EMAIL PROTECTED] [EMAIL PROTECTED] Phone : 2052427