RE: Is mod_perl for web app still active today? [EXT]

2022-09-21 Thread James Smith
It is declining - but that is that very few people used even 1% of it's functionality - they just used it to have a perl interpreter embedded in the webserver. It is and never was a web framework - it was more fundamental than that - it add functions to Perl but you could do what you wanted with

RE: is mpm_event safe for modperl handler? [EXT]

2022-08-10 Thread James Smith
rors as it sort of just dies! -Original Message- From: pengyh Sent: 09 August 2022 13:04 To: James Smith ; modperl@perl.apache.org Subject: Re: is mpm_event safe for modperl handler? [EXT] I think running Ignix as front-end server and mod_perl for backend server is the more popular choi

RE: is mpm_event safe for modperl handler? [EXT]

2022-08-09 Thread James Smith
If you want the speed of mod_event for static content and the power of mod_perl for dynamic content - the best way is to run a lightweight mod_event apache in front of a mod_prefork to run the mod_perl tbh this is exactly the set up most people use for other heavy backends (mod_fastcgi etc)

RE: Sharing read/WRITE data between threads? [EXT]

2021-08-25 Thread James Smith
The other problem with sharing writable data in "memory" is that it would not necessarily shared between multiple server instances. We run multiple mod_perl instances for reliability. Agree with other posters either use something like redis or memcache (possibly backed with a database). -O

RE: mod_perl alternatives [EXT]

2021-03-18 Thread James Smith
The problem is I don't think there is mod_perl is quite a unique infrastructure - across all language I believe! I don't think any other language/framework gives you this level of flexibility. Most frameworks just concentrate on the request phase and shoe horn everything in there - so you can't

RE: Moving ExecCGI to mod_perl - performance and custom 'modules' [EXT]

2021-02-09 Thread James Smith
t access to the other machines - taking servers + desktop machines - something like 30-50K cores. -Original Message- From: Clive Eisen Sent: 09 February 2021 19:23 To: Rafael Caceres Cc: James Smith ; Vincent Veyron ; modperl@perl.apache.org Subject: Re: Moving ExecCGI to mod_perl - p

RE: Moving ExecCGI to mod_perl - performance and custom 'modules' [EXT]

2021-02-09 Thread James Smith
stom 'modules' [EXT] Connection caching does work for most use cases - we have to accept James works in scenarios most developers can't fathom :) If you are just firing off simple SQL's without any triggers or named temporary tables involved you should be good. The only times we r

RE: Moving ExecCGI to mod_perl - performance and custom 'modules' [EXT]

2021-02-09 Thread James Smith
ExecCGI to mod_perl - performance and custom 'modules' [EXT] On Sun, 7 Feb 2021 20:21:34 + James Smith wrote: Hi James, > DBI sharing doesn't really gain you much - and can actually lead you into a > whole world of pain. It isn't actually worth turning it on at

RE: Moving ExecCGI to mod_perl - performance and custom'modules'[EXT]

2021-02-08 Thread James Smith
;[EXT] On Mon, Feb 8, 2021 at 09:13, James Smith mailto:j...@sanger.ac.uk>> wrote: Use perl-critic this will find most of the nasties that you have the classic is: Thanks for the tip! I have no idea how long I've been writing stuff in perl - and I never knew of this! I ran it with th

RE: Moving ExecCGI to mod_perl - performance and custom'modules'[EXT]

2021-02-08 Thread James Smith
Use perl-critic this will find most of the nasties that you have the classic is: my $var = {code} if {condition}; The my gets round perl strict, but $var doesn’t get updated if {condition} isn’t met, so holds the variable from the last time round.. Better is my $var = ‘’; $var = {code} if {con

RE: Moving ExecCGI to mod_perl - performance and custom 'modules' [EXT]

2021-02-08 Thread James Smith
Thanks. On Mon, Feb 8, 2021, at 4:21 AM, James Smith wrote: DBI sharing doesn't really gain you much - and can actually lead you into a whole world of pain. It isn't actually worth turning it on at all. We use dedicated DB caching in the cases where we benefit from it as and when you n

RE: Moving ExecCGI to mod_perl - performance and custom'modules'[EXT]

2021-02-07 Thread James Smith
>> > >> Apache + ExecCGI: Requests per second:13.50 [#/sec] (mean) > >> Apache + mod_perl: Requests per second:59.81 [#/sec] (mean) > >> > >> This is obviously a good thing. > >> > >> I haven't gotten into the preload or DBI sharing

RE: Moving ExecCGI to mod_perl - performance and custom 'modules' [EXT]

2021-02-07 Thread James Smith
pooling and long duration database handles. We get round it with permanent MySQL connections by closing/re-opening them after 5 minutes of inactivity – hence the need to develop our own cache/pool…. From: Mithun Bhattacharya Sent: 07 February 2021 20:36 To: James Smith Cc: Vincent Veyron

RE: Moving ExecCGI to mod_perl - performance and custom 'modules' [EXT]

2021-02-07 Thread James Smith
1 19:06 To: Steven Haigh Cc: James Smith ; modperl@perl.apache.org Subject: Re: Moving ExecCGI to mod_perl - performance and custom 'modules' [EXT] On Sun, 07 Feb 2021 23:58:17 +1100 Steven Haigh wrote: > > I haven't gotten into the preload or DBI sharing yet - as that&

RE: [EXT]

2021-02-07 Thread James Smith
: Adam Prime Sent: 07 February 2021 13:45 To: Steven Haigh Cc: James Smith ; modperl@perl.apache.org Subject: Re: [EXT] There is one other thing you can do relatively easily that may get you a marginal gain when Apache spins up new children. Load some or all of your Perl dependencies before

RE: Moving ExecCGI to mod_perl - performance and custom 'modules' [EXT]

2021-02-07 Thread James Smith
As welsey said – try Registry, that was the standard way of using mod_perl to cache perl in the server – but your problem might be due to the note in PerlRun… https://perl.apache.org/docs/2.0/api/ModPerl/PerlRun.html#Description META: document that for now we don't chdir() into the script's dir

RE: Confused about two development utils [EXT]

2020-12-23 Thread James Smith
two development utils [EXT] James would you be able to share more info about your setup ? 1. What exactly is your application doing which requires so much memory and CPU - is it something like gene splicing (no i don't know much about it beyond Jurassic Park :D ) 2. Do you feel Perl was the

RE: Confused about two development utils [EXT]

2020-12-23 Thread James Smith
serious problem, each of our server has 64GB memory. Forgot to add - so our FCGI servers need a lot (and I mean a lot) more memory than the mod_perl servers to serve the same level of content (just in case memory blows up with FCGI backends) -Original Message- From: James Smith mailto:j

RE: Confused about two development utils [EXT]

2020-12-23 Thread James Smith
Forgot to add - so our FCGI servers need a lot (and I mean a lot) more memory than the mod_perl servers to serve the same level of content (just in case memory blows up with FCGI backends) -Original Message- From: James Smith Sent: 23 December 2020 11:34 To: André Warnier (tomcat/perl

RE: Confused about two development utils [EXT]

2020-12-23 Thread James Smith
> This costs memory, and all the more since many perl modules are not > thread-safe, so if you use them in your code, at this moment the only safe > way to do it is to use the Apache httpd prefork model. This means that each > Apache httpd child process has its own copy of the perl interpreter,

RE: suggestions for perl as web development language [EXT]

2020-12-22 Thread James Smith
queries per second. > 500 tables is a lot more than what I typically handle. I'm sure it complicates things. But see this post by James Smith in a recent thread : http://mail-archives.apache.org/mod_mbox/perl-modperl/202008.mbox/ajax/%3Cef383804cf394c53b48258531891d12b

RE: Don't use session hashes [EXT]

2020-12-21 Thread James Smith
r is logging in - or creating a "shopping cart" {in the loosest terms}. It take a huge load off the file system / database. -Original Message- From: Vincent Veyron Sent: 21 December 2020 13:51 To: modperl@perl.apache.org Cc: James Smith Subject: Don't use session hashes

RE: suggestions for perl as web development language [EXT]

2020-12-21 Thread James Smith
second. > 500 tables is a lot more than what I typically handle. I'm sure it complicates things. But see this post by James Smith in a recent thread : https://urldefense.proofpoint.com/v2/url?u=http-3A__mail-2Darchives.apache.org_mod-5Fmbox_perl-2Dmodperl_202008.mbox_ajax_-253

RE: suggestions for perl as web development language [EXT]

2020-12-21 Thread James Smith
positioned to leverage these advancements. Many of Perl's dependencies are not thread safe and mod_perl forces you to use mpm_prefork. My organization has started moving away from Perl to Elixir for these reasons. On Tue, Aug 4, 2020, 3:37 AM James Smith mailto:j...@sanger.ac.uk>> wrote:

RE: suggestions for perl as web development language [EXT]

2020-12-20 Thread James Smith
There are cases where Plack though isn't the solution and where mod_perl written well is a far better (more stable) solution. It is good when the backend servers are slow (simple not complex app); backend requests are relatively fast, and don't use much memory. But the warning (1) If you have

RE: cache a object in modperl [EXT]

2020-09-16 Thread James Smith
You can still have an always up service – but it will require a bit of work and a load balancing proxy set up in front of multiple apache instances. You can then restart each backend independently without an issue. If the apaches are relatively lightweight you can run two on the same machine (e

RE: Question about deployment of math computing [EXT]

2020-08-05 Thread James Smith
So yes use starman for simple apps if you need to, but for complex stuff I find mod_perl setup more reliable. James -Original Message- From: Wesley Peng Sent: 05 August 2020 04:31 To: dc...@prosentient.com.au; modperl@perl.apache.org Subject: Re: Question about deploym

RE: suggestions for perl as web development language [EXT]

2020-08-04 Thread James Smith
Cc: Joseph He ; James Smith ; John Dunlap ; Wesley Peng ; mod_perl list Subject: Re: suggestions for perl as web development language [EXT] On 4 Aug 2020, at 21:55, Mithun Bhattacharya mailto:mit...@gmail.com>> wrote: Ours is a REST based service so every request has business lo

RE: suggestions for perl as web development language [EXT]

2020-08-04 Thread James Smith
From: John Dunlap Sent: 04 August 2020 15:30 To: Wesley Peng Cc: mod_perl list Subject: Re: suggestions for perl as web development language [EXT] The fundamental and, in my opinion, fatal flaws of mod_per are as follows: > 1) Concurrency. mod_perl is pretty close to forced to use mpm_prefork

RE: suggestions for perl as web development language [EXT]

2020-08-04 Thread James Smith
20 years ago - and has now been stable for around 12-13 years and works strong... James -Original Message- From: Wesley Peng Sent: 04 August 2020 06:43 To: modperl@perl.apache.org Subject: suggestions for perl as web development language [EXT] greetings, My team use all of perl, ru

Re: HTTP and MPM support

2019-01-27 Thread Dr James Smith
I would prefer to see a mod_perl 2.6 or 3 against perl 5 rather than perl 6 - I think it wouldn't go to far against perl 6 as there isn't the uptake - we would be unlikely to migrate to a perl 6 backend - there is too much pressure already to move to an alternative language (python at the momen

Re: HTTP and MPM support

2019-01-25 Thread Dr James Smith
Agree with this we use AAA handlers - but more importantly output filters to allow content to be decorated per site (independent of what generates the content perl/java/php proxied content etc...} and add in a few useful extra logging features that rely on things like transHandlers and log & cl

Re: Future MPM Support?

2018-06-09 Thread Dr James Smith
people who just use response handlers do not see this issue. But we hook into about 10 phases of the apache process ... On 08/06/2018 02:08, John Dunlap wrote: Does using mod_perl properly allow you to use mpm_event or mpm_worker? On Thu, Jun 7, 2018 at 9:19 PM, Dr James Smith <mailt

Re: Future MPM Support?

2018-06-07 Thread Dr James Smith
Unfortunately Plack (and Catalyst especially) are a fairly poor comparison to using mod_perl properly {unfortunately very few people do so} I've looked at Dancer and Catalyst - both are OK at what they do - but they don't really handle things in the really clean easy way that mod_perl does {if

Re: capture exception

2017-05-30 Thread James Smith
On 2017-05-30 03:49 PM, Dirk-Willem van Gulik wrote: On 30 May 2017, at 16:43, John Dunlap > wrote: How is it a security hole? …. > my $ret = eval { $m->...() }; Just imagine $m->…() returning something containing a valid perl expression such as " `rm -rf /‘

Re: capture exception

2017-05-30 Thread James Smith
String eval should be avoided at all costs [especially if you parse user input] - functional eval is different - and is a good model for catching errors etc {There are some good uses of string eval - e.g. dymanically "use"ing modules} James On 2017-05-30 03:46 PM, Ruben S

Re: capture exception

2017-05-30 Thread James Smith
Not really a mod_perl question but you can always wrap your method call in an eval my $ret = eval { $m->...() }; And then check $@ for the error message On 2017-05-26 02:08 AM, Peng Yonghua wrote: greeting, I am not so good at perl/modperl,:) In the handler, a method from a class was calle

Re: mod_perl -> application server

2017-04-06 Thread James Smith
You can use mod_perl properly and write your self a request handler - rather than using CGI scripts which handles the routing for you. I use this model exclusively on my servers... Most of the scripts are converted to action modules, which are dynamically compiled by the handler (which acts as

Re: mod_perl Website Hosting

2017-03-09 Thread James Smith
As I want to stay in the UK - I've been using bigV.io services from bytemark - slighlty more expensive - and you have to set up from scratch - but really nice VMs and not difficult to set-up - and I get to set them up exactly as I want them On 2017-03-09 04:04 PM, Vincent Veyron wrote: O

Re: Cache refresh each 50 queries?

2016-10-05 Thread James Smith
You can look at Apache::SizeLimit as an alternative - this is designed to cope with applications which occassionaly "leak memory".. If one requests uses a lot of memory it will not be recovered -- Perl doesn't hand this memory back - so subsequent requests are handled by the inflated process.

Re: Recommended Linux distribution for LAMP/mod_perl

2016-10-03 Thread Dr James Smith
We tend to now use Ubuntu LTS set ups for our webservers - currently a mix of 12.04, 14.04 and 16.04 depening on which part of the production cycle we are on (yes we have at least 60 for approx 120 different websites)... On 03/10/2016 18:09, John Dunlap wrote: You're going to be better off wi

Re: Alternatives to CGI perl module

2016-09-11 Thread Dr James Smith
CGI.pm is still good - but i you are using modperl "properly" then it is worth look at APR, which when you use CGI.pm under mod_perl it is what is used under the hood... and is faster than CGI (one less level of abstraction) although there is a minor bug in it - in that is broken if you use mod

Re: which framework is best suitable for modperl?

2016-07-25 Thread James Smith
On 7/20/2016 4:04 PM, Steven Lembark wrote: On Wed, 20 Jul 2016 11:55:24 +0800 yhp...@orange.fr wrote: Though I have written several handlers using mp2, but for further web development under modperl, what framework do you suggest to go with? Q: What do you mean by "framework"? (I have fe

Re: ApacheCon: Getting the word out internally

2016-07-19 Thread James Smith
On 7/19/2016 9:58 AM, yhp...@orange.fr wrote: Jie, I have been using Apache::DBI, but I don't think it is something like JDBC. Thankfully not - JDBC is one of the biggest nightmares our DBAs face - if we have network issues (firewall session timeout e.g.) we have had all sorts of problems

Re: ApacheCon: Getting the word out internally

2016-07-19 Thread James Smith
On 7/19/2016 4:26 AM, yhp...@orange.fr wrote: so, will go for support of perl6? Probably once it becomes more prevelant - the perl6 community is still relatively small {moving current perl 5 codebases to it will be none-trivial} and most will not see the gain from doing so... It will take ti

Re: Bad rap

2016-06-14 Thread James Smith
webservers James On 6/14/2016 3:52 PM, John Dunlap wrote: Though, if you have no control over what apps you have to support and they are wirtten in multiple architectures... I can totally see where you're coming from. On Tue, Jun 14, 2016 at 10:48 AM, James Smith <mailto:j...@sang

Re: Bad rap

2016-06-14 Thread James Smith
entication/... methods... We know because other projects use the style frameworks you are talking about - and we go you just XYZ, and then realize that they are using some nginx/psgi/starman solution and have to go - aargh - no you can't just do that - you will have to re-engineer your app! James

Re: Bad rap

2016-06-14 Thread James Smith
On 6/14/2016 3:28 PM, John Dunlap wrote: https://www.nginx.com/blog/nginx-vs-apache-our-view/ Unfortunately for us we actually use some of those 500 things that apache is good at, that nginx doesn't do: * Making use of all the handler/filter hooks in apache; * Fronting a complex web-applic

Re: Bad rap

2016-06-13 Thread James Smith
quests is fundamentally slower than Nginx and, consequently, Nginx scales better. On Jun 13, 2016 6:54 AM, "James Smith" <mailto:j...@sanger.ac.uk>> wrote: Just posted: mod_perl is a much better framework that PSGI, FastCGI IF you make use of the integration of perl i

Re: Bad rap

2016-06-13 Thread James Smith
Just posted: mod_perl is a much better framework that PSGI, FastCGI IF you make use of the integration of perl into all the stages of apache (you can hook into about 15 different stages in the Apache life cycle. We make of extensive use of the input, output filters, AAA-layers, clean up, log

Re: close connection for request, but continue

2016-04-21 Thread James Smith
A job queue is also better because it stops un-controlled forking or excessive numbers of "dead" web connections hanging around. It will just queue requests until resources are available.. You may find handling multiple of these jobs in parallel eats up all your processor/memory resources.. Whe

Re: Upgrade to Apache 2.4 breaks encoding in a PerlOutputFilterHandler

2015-11-29 Thread Dr James Smith
I knew it was a problem - but due to our set up of front end proxy / mod_perl then this wasn't an issue.. the mod_perl server handles the filter - and the front end proxy does the gzipping (we use Brocade Traffic Mangers and Apache in different places) - in most production environments this is

Re: Apache2 filter

2015-10-02 Thread James Smith
perl -cw sometimes throws errors with mod_perl code - as it isn't running in the Apache environment... I get the same warning testing my output filter handler when running with -cw - but it works well in Apache...! On 10/1/2015 6:59 PM, A. Warnier wrote: Hi. I am trying to write an Apache2

Re: Random segmentation fault

2015-09-06 Thread Dr James Smith
. and then went back to diagnose the error... James On 03/09/2015 22:21, John Dunlap wrote: Ever since upgrading from Debian 7 - which shipped with Apache 2.2 - to Debian 8 - which shipped with Apache 2.4 - my user base has been reporting that their browsers randomly tell them "No data recei

Re: Enquiry about mod_perl project state

2015-08-15 Thread Dr James Smith
I agree with Randolf, I have watched a number of projects move away from mod_perl - often to Dancer/ Catalyst etc and then they ask can I do X, Y or Z... I say "if you were using mod_perl you could do that easily" but usually find the tool chain for doing something similar in Dancer or Cataly

Re: Large File Download

2015-03-31 Thread Dr James Smith
On 28/03/2015 19:54, Issac Goldstand wrote: sendfile is much more efficient than that. At the most basic level, sendfile allows a file to be streamed directly from the block device (or OS cache) to the network, all in kernel-space (see sendfile(2)). What you describe below is less effective, si

Re: Large File Download

2015-03-28 Thread Dr James Smith
You can effectively stream a file byte by byte - you just need to print a chunk at a time and mod_perl and apache will handle it appropriately... I do this all the time to handle large data downloads (the systems I manage are backed by peta bytes of data)... The art is often not in the output

Re: mod_perl for multi-process file processing?

2015-02-02 Thread Dr James Smith
Alan/Alexandr, There will always be an overhead with using a webserver to do this - even using mod_perl. Assumiptions: *from what you are saying that there is no actual website involved but you want to use mod_perl to cache data for an offline process; *One set of data is use

Re: Perl + DBD-Oracle, problems with encoding when "PerlHandler Apache::Registry" is in use

2014-11-23 Thread Dr James Smith
g the oracle config from disk - but using it's own cached values from the first "use".. James Ruben On Fri, Feb 19, 2010 at 05:47:51PM +0700, michael kapelko wrote: Hello. Here's a short script I used to find out the problem with the Apache::Registry: #!/usr/bin/perl -wT

Re: Apache2::Connection::remote_ip

2014-11-20 Thread Dr James Smith
You are probably looking at 2.2 documentation for a 2.4 Apache... I tend to use: ($r->connection->can('remote_ip') ? $r->connection->remote_ip : $r->connection->client_ip ); (In fact have a wrapper function to do this) so the code base will (does) work on 2

Re: Disconnect database connection after idle timeout

2014-11-13 Thread Dr James Smith
On 13/11/2014 15:43, Perrin Harkins wrote: On Thu, Nov 13, 2014 at 10:29 AM, Xinhuan Zheng mailto:xzh...@christianbook.com>> wrote: We don’t have any front end proxy. I think I see the problem... ;) If you use a front-end proxy so that your mod_perl servers are only handling mod_perl re

Re: mod_perl and utf8 and CGI->param

2014-09-03 Thread Dr James A Smith
ring data in sessions; between script and database; etc... I do however not use CGI.pm but use APR instead which I know works (and may be less error prone) James --- This email is free from viruses and malware because avast! Antivirus protection is active. http://www.avast.com -- The W

Re: Custom response problem

2014-03-18 Thread James Smith
Try: use Apache2::Response (); This should add the method to $r (a lot of the Apache2:: modules do this - Apache2::RequestUtil, Apache2::Upload etc) On 18/03/2014 16:16, John Dunlap wrote: I've tried it with "use Apache2::RequestRec;" at the top of my handler and without it. The outcome is t

Re: support for Apache 2.4

2014-02-16 Thread Dr James A Smith
be honest... It would be good to have a list of known "features" which may not be fully working... we are fortunate that the code we have written is mod_perl 2.0 from the ground up (and is tied to being mod_perl - no nasty CGI wrapper code) James --- This email is free from viruses and

Re: Problem with mod_perl and DBI/DBD::Oracle LD_LIBRARY_PATH is not being recognized?

2013-10-21 Thread Dr James A Smith
ent before starting up apache. As the Env settings int the config were not in place when DBD::Oracle was used for the first time. Not sure when it is being used tho' but it took a lot of "root"y hacking to discover the problem! James On 21/10/2013 19:37, Bruce Johnson wrote: On Oct 21

Apache::Session::DB_File cleanup issue

2012-04-03 Thread James B. Muir
f1ac7e74a89b17b47 f72ec1ed349c7140e9f37087e04cd703 Not a SCALAR reference at /usr/local/lib/perl5/site_perl/5.8.8/MLDBM/Serializer/Storable.pm line 28. I inspected both MLDBM and Apache::Session::DB_File and it looks to me like they both use Storable::thaw to unserialize the data. Any ideas why

ModPerl::Util::exit: (120000) exit was called

2012-02-11 Thread James Andrews
. Kind regards, James Andrews

Re: Tool to create multiple requests

2012-02-07 Thread James Smith
On 07/02/2012 08:58, André Warnier wrote: Tobias Wagener wrote: Hello, I'm currently developing a huge application with mod_perl, unixODBC and MaxDB/SAPDB. On my developing system everything is fine. But on the productive system with > 50 users, I have database connection errors and request a

FW: Cannot retrieve empty keys from request using Apache2::Request.param

2012-01-03 Thread James B. Muir
How about a little perl string manipulation? #my $a = 'key1=value1&key2=&key3=value3'; my $a = 'key1=value1&key2&key3=value3'; my $b = join "&", map { my $c = ($_ =~ m/(\S+)=(\S*)?/o) ? $_ : "$_="; $c; } split "&", $a;

RE: mod_perl output filter and mod_proxy, mod_cache

2011-07-14 Thread James B. Muir
I had to bolt on an input servlet filter to tomcat once. To do this I had to write the servlet filter code and then add and tags to the application WEB-INF/web.xml file. -James -Original Message- From: Tim Watts [mailto:t...@dionic.net] Sent: Thursday, July 14, 2011 8:12 AM To

Re: mod_perl output filter and mod_proxy, mod_cache

2011-07-14 Thread James Smith
HTML page with none of the styling, and this is wrapped using our custom output filter, I'm guessing at this stage you can do what you want with the script... James Also, what are the versions of Apache and Tomcat that you are using ? Apache 2.2 (various sub versions) and both t

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

RE: apache2 or mod_perl2 oddball error

2011-06-21 Thread James B. Muir
Getting back to basics... Are you sure that your build of Apache and perl went well? Have you scrutinized the logs you created when you built perl and apache for any surprising error messages? -James -Original Message- From: William Bulley [mailto:w...@umich.edu] Sent: Tuesday, June 21

Apache2::Cookie documentation 'httponly'

2011-05-27 Thread James B. Muir
Very small thing, but I just noticed that 'httponly' is defined twice in the Apache2::Cookie documentation. http://httpd.apache.org/apreq/docs/libapreq2/group__apreq__xs__cookie.html#httponly -James IMPORTANT NOTICE REGARDING THIS ELECTRONIC MESSAGE: This message is intended for

RE: set environment variables in tomcat

2011-05-27 Thread James B. Muir
In order to pass an environment variable via mod_jk to tomcat you need to set the "JkEnvVar" in your jk.conf file. For example, JkEnvVar REMOTE_USER %{REMOTE_USER} -James From: Kim Goldov [mailto:kgol...@gmail.com] Sent: Thursday, May 26, 2011 8:24 PM To: modperl@perl.

Apache2::Cookie and cookie names

2011-05-19 Thread James B. Muir
he cookie jar: my $cookie_jar = eval { Apache2::Cookie::Jar->new($r) } || $@->jar; I'm wondering if there might be something as succinct and elegant as this for getting the cookie names. -James IMPORTANT NOTICE REGARDING THIS ELECTRONIC MESSAGE: This message is intended for the us

RE: libapreq2 build to /usr/lib64

2011-04-29 Thread James B. Muir
Ah, that looks simpler. Thanks. -James -Original Message- From: Morten Bjørnsvik [mailto:morten.bjorns...@experian-da.no] Sent: Friday, April 29, 2011 3:01 AM To: James B. Muir; modperl@perl.apache.org Subject: RE: libapreq2 build to /usr/lib64 Hi I use the following when compiling

RE: libapreq2 build to /usr/lib64

2011-04-28 Thread James B. Muir
expat" ./configure --with-apache2-apxs= /usr/sbin/apxs --enable-perl-glue --with-perl=/usr/bin/perl --libdir="/usr/lib64" make && make test && make install -James -Original Message- From: Randolf Richardson [mailto:rand...@modperl.pl] Sent: Thursday, April 28, 2011

libapreq2 build to /usr/lib64

2011-04-28 Thread James B. Muir
preq2.so .3.8.0* lrwxrwxrwx 1 root root 18 Apr 28 10:43 /usr/lib/libapreq2.so.3 -> libapreq2. so.3.8.0* -rwxr-xr-x 1 root root 204072 Apr 28 10:43 /usr/lib/libapreq2.so.3.8.0* So I think my build script needs something. What am I missing? -James IMPORTANT NOTICE REGARDING THIS ELECTRONIC

Can't locate object method "STORE" via package "APR::Request::Param::Table"

2011-02-25 Thread James B. Muir
uot;APR::Request::Param::Table" My reading suggests to me that it is not possible to modify the value of, or remove, a parameter in the body of a POST request and pass that modified body to mod_jk. Is this true? -James IMPORTANT NOTICE REGARDING THIS ELECTRONIC MESSAGE: This message is inten

RE: POST method and PerlAuthenHandler

2011-02-02 Thread James B. Muir
I've got Apache2::Request working and POST requests are working very nicely. Thanks for steeing me in the right direction! -James From: Joe Schaefer [joe_schae...@yahoo.com] Sent: Thursday, January 27, 2011 11:12 AM To: James B. Muir; modperl@perl.apach

RE: build of libapreq2 fails

2011-01-31 Thread James B. Muir
c not in mapfile There are alot more of these warnings that I've omitted to shorten this already lengthy post. Thanks for any insights into these messages. -James From: John D Groenveld [jdg...@elvis.arl.psu.edu] Sent: Thursday, January 27, 2011 6:

build of libapreq2 fails

2011-01-27 Thread James B. Muir
L --with-apache2-apxs=/usr/local/apache2/bin/apxs gmake Thanks for any input on this matter, -James IMPORTANT NOTICE REGARDING THIS ELECTRONIC MESSAGE: This message is intended for the use of the person to whom it is addressed and may contain information that is privileged, confidentia

POST method and PerlAuthenHandler

2011-01-27 Thread James B. Muir
e a standard way to do this kind of thing but I have been unable find the answer after several hours of reading. Thank you for your help. -James IMPORTANT NOTICE REGARDING THIS ELECTRONIC MESSAGE: This message is intended for the use of the person to whom it is addressed and may contain informat

Re: mp2] [mod_proxy] [filter] mod_proxy is not playing with my request filter.

2010-08-26 Thread James Lee
why its doing what it is doing! It's just frustrating because it sounds like something I should be able to do. James. 2010/8/26 Torsten Förtsch > On Thursday, August 26, 2010 18:28:47 James Lee wrote: > > A few comments below. > > The goal of the code is to fill up $bb. N

Re: mp2] [mod_proxy] [filter] mod_proxy is not playing with my request filter.

2010-08-26 Thread James Lee
y help would be much appreciated. Thanks, James. PerlModule Example::Echo PerlModule Example::ConnectionFilter PerlInputFilterHandler Example::ConnectionFilter::forward_get_as_post SetHandler modperl PerlResponseHandler Example::Echo package Example::Echo; use strict; use warning

Re: mp2] [mod_proxy] [filter] mod_proxy is not playing with my request filter.

2010-08-25 Thread James Lee
again. On 25 August 2010 07:12, André Warnier wrote: > James Lee wrote: > >> Hi mod_perl community, this is my first post so be gentle with me. >> >> I'm trying to create something which translates a GET request into a POST >> (creating the body dynamicall

mp2] [mod_proxy] [filter] mod_proxy is not playing with my request filter.

2010-08-24 Thread James Lee
close enough to help. Config below ... I've not included perl code as this message is quite long anyway. Please let me know if it would be helpful. Thanks in advance, James. *** httpd.conf extract: PerlInputFilterHandler Sample::RequestTweaker::change_get_to_post PerlInputF

Re: Ways to scale a mod_perl site

2009-09-17 Thread James Smith
Igor Chudov wrote: Guys, I completely love this discussion about cookies. You have really enlightened me. I think that letting users store cookie info in a manner that is secure (involves both encryption and some form of authentication), instead of storing them in a table, could possibly result

Re: Would like mod_perl 1.29 to include more information on fatal errors

2009-09-04 Thread James Olsen
ymbol table for a module, but the module wouldn't be in %INC or seemingly in memory at all (since we got an 'Undefined subroutine' error when mod_perl tried to invoke the "handler" method)? Please, if anyone has more ideas on things to try, we'd be delighted to

Would like mod_perl 1.29 to include more information on fatal errors

2009-09-03 Thread James Olsen
information as well as the original error. Any guidance on patching/hacking mod_perl 1.29 to have more verbose error messages would be greatly appreciated. -- James Funny quotes: "There are 10 types of people in the world. Those who understand binary, and those who don't." -- Unknown "A computer once beat me at chess, but it was no match for me at kick boxing." -- Emo Philips

Re: Debugging seg faults in Apache mod_perl

2009-08-17 Thread James Smith
Phillipe, Thnx, that seems to have solved the problem - I'd been slurping in the page template file with a $/.. it also explains why switching from using perl-script to modperl as the handler type also resolved the issue... James On Tue, 18 Aug 2009, Philippe M. Chiasson wrote: On

Re: Debugging seg faults in Apache mod_perl

2009-08-17 Thread James Smith
0x7f17ef71360d in main () from /usr/sbin/apache2 On Mon, 17 Aug 2009, James Smith wrote: I have two handlers, one a response handler and a second an output filter. If either of these handlers run then they run fine for any number of requests, if I have both of these handlers I get an untraceable seg fault

Debugging seg faults in Apache mod_perl

2009-08-17 Thread James Smith
ation fault (11) This appears to be before the page handler executes... If I turn off the output filter - everything is OK for all requests. Any suggestions on how I debug this... it makes life so much easier if I can handle all requests this way (and it seems to be the apache way) James -

Apache output filters and mod_deflate...

2009-08-11 Thread James Smith
Has anyone had experience of Apache output filters and mod_deflate - I'm getting some strange behaviour if the apache output filter is generating multiple buckets... and am looking for someone to give me some advice - as using output filters and mod_deflate would be the perfect solution for the

Re: mod_perl Output Filters and mod_deflate

2009-08-06 Thread James Smith
André Warnier wrote: .. and sorry again for sending directly to you. I keep forgetting this list doesn't set this automatically. James Smith wrote: Has anyone had experience of using mod_perl OutputFilters with mod_deflate, I've been banging my head against a brick wall today I

mod_perl Output Filters and mod_deflate

2009-08-05 Thread James Smith
Has anyone had experience of using mod_perl OutputFilters with mod_deflate, I've been banging my head against a brick wall today I've learnt a lot about bucket brigades - but for every two steps forward it's one step back... Scenario: static page - being wrapped with an output filter - w

Re: AC US 2008

2008-11-06 Thread James Smith
Presenting Friday afternoon. -- James Smith <[EMAIL PROTECTED]> Texas A&M University, College of Liberal Arts Digital Humanities Lead Developer 979.845.3050

  1   2   >