ANNOUNCE: Apache2::Filter::TagAware

2007-10-21 Thread Adam Prime
The uploaded file Apache2-Filter-TagAware-0.01.tar.gz has entered CPAN as file: $CPAN/authors/id/A/AP/APRIME/Apache2-Filter-TagAware-0.01.tar.gz size: 9124 bytes md5: dbf01588e4030b70d449654fb98deed8 Nearly a year after this thread: http://marc.info/?l=apache-modperl&m=11633081710

Re: FYI

2007-10-22 Thread adam . prime
It's been broken at least a week. Quoting Bill Whillers <[EMAIL PROTECTED]>: Maybe someones working? I'm just getting generic Internal Server Errors when searching on anything like "handler". http://perl.apache.org/search/swish.cgi?query=handler&sbm=&submit=search On Monday 22 October 200

Re: Migrating from mod_perl 1.x to mod_perl 2.x

2007-10-23 Thread adam . prime
http://perl.apache.org/docs/2.0/user/porting/porting.html $r->method should be a part of Apache2::RequestRec though. what version of mod_perl 2 are you using? Adam Quoting Daniel Corbe <[EMAIL PROTECTED]>: Hello, We're trying to upgrade a web application from Apache 1.3.x to Apache 2.2.x(

Re: mod_perl MVC framework.

2007-10-24 Thread adam . prime
there's a list here: http://perl.apache.org/products/app-server.html Adam Quoting Tyler Bird <[EMAIL PROTECTED]>: Hi List, Hey I was wondering if there was any MVC framework that anybody on this list could point me to that work work well with mod_perl. We are having difficulty finding a goo

Re: Modifiable APR::Request::Param::Table

2007-11-25 Thread Adam Prime
Perrin Harkins wrote: >> Get the request parameters using the tied APR::Request::Param::Table object (which is returned by Apache2::Request->new($r)->param in scalar context) as well as being able to modify the request parameters in the tied APR::Request::Param::Table object. Yes, but why? Th

DBD::Sybase / freetds / Apache::DBI / ?

2007-11-28 Thread adam . prime
We have a long standing problem pulling data from ntext fields in a server running MSSQL 2000, which i always assumed was a problem with freetds and or DBD::Sybase. However, I've actually done some investigation today, and i've discovered that the particular code that's causing problems a

Re: DBD::Sybase / freetds / Apache::DBI / ?

2007-11-28 Thread adam . prime
This turned out to just be a misconfiguration more than anything else. the dsn was getting changed by some rogue code, and as a result it wasn't defined in the freetds.conf, however, the new servername resolved fine through DNS so it still connected ok. The problem was that it defaulted t

Re: headers_out

2007-12-01 Thread adam . prime
Roberto C. Sánchez wrote: Have you tried adding "PerlModule Apache2::compat" in your httpd.conf? Or you can use $r->headers_out. $r->header_out is no longer supported. see: http://perl.apache.org/docs/2.0/user/porting/compat.html#C__r_E_gt_err_header_out_ Adam

Re: dynamic config

2007-12-04 Thread Adam Prime
I think that to truly change the ServerAlias in all your processes you need to restart the server, but i could very well be wrong. However, this is something i've wanted to do too, and the way i had been thinking about getting around an inability to add ServerAliases in the short term was to s

Re: Can output filter return "page not found"?

2007-12-15 Thread Adam Prime
If you're using the bucket brigade API you'd have to intercept the headers and modify them there. You might have an easier time doing something like this using the stream API, but i don't really know, just taking a shot in the dark. I'd think that it's certainly possible though, somehow. Th

Re: Can output filter return "page not found"?

2007-12-16 Thread Adam Prime
[EMAIL PROTECTED] wrote: Sounds like something I would *not* do. If you are going to return a 404, why not do it as soon as possible. Generating data only to return a 404 sounds like useless extra work unless you are caching the same data for future requests. I agree, if you don't want to much

Re: PerlAccessHandler problems

2007-12-21 Thread Adam Prime
What does the error_log say? Adam Tad Johnston wrote: I'm having problems trying to use an access handler within mod_perl2. If I have it in the conf file it returns a 500 Internal Server Error and if I don't include the PerlAccessHandler line, it runs the page just fine. What's happening is

Re: Find the values of Apache2::Const

2007-12-22 Thread Adam Prime
Boysenberry Payne wrote: I only ask because I tried a $r->status(Apache2::Const::OK) and got a 500 returned in the header even though my handler returned with Apache::Const::OK also... To avoid the 500 header I had to do $r->status(200); I imagine the status code isn't going to change too so

Re: re-factoring 'print' for $r

2007-12-22 Thread adam . prime
Quoting Perrin Harkins <[EMAIL PROTECTED]>: On Dec 22, 2007 5:21 PM, Jonathan Vanasco <[EMAIL PROTECTED]> wrote: On Dec 22, 2007, at 4:47 PM, Perrin Harkins wrote: > By the way, if you just call print() normally it should all be grabbed > by mod_perl anyway. Is there some reason you need to ca

Re: two common questions

2008-01-07 Thread Adam Prime
lists user wrote: 1. Do you run common web program under modperl handlers? or just run them under Registry? For me I mostly wrote web scripts with CGI methods like using CGI.pm and CGI::Session, and run them under Modperl::Registry. I don't know if there's a site which is fully run by pure modper

Re: question on startup.pl overriding perl search path

2008-01-18 Thread Adam Prime
c chan wrote: I use "PerlConfigRequire /var/www/html/mypath/startup.pl" in httpd.conf to recompile all the CGIs. Inside startup.pl, I added the line: use lib qw(. mylib); To me amazement, after all the CGI is precompiled, they start to look into the "." and "mylib" path for loading Perl Modu

[RFC] Apache2::DirBasedHandler

2008-01-19 Thread adam . prime
I've found myself writing similar bits of code repeatedly, and figure what i'm doing is probably common enough that something like this could have a place on CPAN. I'm mostly curious about if the name is appropriate. This is just a base class designed to speed the implementation of han

Re: [RFC] Apache2::DirBasedHandler

2008-02-06 Thread adam . prime
The first version of this is now on CPAN, if anyone is interested in it. Adam Quoting [EMAIL PROTECTED]: I've found myself writing similar bits of code repeatedly, and figure what i'm doing is probably common enough that something like this could have a place on CPAN. I'm mostly curious abou

Re: [RFC] Apache2::DirBasedHandler

2008-02-10 Thread adam . prime
I uploaded a .02 release last night which i think will make something like this even easier to accomplish. This version adds a function called uri_to_function, which takes a RequestRec (or derived) object, and an array of uri_bits and returns a function name that should be used to to handl

Re: Running a mod_perl script at the domain root

2008-02-10 Thread Adam Prime
There are a couple of ways you can tackle this sort of thing. 1) You can modify TestSite to return DECLINED for any request that you want to be handled by the filesystem rather than your handler. ie if $r->uri =~ m|\css$| { return Apache2::Const::DECLINED; } 2) If you've got all your CSS

Re: Periodic random script failures - Need pointers

2008-03-04 Thread Adam Prime
André Warnier wrote: Hi. Don't take this as an expert response, but very superficially, I can think of one kind of circumstance where "this happens randomly but periodically" : if it would happen, for instance, at the first execution of the script by a "new" apache child, freshly started. T

Re: [a little OT] mod_proxy 502 errors in dual apache setup

2008-03-05 Thread adam . prime
502's show up when you have more connections from the front end to the back end that it can service. The proxy server has a timeout [1], and if it doesn't get a response within that time frame you get a 502. You can create a custom error document on your front end for 502's to make them a

opting out of deflate mid request

2008-03-07 Thread adam . prime
I have a particular cgi, running under registry that uses Content-Disposition: attachment. Unfortunately, it appears that IE6 ignores the header if the page is gzipped. So I was wondering if there was an easy way to keep the deflate filter from running on a per request basis. I've work

Re: perl at apachecon

2008-04-02 Thread adam . prime
Quoting Brian Millett <[EMAIL PROTECTED]>: Wow, not many proposals. :-( It's not too late to submit more (you've got one day left till the deadline). Adam

Re: [RELEASE CANDIDATE] mod_perl-2.0.4 RC1

2008-04-02 Thread adam . prime
make test passes on Apache/2.2.4 mod_perl/2.0.4-rc1 Perl/v5.8.8 Apache/2.2.8 mod_perl/2.0.4-rc1 Perl/v5.8.8 Adam Quoting "Philippe M. Chiasson" <[EMAIL PROTECTED]>: The mod_perl 2.0.4 release candidate 1 "Works with Perl 5.10" is ready. It can be downloaded here: http://www.apache.org/~goz

Re: undefined subroutine: get_server_description, get_server_banner

2008-04-08 Thread adam . prime
Quoting Jeff Armstrong <[EMAIL PROTECTED]>: Folks, indicates that I should be able to: $description = Apache2::ServerUtil::get_server_description(); however, I find that Apache2::ServerUtil::get_se

Re: Handing over the POST input to a virtual included part?

2008-04-14 Thread adam . prime
I think that virtual includes are handled with Apache sub-requests, so you might be able to get it the post data through $r->prev. Worth a shot anyway. Adam Quoting Torsten Foertsch <[EMAIL PROTECTED]>: Hi, is it possible to hand over the POST input of a SSI document to a virtual includ

Re: Template::Toolkit and mod_perl2?

2008-04-14 Thread adam . prime
This is a guess, but are you running under SetHandler modperl, and then trying to print $your_page. If that's the case, either use $r->print(), or change to SetHandler perl-script. Adam Quoting Kirk <[EMAIL PROTECTED]>: I'm trying to do some basic conversions to an old site that uses TT,

Re: Access to Server and Request objects under Registry

2008-04-16 Thread adam . prime
my $r = shift; at the top of your file running under registry should work. You can also use Apache->request in mp1, or Apache2::RequestUtil->request in mp2 (if you're using the prefork mpm) Adam Quoting Artem Kuchin <[EMAIL PROTECTED]>: Hello! Is there any way to access server and requ

Re: filter->remove

2008-04-18 Thread adam . prime
Quoting Torsten Foertsch <[EMAIL PROTECTED]>: On Thu 17 Apr 2008, woinshet abdella wrote: Here an output example for text/plain: Filter Chain: modperl_request_output <-- the first PrintFilterChain modperl_request_output <-- RemoveNextFilterIfNotTextHtml includes m

Re: Access to Request Body

2008-04-28 Thread adam . prime
Quoting Tim Gustafson <[EMAIL PROTECTED]>: Hello, I'm writing a mod_perl logging module, and I can't seem to find anywhere in the documentation that talks about how I can access the request body (basically, the POST data) of a request during the logging phase. Is this not possible? do you wa

RE: Access to Request Body

2008-04-28 Thread adam . prime
Quoting Tim Gustafson <[EMAIL PROTECTED]>: Hrmm, that doesn't seem to work. In my code, I have: print $fh $r->body . "\n"; And in my error log, I get: Can't locate object method "body" via package "Apache2::RequestRec" at /var/www/lib/Log.pm line 31. It's part of Apache2::Request, see the

Re: Apache2::Request

2008-05-23 Thread adam . prime
Quoting xyon <[EMAIL PROTECTED]>: Shouldn't it be: sub my_handler { my $r = shift; my $req = Apache2::Request->new($r, POST_MAX => "1M"); ... Provided that you've actually installed libapreq (http://httpd.apache.org/apreq/), that should work.

mod_perl BOF at YAPC::NA

2008-05-31 Thread Adam Prime
YAPC::NA is only a few weeks away, and I stumbled upon the beginning of plans for a BOF there. There's not a whole lot on the signup page yet, but if you're interested (and going), you should signup. The wiki page for the BOF is here: http://conferences.mongueurs.net/yn2008/wiki?node=mod_perl

Re: wrote Authen module dealing with cookies : now POST requests get corrupted. Any advice ?

2008-06-21 Thread Adam Prime
Dami Laurent (PJ) wrote: Hi everybody, I recently wrote an extension to Apache2::AuthenNTLM in order to store the NTLM authentified username in a cookie (module _http://search.cpan.org/dist/Apache2-AuthenNTLM-Cookie/_). Now I found out that this module has a critical bug : the content of P

Re: mod_perl: performance tips

2008-06-25 Thread adam . prime
Quoting Perrin Harkins <[EMAIL PROTECTED]>: On Wed, Jun 25, 2008 at 11:19 AM, Christopher Taranto <[EMAIL PROTECTED]> wrote: Try here: http://www.modperlbook.org/ Specifically - Part II: mod_perl Performance Yes, read that, profile your code, and then ask for help with specific slow parts.

Re: mod_captcha

2008-06-25 Thread adam . prime
Quoting Aaron Collins <[EMAIL PROTECTED]>: Hello, I'm trying to write a perl based mod_captcha using the recaptcha service, I was wondering is someone could tell me which handler I should use that would allow me to have mod_perl intercept a request going to a specific location and if it i return

mod_perl users survey

2008-07-07 Thread adam . prime
At the impromptu mod_perl BOF at YAPC::NA, Fred Moyer any myself hacked together a short mod_perl survey to help identify the current needs of mod_perl users. It was inspired by the Perl survey done last year by Kirrily Robert. (http://perlsurvey.org). If you read dev@ and already filled t

Re: mod_perl users survey

2008-07-08 Thread adam . prime
If anyone attempted to fill this out recently and got an message about the survey being closed, that problem has been resolved and you should be able to fill it out again. Thanks to everyone who has filled it out. Adam Quoting [EMAIL PROTECTED]: At the impromptu mod_perl BOF at YAPC::N

some flawed benchmarks

2008-07-09 Thread adam . prime
A couple of months ago i was going through slides from gozers "From CGI to mod_perl 2.0, Fast!" talk, which has some benchmarks comparing CGI, perlrun and registry to each other. At which point i realized that i've never really known how much faster using straight handlers is than using on

Re: some flawed benchmarks

2008-07-10 Thread Adam Prime
I deliberately removed CGI from the script because i personally would never use CGI in something written to be run as straight handlers, and it obviously wouldn't make any sense to use CGI in the CGI emulations, and then not use it in the Handler version. Not using heredoc's shouldn't really h

Re: some flawed benchmarks

2008-07-10 Thread Adam Prime
Andy Armstrong wrote: It would be interesting to see how FCGI compares to those numbers. I don't know anything about fastcgi, but i suppose i could look at that also this evening. Adam

Re: some flawed benchmarks

2008-07-10 Thread adam . prime
Quoting Perrin Harkins <[EMAIL PROTECTED]>: Note that CGI and FastCGI don't need the proxy frontend. The only reason I did it that way was because that's how apache was already set up on my laptop, and i didn't feel like dorking around with it too much. I could certainly change it around

Re: some flawed benchmarks

2008-07-10 Thread adam . prime
i've changed some stuff and added fastcgi to the mix. i've given numbers through the proxy as well as without it for all the mod_perl examples I've modified the scripts so that they producing the same amount of output for each example (except cgi, which adds a content-length header, so

Re: Problem getting started

2008-07-12 Thread Adam Prime
John M. Dlugosz wrote: I'm trying to use mod_perl on Debian Etch. I was looking at "practical mod_perl" book, but it appears that much has changed in mod_perl 2.0 so the second example doesn't work at all. The first example, which is just two print statements to give a minimal header and con

Re: Problem getting started

2008-07-12 Thread adam . prime
Please include the list on replies, so the archives are complete. Quoting "John M. Dlugosz" <[EMAIL PROTECTED]>: Adam Prime adam.prime-at-utoronto.ca |mod_perl mailing list| wrote: For the Apache2::Request problem you're running: use Apache2::Request; $req = Apa

Re: persistent database connection - Apache::DBI with mod_perl

2008-07-16 Thread adam . prime
Quoting Chris Zhuang <[EMAIL PROTECTED]>: Hi, However, when I run an CGI script on the IE 6, it cannot find $ENV{MOD_PERL} and start new DBI connection. foo.cgi #!c:/perl/bin/perl.exe -d use DBI; use CGI qw(:standard); my $dbh = DBI->connect("dbi:Oracle:host=xx

Re: installed mod_perl, but no MOD_PERL in ENV

2008-08-06 Thread adam . prime
Quoting Jayson Hill <[EMAIL PROTECTED]>: I just compiled and installed mod_perl 2.0.3 for apache Apache/2.2.8 Did a LoadModule perl_module modules/mod_perl.so in httpd.conf No errors and get the following in logs when bounce httpd service: [Tue Aug 05 22:44:03 2008] [notice] caught SIGTERM, shu

intermittent segfaults, and weird messages in the error log

2008-08-12 Thread adam . prime
I've been getting intermittent segfaults for a couple of days now on our dev server, and i'm not really sure why. I can more or less reproduce them, but it's a hit or miss process. It only seems to affect 2 handlers for some reason, and based on what i'm seeing it seems like one is some

Re: mod_perl users survey

2008-09-03 Thread adam . prime
One final call for responses. It'd also be appreciated if you could forward the survey on to your local Perl Mongers Groups to help us reach some people that might be a little more disconnected from the mod_perl community. We've got over 300 responses so far, thanks to everyone that has

Re: question on downloading CGI

2008-09-05 Thread adam . prime
Quoting [EMAIL PROTECTED]: Hello, I want to generate a data file which should be downloaded by clients. Rather than generate this file and put it in a web dir and tell clients to download it, is there any way to generate the content dynamicly and put it to cients? I mean I don't want to generat

Re: How to extract name/value pairs from the query string?

2008-09-23 Thread adam . prime
Quoting Fred Moyer <[EMAIL PROTECTED]>: See Apache2::Request, it mirrors the CGI param api. In case you dont know, Apache2::Request is part of libapreq2 (http://httpd.apache.org/apreq/). IMO, using it is the best way to achieve what you're trying to do if you're developing for mod_perl o

Re: Apache::DBI 1.07 requires global $r - workaround?

2008-09-24 Thread adam . prime
1.07 is broken. PGOLLUCCI said it was going to get reverted, but apparently it hasn't happened. see http://rt.cpan.org/Public/Bug/Display.html?id=36346 Adam Quoting Perrin Harkins <[EMAIL PROTECTED]>: On Wed, Sep 24, 2008 at 12:39 PM, Fred Moyer <[EMAIL PROTECTED]> wrote: I went ahead and

Re: live and dev versions of a module on the same server

2008-10-03 Thread adam . prime
Quoting John Drago <[EMAIL PROTECTED]>: There are a few options: 1--- Run your VirtualHost with PerlOptions +Parent. This gives each VirtualHost its own Perl interpreter. This is mod_perl 2 specific, and until right now i personally was completely unaware of it. Has anyone actually used it

Re: questions on Apache2::Connection

2008-10-11 Thread Adam Prime
André Warnier wrote: Hi gurus. Do I understand this correctly that if in a Perl Handler i get my $c = $r->connection(); then $c is the object that represents the persistent TCP/IP connection between the browser and the server, in case there is "keep-alive" going on ? > Now lets say that I cre

Re: auto configuration

2008-10-12 Thread adam . prime
Quoting valerio crini <[EMAIL PROTECTED]>: Hallo, I'm trying to use modperl2's feature 'auto configuration' but without success. Manual says in http://perl.apache.org/docs/general/testing/testing.html#Auto_Configuration that in order to add automatically new items to location is necessary add

Re: requests and sub-requests

2008-10-12 Thread Adam Prime
André Warnier wrote: Torsten, Many thanks for the excellent information, I will ponder that. More below, but one more question here : Where does $r->internal_redirect "live" (in which package) ? I am having trouble finding it. http://perl.apache.org/docs/2.0/api/Apache2/SubRequest.html#C_inte

Re: mod_perl2 start one script twice

2008-10-22 Thread Adam Prime
CthuMP wrote: I have follow simple script: !#/usr/bin/perl print "Content-Type: text/html\n\n"; print "Counter: " . (++$counter) . "\n"; print time(), "\n"; sleep(20); print time(), "\n"; Starting that script twice in two different browser windows gives me same results. In second window I st

Re: PerlAuthenHandler & phpMyAdmin

2008-10-22 Thread Adam Prime
Usually, if you run into problems that only affect POST requests, that means that somewhere earlier in the apache cycle there is something consuming the posted data. Looking at the code you've posted though, it's not immediately obvious that that is the problem, nor is it obvious that it's act

reading apache configuration via mod_perl

2008-10-23 Thread Adam Prime
At $work we have a situation where large chunks of configuration are being created with PerlSections, in combonation with mod_macro. There is a desire to see what exactly that all get mapped to in a more traditional Apache configuration like style. PerlSections->dump kind of does what we wa

Re: reading apache configuration via mod_perl

2008-10-23 Thread Adam Prime
Michael Peters wrote: Adam Prime wrote: Is it theoretically possible to actually generate something like that? > Any ideas? I'm definitely ignorant enought about Apache's internals to be able to answer that question. And the following doesn't really answer your question,

Re: reading apache configuration via mod_perl

2008-10-23 Thread Adam Prime
Perrin Harkins wrote: On Thu, Oct 23, 2008 at 3:22 PM, Perrin Harkins <[EMAIL PROTECTED]> wrote: On Thu, Oct 23, 2008 at 2:55 PM, Adam Prime <[EMAIL PROTECTED]> wrote: PerlSections->dump kind of does what we want, except that it doesn't expand the macro's th

Re: Bug: APR::Finfo->protection is not (stat $filename)[2]

2008-10-29 Thread Adam Prime
Philip M. Gollucci wrote: Joachim Zobel wrote: Hi. If stat returns 777 (octal), protection returns 0x777 (hexadecimal). The documentaion claiming this as the same value should be fixed. If you can submit a patch or point to this documentation, I'll be glad to update that for you. I'm guess

Re: $r->status no correct

2008-10-29 Thread Adam Prime
Michael Peters wrote: But when I make the request to just /foo (instead of /foo/index.pl) I only get this in my error log: URI: /foo/ STATUS: 200 you've said to /foo, but your error_log is saying /foo/. What's going on there? mod_dir redirecting a bare directory request? The stranger par

Re: $r->status no correct

2008-10-29 Thread Adam Prime
Michael Peters wrote: The client always sees the 500 which is what the access log reports as well. It's just that in the CleanupHandler it comes back as 200 for /foo/, but 500 for /foo/index.pl. That really is strange. Perhaps the status is getting mangled at the end of the Log phase or some

Re: $r->status no correct

2008-10-29 Thread Adam Prime
Michael Peters wrote: The client always sees the 500 which is what the access log reports as well. It's just that in the CleanupHandler it comes back as 200 for /foo/, but 500 for /foo/index.pl. Just to be clear, when you do this: GET /foo/ do you get this in the error log? URI: /foo/ind

Re: $r->status no correct

2008-10-29 Thread Adam Prime
Ryan Gies wrote: Not a permanent home, but here is module which will slip in and give you similar messages. http://dev.livesite.net/Apache-Trace.pm just put it in a dirctory named 'Apache2' in your @INC and add: PerlPostReadRequestHandler Apache2::Trace->http_phases You should package

Re: Modperl memory exceedance under mason webmail

2008-11-02 Thread Adam Prime
Jim Donovan wrote: > Hi, > > We run a webmail system which was written in Mason. It won't let you download > or read large attachments (~5MB upwards). This seems to be some sort of > memory allocation error. > > If you watch the server with top(1) while downloading a 2MB attachment, you > can se

Re: Remove Perl*Handler from subfolder

2008-11-03 Thread Adam Prime
Jan-Aage Frydenbø-Bruvoll wrote: Example: SetHandler perl-script PerlResponseHandler myreponsehandler PerlAccessHandler myaccesshandler SetHandler default-handler # how to disable the PerlAccessHandler? As you can see I've found how to disable/re-set the response handler, but th

Re: mod_perl survey results

2008-11-10 Thread Adam Prime
André Warnier wrote: The responses there are indeed a bit scary. It feels like we're a dying breed. I believe this is to a large extent a "marketing issue" for perl in general, and mod_perl by extension, with regard to the younger programmers generation. At least in various European countries

Re: Substituting URLs in PerlOutputFilterHandler

2008-11-10 Thread Adam Prime
Puneet Lakhina wrote: Hi, I am trying to write a handler that modifies the content of the page based on a regex match. essentially im trying to modify tags in the outgoing HTML pages. Now I am trying to do this using PerlOutputFilterHandler. I have the following questions: a) Is this the right

Re: mod_perl survey results

2008-11-10 Thread Adam Prime
Steven Siebert wrote: I'm relatively new to mod_perl - moving to a new job who's application is solely written in it. This is a return to Perl for me, having worked in PHP, Java, and .NET since Perl 4. As I'm learning to love mod_perl and Perl in general, perhaps it's a good time for me to cont

Re: mod_perl survey results

2008-11-10 Thread Adam Prime
André Warnier wrote: Maybe this is the time to ask. I am using Linux Debian, and getting Apache 2, perl and mod_perl 2 from there (apt-get). I have never been quite sure which mpm the packager decided to configure, as the apache2.conf contains parameters for prefork, pthread and perchild. So,

mod_perl survey results

2008-11-09 Thread Adam Prime
The results of the mod_perl survey that Fred Moyer and I conducted can be found at the following link: http://kabob.ca/mod_perl_survey/ Here's a quick list of obvious (though arguable) conclusions: - a lot of people have switched to mod_perl 2, mod_perl 1 is still very significant. - most of the

Re: [mp2.0.4] t/hooks/authen_basic (Wstat: 0 Tests: 4 Failed: 1)

2008-11-10 Thread Adam Prime
Chen, Peter wrote: Hi, I have been trying to install mp2.0.4. In addition to having problems with authen_basic, I am also getting a test fail for t/hooks/authz as well. My perl Makefile command is as follows: *perl Makefile.PL MP_APXS=/home/Intranet/ssiweb/apache/bin/apxs* Here

Re: [mp2.0.4] t/hooks/authen_basic (Wstat: 0 Tests: 4 Failed: 1)

2008-11-10 Thread Adam Prime
Chen, Peter wrote: Apache isn't starting up correctly? I already have the apache server running. Will this affect the configuration? When I type the command "ps -eaf | grep apache", it seems to indicate that apache is running. Please CC the list on your replies, it has much more wisdom than I

Re: mod_perl survey results

2008-11-11 Thread Adam Prime
Perrin Harkins wrote: It's the same with mod_perl: you can restart your backend server without touching the frontend proxy server. It's possible that some FastCGI implementations have a truly seamless way to do this though, holding requests while the backend restarts. I haven't played with it

Re: Apache doesn't execute perl scripts

2008-11-12 Thread Adam Prime
Mustafa Aldemir wrote: AddType application/x-perl-httpd .pl AddHandler perl-script .pl LoadModule perl_module /usr/lib/apache2/modules/mod_perl.so LoadModule cgi_module /usr/lib/apache2/modules/mod_cgi.so AllowOverride None Options FollowSymLinks +ExecCGI -MultiViews +SymLinksIfOwnerMatch

Re: [mp2] build (make) error and 2 questions

2008-11-13 Thread Adam Prime
[EMAIL PROTECTED] wrote: Philip: but I liked the idea of a static build? Not just for operational performance, but for startup performance and perhaps for some possible better integration of the symbol tables for debugging? Are you saying that the 1.2 error cannot be worked around, and I sho

Re: Apache 1.3 -> 2.x portability

2008-11-14 Thread Adam Prime
Michael Peters wrote: Phil Carmody wrote: I'm currently running only Apache 1.3 (mod_perl 1.22) and am wondering what kinds of issues there might be if I were to want to migrate my server to Apache 2.x and mod_perl 2. Are there any things that I can do (or avoid) to make such a migration as cl

Re: How to reject requests before request body is sent?

2008-11-24 Thread Adam Prime
Thomas Lindgren wrote: Hi all, I'm using mod_perl2. I'd like to reject user requests, e.g., very large PUTs, after examining headers and authorizing the user, but before the request body is read. Quota checking could be an example of where this is useful. However, at this time, even if I re

Re: Best filesystem type for mod_cache in reverse proxy?

2008-11-24 Thread Adam Prime
Neil Gunton wrote: It seems like this might have something to do with mod_deflate, which I am using in combination with mod_disk_cache. This page gives a clue that there might be a problem with the way files are cached when these modules are both enabled: http://www.digitalsanctuary.com/tec

Re: Help -- how can I make the Apache process die at the end of the request?

2008-12-04 Thread Adam Prime
Victor Danilchenko wrote: I need to do it forcibly, no matter what happens during the request. I have to slightly relax security constraints to call an unusual subrequest, and since I cannot guarantee that the cleanup code will be reached (what if the subrequest is terminated by the client,

Re: [mp2] where did Apache2::Cookie go in freebsd?

2008-12-09 Thread Adam Prime
Foo JH wrote: Hi all, I'm testing the latest mp2 stack on FreeBSD 7. While everything installs ok, I'm having difficulties locating the Apache2::Cookie module. I understand Apache2::Cookie is part of the libapreq2 package. I installed that via ports, and the installation did not report errors.

solaris, perl 5.8.8, apache 1.3.41, mod_perl 1.30, t/internal/auth.t failure

2008-12-09 Thread Adam Prime
Some co-workers were trying to build mod_perl with the setup mentioned in the subject line, and the 2nd test in t/internal/auth.t was failing. This test is really short (and weird IMO) but all it does it issue to requests to the server to test basic auth. the first one should pass dougm and m

Re: [mp2] where did Apache2::Cookie go in freebsd?

2008-12-11 Thread Adam Prime
Foo JH wrote: >> Path:/usr/ports/www/libapreq2 >> Path:/usr/ports/www/p5-libapreq >> Path:/usr/ports/www/p5-libapreq-static >> Path:/usr/ports/www/p5-libapreq2 >> You'd want either p5-libapreq2 or p5-libapreq WITH_MODPERL2=yes > > Thanks. Does the fact that libapreq can be installe

Re: which reverse proxy for modperl?

2008-12-13 Thread Adam Prime
William A. Rowe, Jr. wrote: Jeff Pang wrote: Hello, I have a modperl application on a host which is running with heavy load. I have the plan to put a reverse proxy before it. There are two well known reverse proxy software, one is Squid, another is nginx. Which one is better for modperl applica

Re: Keep-Alive, Apache processes and $r->connection

2008-12-21 Thread Adam Prime
André Warnier wrote: Hi. Am I right, or horribly wrong, to assume that in case of a "keep-alive" client connection, the multiple requests sent over that connection will be processed by the same Apache "process" (child or thread) ? I am assuming the above, from the fact that there exists a $r

Re: Bug#509457: [BUG] mod_perl2 test failures (when building Debian package)

2008-12-23 Thread Adam Prime
Philip M. Gollucci wrote: Niko Tyni wrote: On Mon, Dec 22, 2008 at 10:47:18AM -0600, Gunnar Wolf wrote: The attached patch works around the problem by providing a credentials() wrapper too. It's probably not quite correct, but the tests pass with this on both libwww-perl 5.813 and 5.822. Commi

Re: preserving request body across redirects

2008-12-29 Thread Adam Prime
Mark Hedges wrote: The question is, since the handler doing the preservation and installing the input filter also instantiates an Apache2::Request object, when it gets to the response phase controller, will the response handler's Apache2::Request instance read the replaced data or the cached dat

Re: Quotes in uploaded filenames are not parsed correctly.

2009-01-02 Thread Adam Prime
Miles Crawford wrote: When you handle a multipart/form-data post with libapreq quotes in filenames are mishandled. For example, a post that includes: Content-Disposition: form-data; name="foo"; filename="break"here.jpg" Isn't that a malformed header? I would think that the internal '"' shou

Re: Quotes in uploaded filenames are not parsed correctly.

2009-01-05 Thread Adam Prime
Miles Crawford wrote: I agree it looks bogus, but safari and firefox send the header in that format. Not sure about IE since Windows does not allow files with a " in the name. I looked over the Content-Disposition header RFC but it does not seem to address escaping directly. Either way, it see

Re: Quotes in uploaded filenames are not parsed correctly.

2009-01-05 Thread Adam Prime
Miles Crawford wrote: That's actually what my production code does (where I originally found this error) and I was trying to simplify the testcase down for the bug report. ;) Theoretically I guess you should report the bug to apreq-...@httpd.apache.org. It does seem wrong, but to me it mostly

Re: APR, libapreq2, mod_perl2, APR::*, Apache2::*

2009-01-08 Thread Adam Prime
Michael Ludwig wrote: It is said in the thread referred to above that "the splitting of the APIs [...] is strange and confusing", and coming from mod_perl 1.0, I agree. But it probably has advantages as well. i think that comment about splitting the api was with respect to RequestRec, Request

Re: APR, libapreq2, mod_perl2, APR::*, Apache2::*

2009-01-08 Thread Adam Prime
Philip M. Gollucci wrote: Oh, but we started work for this in 2.4 of httpd for libapreq.so and mod_apreq.so for http core. cool after httpd 2.6/3.0 we might be able to swing the perl bindings peices. So where does that leave the perl binding between 2.4 and 3.0? Or will we all be running

Re: APR, libapreq2, mod_perl2, APR::*, Apache2::*

2009-01-08 Thread Adam Prime
Mark Hedges wrote: So where does that leave the perl binding between 2.4 and 3.0? Or will we all be running mod_parrot/mod_perl6 by then (which looks like it's made great progress since YAPC) Great, all code where '.' was the concatenator operator breaks, hurray. (?) You don't have to switch

Re: apache DBI Global $r object is not available

2009-01-12 Thread Adam Prime
Philip M. Gollucci wrote: Tech list wrote: I've used the SVN version, but still have this issue with Apache 2.2 on FreeBSD 7.1. Is there a fix? Surely there is, can you provide some more context. Is this issue actually fixed in SVN? http://rt.cpan.org/Public/Bug/Display.html?id=36346 My s

Re: PerlAddVar: documentation bug (regression?)

2009-01-13 Thread Adam Prime
Michael Ludwig wrote: > http://perl.apache.org/docs/2.0/user/config/config.html#C_PerlAddVar_ > > |PerlAddVar foo bar > |PerlAddVar foo bar1 > |PerlAddVar foo bar2 > | > | You would retrieve these values with: > | > | my @foos = $r->dir_config('foo'); > > This is wrong. You have to

Re: PerlAddVar: documentation bug (regression?)

2009-01-14 Thread Adam Prime
Michael Ludwig wrote: Adam Prime schrieb: Michael Ludwig wrote: http://perl.apache.org/docs/2.0/user/config/config.html#C_PerlAddVar_ | my @foos = $r->dir_config('foo'); This is wrong. You have to say: my @foos = $r->dir_config->get('foo'); Com

Re: [mp2] a way to map a uri to a physical path

2009-01-14 Thread Adam Prime
Foo JH wrote: > Hi all, > > I'm trying to find the class/ method which allows me to get the physical > path base on the uri. Something similar to Server.MapPath('/index.htm') > in ASP.NET. > > Any advise is appreciated. Thanks. $r->document_root . $r->uri but that won't actually tell you if tha

  1   2   3   4   >