Re: Apache::DBI - consistently encountering about a .00667% error rate

2024-10-07 Thread Adam Prime
You may need to dig into the code in DBI, or DBD::mysql to understand what is happening (or not happening) in the rare occasions that this occurs. Without the ability to consistently reproduce the issue all we can really do is look at the code and make educated guesses. Adam On Oct 7, 2024, at

Re: [RELEASE CANDIDATE] mod_perl-2.0.13 RC1

2023-08-22 Thread Adam Prime
Sorry for the massive delay on this. +1 all run on gentoo with 5.15.74 kernel perl 5.38.0 w/ apache 2.2.34 All tests successful. Files=245, Tests=2587, 145 wallclock secs ( 0.88 usr 0.35 sys + 114.04 cusr 11.85 csys = 127.12 CPU) Result: PASS perl 5.38.0 w/ apache 2.4.57 I had to build

Re: [RELEASE CANDIDATE] mod_perl-2.0.13 RC1

2023-08-22 Thread Adam Prime
I can reproduce this on linux with perl 5.34.0 or 5.38.0, and probably other's I haven't tried. If I build httpd 2.4.57 with mod_proxy, then it happens. t/logs/error_log shows this: [Tue Aug 22 21:43:54.639949 2023] [proxy_balancer:emerg] [pid 3450] AH01177: Failed to lookup provider 'shm' fo

Re: [RELEASE CANDIDATE] mod_perl-2.0.13 RC1

2023-08-22 Thread Adam Prime
Sorry for the massive delay on this. +1 all run on gentoo with 5.15.74 kernel perl 5.38.0 w/ apache 2.2.34 All tests successful. Files=245, Tests=2587, 145 wallclock secs ( 0.88 usr 0.35 sys + 114.04 cusr 11.85 csys = 127.12 CPU) Result: PASS perl 5.38.0 w/ apache 2.4.57 I had to build

Re: [RELEASE CANDIDATE] Apache-SizeLimit-0.98 RC1

2023-07-29 Thread Adam Prime
+1 server localhost:8529 started t/apache/all.t skipped: apache version 1 required, this is version 2 t/apache2/basic.t . ok t/apache2/check_n_requests2.t . ok, t/apache2/deprecated.t ok t/apache2/zzz_check_n_requests.t .. ok t/pod.t ...

Re: [RELEASE CANDIDATE] Apache-Reload-0.14 RC1

2023-07-29 Thread Adam Prime
+1 tests pass on apache 2.4.41 w/ perl 5.28.0, which is what i've got immediately available to test with. Adam On 7/21/23 18:56, Steve Hay wrote: In preparation for an upcoming release of mod_perl to support Perl 5.38.0, I am making a new release of Apache-Reload. Please download, test, and

Re: What would a mod_perl EOL look like?

2021-03-18 Thread adam . prime
If you go back to Sander's original email, he outlines what will happen if we can't staff the PMC sufficiently to meet Apache's guidelines. The project woudl go to the attic[1]. There are lots of projects in the Attic. Some of them have been forked and continue to have development done on

Re: [DISCUSS] The future of mod_perl

2021-03-17 Thread Adam Prime
I didn't say there are no developers, I said there is no active development happening. Steve Hay is a developer. Fred Moyer, who replied to this thread earlier this evening, has also made significant contributions to the project. I can dive into the C if I have to, to fix bugs or review code, b

Re: [DISCUSS] The future of mod_perl

2021-03-17 Thread Adam Prime
I think if you want to discuss alternatives, then a new thread would be the place to do that. With regards to plug being pulled, I think that it is up to the community if, when, and how that happens. That's what the point of this thread is. If there aren't people that are committed enough to t

Re: [DISCUSS] The future of mod_perl

2021-03-17 Thread Adam Prime
The projects current state is that no new development happening. This isn't to say that new development shouldn't happen, but it isn't. Apache and Perl both continue to move forward, and we are pretty lucky that the design that Stas, Phillipe, Geoff, etc built mod_perl 2 under is resilient enou

Re: [DISCUSS] The future of mod_perl

2021-03-17 Thread Adam Prime
When the roll call was done a month ago it's basically myself and Steve, with Steve really being the only one that has much knowledge of the guts of the project. Up until the last few months gozer (Phillippe Chaisson) was at least around enough to file reports, but has been MIA a few months. So

Re:

2021-02-07 Thread Adam Prime
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 Apache forks. There is also an opportunity to load other static resources at this time, but that can get a little more invol

Re: HTML template for MP2

2020-12-29 Thread Adam Prime
On 12/29/20 8:55 PM, Matthias Peng wrote: Currently my mp2 handler outputs the content just for an JSON API, which behaves well. If I want mp2 to output a full HTML page, what's the suggested template for this? There are a lot of ways to answer this, and I'm not sure what the question you're

Re: cache a object in modperl

2020-09-13 Thread Adam Prime
I left out the link to the thread. Here it is. https://marc.info/?t=11906287072&r=1&w=2 > On Sep 14, 2020, at 1:18 AM, Wesley Peng wrote: > > That's great. Thank you Adam. > > Adam Prime wrote: >> If the database doesn't change very often, and

Re: cache a object in modperl

2020-09-13 Thread Adam Prime
If the database doesn't change very often, and you don't mind only getting updates to your database when you restart apache, and you're using prefork mod_perl, then you could use a startup.pl to load your database before apache forks, and get a shared copy globally in all your apache children.

Re: [RELEASE CANDIDATE] mod_perl-2.0.11 RC3

2019-10-01 Thread Adam Prime
+1 on gentoo with 2.4.41 prefork on perl 5.28.0 I still see the bbs tests failing as they have been. I started to look into it a bit, and see what you're talking about with the ENV switch to 'turn off LWP', but ran out of time. It kind of looked like when LWP was on, that the value of the hea

Re: [RELEASE CANDIDATE] mod_perl-2.0.11 RC2

2019-09-25 Thread Adam Prime
What happens if you revert the change in that file? I.e. Change FINFO_NAME back to FINFO_NORM on line 168, and on line 18 (the APR::Const -compile line)? Does that fix it for you? With that change all the request_rec tests run and pass. Adam

Re: [RELEASE CANDIDATE] mod_perl-2.0.11 RC2

2019-09-24 Thread Adam Prime
Still seeing the t/api/request_rec.t failures, which do not occur with the same machine and same settings with 2.0.10. It's failing after the mtime test, before the finfo test. Test Summary Report --- t/api/request_rec.t (Wstat: 0 Tests: 43 Failed: 0) Parse e

Re: [RELEASE CANDIDATE] mod_perl-2.0.11 RC1

2019-09-23 Thread Adam Prime
I'm seeing more test failures for 2.0.11 RC1 than for 2.0.10 with the same setup. Test Summary Report --- t/api/request_rec.t (Wstat: 0 Tests: 43 Failed: 0) Parse errors: Bad plan. You planned 55 tests but ran 43. t/compat/request.t(Wstat:

Re: [RELEASE CANDIDATE] mod_perl-2.0.11 RC1

2019-09-17 Thread Adam Prime
I keep forgetting, but I’ll do this tonight. > On Sep 17, 2019, at 8:45 AM, Steve Hay > wrote: > >> On Mon, 2 Sep 2019 at 13:37, Steve Hay wrote: >> >>> On Mon, 2 Sep 2019 at 13:34, Steve Hay wrote: >>> >>> Please download, test, and report back on this mod_perl 2.0.11 release >>> candidat

Re: Apache 2.4 Authentication/Authorization

2019-05-16 Thread Adam Prime
Honestly, the best, and possibly only, source for the information you're after is probably the httpd source code. Unless there is some high level documentation that has more details than this does: https://httpd.apache.org/docs/2.4/howto/auth.html There's also this, which is supposed to be the

Re: AuthCookieDBI and Apache 2.4

2019-02-15 Thread Adam Prime
Apache2::AuthCookieDBI looks like it might work just fine with just that simple change. In theory you could grab the distribution, make the change and run the tests and get a pretty good idea if it will. You'll likely need to pay attention to MSCHOUT's documentation about what changed in 2.4 th

Re: HTTP and MPM support

2019-02-06 Thread Adam Prime
I can tell you that at least some of the PMC members are on this list. But I can also tell you that there is essentially no development going on right now. The PMC is essentially idle, and there aren't any plans to do anything with regards to improving support for newer MPM's. That said, the pr

Re: Upgrading a mod_perl application from Apache 2.2 to Apache 2.4

2018-11-30 Thread Adam Prime
pport for this now. https://httpd.apache.org/docs/2.4/mod/mod_remoteip.html Adam On 2018-11-30 8:13 a.m., Adam Prime wrote: There isn’t currently any good documentation for this migration. I went through it myself a few months ago, and I ended up using the https changes doc

Re: Upgrading a mod_perl application from Apache 2.2 to Apache 2.4

2018-11-30 Thread Adam Prime
There isn’t currently any good documentation for this migration. I went through it myself a few months ago, and I ended up using the https changes doc to help me when I got strange errors. https://httpd.apache.org/docs/2.4/upgrading.html I was able to get everything working after some fooling

Re: Future MPM Support?

2018-08-04 Thread Adam Prime
You should really throw a light weight server that can handle http 2 between your clients and your mod_perl machines. It’s not ideal in terms of maximizing what http 2 can do, but it can have a very significant impact. Adam > On Aug 4, 2018, at 9:08 PM, Michael A. Capone > wrote: > > Yes, h

Re: simple question. Not using 2.xxx10. query params

2018-01-09 Thread Adam Prime
libapreq2 (Apache2::Request) does this kind of stuff, or you can use a framework that sits on top of mod_perl that handles it for you. If you want to write raw handlers, the libapreq2 is probably the way to go. https://httpd.apache.org/apreq/docs/libapreq2/ Adam On 18-01-09 10:18 PM, Chris B

Re: Shared var between processes

2017-10-20 Thread Adam Prime
On 17-10-20 05:17 AM, André Warnier (tomcat) wrote: On 20.10.2017 10:50, Ben RUBSON wrote: On 20 Oct 2017 10:38, André Warnier (tomcat) wrote: I believe that there is much more of a performance hit, when asking the server to set up an environment ($ENV) for sub-processes, than via the PerlSet

Re: Shared var between processes

2017-10-19 Thread Adam Prime
If it doesn't need to change then you should be able to set it in PerlPostConfigRequire code, and it will then be available to all children in copy on write memory (ie any change will only affect the process that changed it.) https://perl.apache.org/docs/2.0/user/handlers/server.html#Startup_F

Re: access control

2017-10-19 Thread Adam Prime
With a PerlAccessHandler, see: https://perl.apache.org/docs/2.0/user/handlers/http.html#PerlAccessHandler Adam On 17-10-19 06:48 AM, Ken Peng wrote: Hi, for a common object on server, for example, http://a.com/b.jpg, when it can be accessed by client, I want to apply some access control on i

Re: Where is the mod_perl development repo?

2017-02-19 Thread Adam Prime
Many years ago Jeff Horwitz had a proof of concept mod_parrot, which allowed a mod_perl6. He did some talks about it at YAPC. Lots of things have changed since then though. Notably perl6 is mostly using moarVM these days, which might mean that effort isn't useful any more, but I don't really kno

Re: use lib error

2016-12-08 Thread Adam Prime
I don't think Modperl::Registry sets the current working directory of of the process when it runs your script, so that might be why it's having problems. You can try RegistryPrefork instead, if you're running under the prefork MPM. If not, then your script will need to be updated to assumed that

Re: supporting differing versions of same perl module

2016-11-24 Thread Adam Prime
On 16-11-24 07:22 AM, mod_p...@trodman.com wrote: Assume two endpoint URLs, one using the current and one using an old version of a perl module foo.pm for our application. This 2008 article shows how to prevent conflicts (old app using new foo.pm or vv) for this situation under modperl: ht

Re: Modperl as backend for mobile apps

2016-10-31 Thread Adam Prime
On 16-10-31 10:34 AM, John Dunlap wrote: We do this by processing all requests in an eval block and putting Apache into assbackwards mode so that we can send a 500 response with a JSON response body You can also do it with $r->custom_response[1] from within your mod_perl code itself. https:/

Re: If building from source

2016-10-03 Thread Adam Prime
If you're using 2.0.9, then the highest you can go is 5.20. RC1 for mod_perl 2.0.10 is in voting right now, if that goes out (which it should "soon"), then you should probably run 5.24 and 2.0.10. Adam On 16-10-03 01:41 PM, daniel.axtell wrote: Thanks for all the suggestions about Linux dis

Re: [RELEASE CANDIDATE] mod_perl-2.0.10 RC1

2016-09-30 Thread Adam Prime
+1 on solaris 10 w/ apache 2.2.31 prefork and perl 5.24.0 all tests pass

Re: [RELEASE CANDIDATE] mod_perl-2.0.10 RC1

2016-09-30 Thread Adam Prime
+1 on ubuntu w/ apache 2.2.31 prefork & perl 5.24.0

Re: [RELEASE CANDIDATE] Apache-Test-1.40 RC1

2016-08-31 Thread Adam Prime
+1 on solaris 10 On 16-08-24 01:02 PM, Steve Hay wrote: Please download, test, and report back on this Apache-Test 1.40 release candidate. https://dist.apache.org/repos/dist/dev/perl/Apache-Test-1.40-rc1.tar.gz MD5 = ecabfbf3a782601aa1511ae3c89601b0 SHA1 = a046f0ccd3a696ecbcaa207dbe92a83c92e5

Re: [mp2] Test failures in mod_perl 2.0.9 (Apache 2.2.31, perl 5.24.0)

2016-07-21 Thread Adam Prime
there are changes in SVN to support perls >= 5.22, but the work hasn't been released and may not be complete yet. This is the bug: https://rt.cpan.org/Public/Bug/Display.html?id=101962 If you can downgrade your perl to 5.20 then you should be able to get things running. Adam On 07/21/2016 05:

Re: which framework is best suitable for modperl?

2016-07-20 Thread Adam Prime
On 16-07-19 11:55 PM, 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? (I have few experience on Dancer, which I don't think work together with MP). thanks. Anything built on top

Re: [RELEASE CANDIDATE] Apache-Reload 0.13 RC2

2015-04-23 Thread Adam Prime
+1 apache 2.2.24 on solaris t/TEST -bugreport -verbose=0 [warning] Skipping 'set unlimited ulimit for coredumps', since we are running as a non-root user on Solaris /oanda/system/bin/httpd -d /tmp/Apache-Reload-0.13-rc2/t -f /tmp/Apache-Reload-0.13-rc2/t/conf/httpd.conf -D APACHE2 using Apa

Re: [RELEASE CANDIDATE] Apache-Test-1.39 RC1

2015-04-16 Thread Adam Prime
+1 server localhost:8529 started [ info] adding source lib /tmp/Apache-Test-1.39-rc1/lib to @INC t/alltest/allskipped all skipped: testing all.t t/alltest2/all...skipped all skipped: testing more than one all.t t/bad_coding.ok t/cookies.

Re: mod_perl2: 304 (not modified) and custom headers

2014-11-12 Thread Adam Prime
Date: Wed, 12 Nov 2014 17:45:55 GMT Server: Apache Connection: Keep-Alive Keep-Alive: timeout=30 2014-11-12 19:45 GMT+03:00 Adam Prime mailto:adam.pr...@utoronto.ca>>: Can we see the code you're running into this issue with? It sounds like confusion between $r->headers_out a

Re: mod_perl2: 304 (not modified) and custom headers

2014-11-12 Thread Adam Prime
Can we see the code you're running into this issue with? It sounds like confusion between $r->headers_out and $r->err_headers_out to me. Adam On 14-11-12 05:09 AM, Alexandr Evstigneev wrote: 1. Problem Description: It seems, that if I set status to 304, all custom headers being ignored and n

Re: beginning and testing

2014-10-07 Thread Adam Prime
I'd start by reading this: http://perl.apache.org/docs/general/testing/testing.html I'd then suggest taking a look at some of the popular mod_perl modules, and check out how their test suites work. Most of the stuff you're going to find there will be very unit test specific. If you want to d

Re: Custom response problem

2014-03-18 Thread Adam Prime
7;406' => HTTP_NOT_ACCEPTABLE, '407' => HTTP_PROXY_AUTHENTICATION_REQUIRED, '408' => 408, '409' => HTTP_CONFLICT, '410' => HTTP_GONE, '411' => HTTP_LENGTH_REQUIRED, '412' => HTTP_PRECONDITION_FAILED, '413' => H

Re: Custom response problem

2014-03-18 Thread Adam Prime
I'm pretty sure you should be using Apache2::Const::SERVER_ERROR, not the HTTP_* constants. This could probably be documented better. You should likely be returning that constant instead of the HTTP_* ones as well. Adam On 14-03-18 11:59 AM, John Dunlap wrote: I recently upgraded my workstati

Re: Dead link in the mod_perl Users mailing list page

2013-12-10 Thread Adam Prime
Should link to here instead: http://marc.info/?l=apache-modperl&r=1&w=2 Adam On 13-12-10 04:47 PM, Vincent Veyron wrote: Hi, I noticed that in this page : http://perl.apache.org/maillist/modperl.html marc.theaimsgroup.com has been unavailable for a while now http://marc.theaimsgroup.com/?l

Re: Apache::DBI connect

2013-11-07 Thread Adam Prime
perl -e "if ('0E0') { print qq[hi\n] }" hi OE0 as a string evaluates to true. If you use it as a bareword / numeric then it's false, which is what your eval example below is doing. Adam On 13-11-07 11:29 AM, Xinhuan Zheng wrote: one correct - In both cases, the return value is evaluated to

Re: Download then display page

2013-04-30 Thread Adam Prime
I think people still generally rely on meta redirects or javascript to accomplish this type of behaviour, though I'm curious to know if what you describe here actually works across browsers. Adam On 13-04-30 02:27 PM, Jim Schueler wrote: Yes, that's what I have in mind. I only occassionally

Re: About config file

2013-03-07 Thread Adam Prime
On 03/06/2013 11:21 PM, Jon wrote: > > Is there any reason he can't use Config::Any? > http://search.cpan.org/~bricas/Config-Any-0.23/lib/Config/Any.pm > > > There's no reason why he can't use any Config package, or roll his own

Re: Apache::DBI

2011-08-03 Thread Adam Prime
On 8/3/2011 2:49 AM, Feng He wrote: Hi, Thank you all for the info. I have finished writting the handler this morning, and have enabled Apache::DBI in httpd.conf. My handler is for this url: http://bizstatus.game.yy.com/upload/ It accept client's uploaded data and write the data to database. T

Re: Authentication logic [was: Changing browser URL based on condition]

2011-07-17 Thread Adam Prime
On 7/17/2011 1:16 AM, Phil Van wrote: Back to Vincent's original request about session id and login: how secure is your session id? Have you signed it? If not, someone can try to sending random IDs and break your authentication. Well, if you sign it and sign it properly, you basically end up wit

Re: No $r = no mod_perl?

2011-07-10 Thread Adam Prime
On 7/10/2011 6:08 AM, Tosh Cooey wrote: So I'm following your advice and going the easy route of apt-get everything. My original server had this config: Apache/2.2.11 (Ubuntu) mod_perl/2.0.4 Perl/v5.10.0 Server And two years later we're at: Apache/2.2.14 (Ubuntu) mod_perl/2.0.4 Perl/v5.10.1 Ser

Re: Measuring response time Apache request

2011-05-24 Thread Adam Prime
On 11-05-24 11:30 AM, marco wrote: Hi all, I want to get the response time that Apache spends to serve a request (from post-read-request phase to the response phase). Any idea? Thanks I'm pretty sure there are messages buried in the archives (from torsten) showing how to do this with $r->push

Re: Apache2::Filter Intermittently Missing Injected String

2011-03-31 Thread Adam Prime
I wrote a module based on a talk Geoff Young gave a bazillion years ago to abstract this problem away (sort of). You can check it out here: http://search.cpan.org/~aprime/Apache2-Filter-TagAware-0.02/lib/Apache2/Filter/TagAware.pm Adam On 3/31/2011 12:30 AM, Chris Datfung wrote: On Wed, Mar

Re: [mp2] php response handler clears authenticated user in mod_perl

2011-01-04 Thread Adam Prime
This is a bug in mod_php not mod_perl isn't it? Adam

Re: patch for Apache2::SizeLimit under solaris 10

2010-12-06 Thread Adam Prime
What version of SizeLimit were you using? This was fixed in svn in r882407, which was released in 0.93 in October Adam On 12/6/2010 4:11 AM, Brett @Google wrote: Hello, Here is a patch for Apache2::SizeLimit under solaris 10, apache 2.2, unthreaded prefork model : diff -c ./mod_perl-2.0.4/

Re: Apache CMS running latest apreq candidate

2010-11-29 Thread Adam Prime
On 11/29/2010 2:27 PM, Joe Schaefer wrote: A new CMS service was put into place by the ASF sysadmins over the past few months, and it makes very good use of subversion, modperl2 and libapreq2. To see it in action you need to be an Apache committer and visit https://cms.apache.org/, but the code i

Re: [RELEASE CANDIDATE] Apache-SizeLimit 0.92 RC1

2010-08-05 Thread Adam Prime
builds and tests fine on: SunOS www01-dtest 5.10 Generic_142901-05 i86pc i386 i86pc Solaris w/ mp2 and SunOS ii3-dev 5.10 Generic_13-03 sun4v sparc SUNW,Sun-Blade-T6320 Solaris w/ mp1 +1 Adam On 10-08-04 09:19 PM, Adam Prime wrote: builds and tests fine on linux w/ 5.8.8 mp2, i&#x

Re: [RELEASE CANDIDATE] Apache-SizeLimit 0.92 RC1

2010-08-05 Thread Adam Prime
On 10-08-04 11:14 PM, Philip M. Gollucci wrote: On 8/4/2010 9:19 PM, Adam Prime wrote: builds and tests fine on linux w/ 5.8.8 mp2, i'll do solaris x86/sparc at work tomorrow. This is actually a pretty significant change set, so it would probably be a good idea to get as much feedba

Re: [RELEASE CANDIDATE] Apache-SizeLimit 0.92 RC1

2010-08-04 Thread Adam Prime
builds and tests fine on linux w/ 5.8.8 mp2, i'll do solaris x86/sparc at work tomorrow. This is actually a pretty significant change set, so it would probably be a good idea to get as much feedback as possible. Adam Philip M. Gollucci wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 ht

Re: Sinister variable caching problem with rand()

2010-05-15 Thread Adam Prime
Perrin Harkins wrote: On Sat, May 15, 2010 at 4:03 PM, Anthony Esposito wrote: In one of my programs I started to receive database errors for not having a unique id. I generate unique ids for each of the mysql lines that I add to the database. I realized that the perl variable $idNum was keepin

Re: Apache2::AuthCookie

2010-05-10 Thread Adam Prime
Michel Jansen wrote: Hi, Since i understand that http-authentication is not used much and because it is impossible to logout from an authenticated session without closing the browser i am looking at Apache2::AuthCookie to replace http-authentication. I installed the module but i need some more e

Re: Getting NYTProf to work with vhosts that use PerlOptions +Parent

2010-04-28 Thread Adam Prime
Maybe you could try doing the push_handler for the ChildExitHandler when the ChildInitHandler executes? Just a shot in the dark. Adam Tim Bunce wrote: This is proving to be tricky. If I load Devel::NYTProf::Apache[1] in the main part of httpd.conf then I get a profile that includes all the a

Re: accessing environment variables set by other modules

2010-04-15 Thread Adam Prime
You need to use $f->r->subprocess_env in the filter. subprocess_env is a RequestRec method, not a Filter method. Adam Chris Datfung wrote: On Thu, Apr 15, 2010 at 12:23 AM, Perrin Harkins > wrote: The subprocess_env info that Adam sent you should have worked.

Re: accessing environment variables set by other modules

2010-04-12 Thread Adam Prime
you might want to take a look at subprocess_env http://perl.apache.org/docs/2.0/api/Apache2/RequestRec.html#C_subprocess_env_ I don't think i've every tried to use %ENV in a Filter, perhaps it's not getting populated. %ENV can be a little strange in mp2, have a look at: http://perl.apache.or

Re: Usefulness of $r->notes and $r->pnotes (or $c)

2010-03-23 Thread Adam Prime
Michael Peters wrote: On 03/23/2010 05:28 PM, Michael Ludwig wrote: What could be done at the connection level? Anything that might involve keep alive connections: where the same connection serves multiple requests. Probably not that useful for HTTP, but might be for other protocols. Fr

Re: Upgrading chained response handlers to mod_perl2

2010-03-13 Thread Adam Prime
Iain Kennedy wrote: Hi, Is there a data structure that gets passed to each response handler in the chain that the processed file can be stored in (like $f->ctx)? Can the old mod_perl1 ->filter_input behaviour be done by manipulating the input_filter or output_filter stacks? Is what I'm trying

Re: [RELEASE CANDIDATE] Apache-Test-1.31 RC2

2010-02-09 Thread Adam Prime
Passes all tests on 2.2.10 w/ mp 2.0.4 and perl 5.8.8 on linux (ubuntu hardy). Passes all tests on 2.2.14 w/ mp 2.0.4 and perl 5.8.8 on solaris 5.10 I tried to run it against our (extremely old) 1.3 setup at work, but i'm getting weird errors from httpd when i start it up: Ouch! ap_mm_create

Re: [RELEASE CANDIDATE] Apache-Test-1.31 RC1

2010-02-09 Thread Adam Prime
I get the following when trying to run make test: waiting 60 seconds for server to start: .Syntax error on line 73 of /local/aprime/Apache-Test-1.31-rc1/t/conf/httpd.conf: Invalid command 'not included in the server configuration [ error] server has died with status 255 (t/logs/error_log wasn'

Apache 1.3 end of life

2010-02-03 Thread Adam Prime
FYI The Apache Software Foundation and the Apache HTTP Server Project are pleased to announce the release of version 1.3.42 of the Apache HTTP Server ("Apache"). This release is intended as the final release of version 1.3 of the Apache HTTP Server, which has reached end of life status. Ther

Re: Redirect WTF

2010-01-27 Thread Adam Prime
David E. Wheeler wrote: On Jan 27, 2010, at 7:23 AM, Adam Prime wrote: This smells like a UseCanonicalName On + mod_dir redirect to me. If the directory /admin/profile/dest exists in the document root, there's a good chance it is. Ooh, thanks! I can see that I have mod_dir as a DSO

Re: Redirect WTF

2010-01-27 Thread Adam Prime
David E. Wheeler wrote: Fellow mod_perlers, Note that the hosthame is "benedict.local". Now I often just use localhost when using Bricolage, and most of the time that works fine. But there is one JavaScript-triggered redirect button that looks like this: window.location.href = '/admin/p

Re: Getting DBI working during the server life cycle

2010-01-23 Thread Adam Prime
Boysenberry Payne wrote: Hello, I'm trying to connect to my postgresql database using the DBI -> Apache::CBI -> DBD::Pg combination of modules. I'm having trouble understanding Apache::DBI usage as it pertains to https pre request server life cycle, in particular during the OpenLogs stage. My

Re: SetHandler perl-script not working

2010-01-12 Thread Adam Prime
Can you post the error message(s)? Theres nothing obviously wrong with what you've got there. Adam Kevin Thorpe wrote: > Hi all, > I have a serious problem with sethandler perl-script not working. > For testing I have enabled perl-status: > > > SetHandler perl-script > PerlRespo

Re: content_length

2009-11-24 Thread Adam Prime
Ryan Perry wrote: How do I get the content length of the request body? or the equivalent of $ENV{'CONTENT_LENGTH'} ? my $current_read = $r->read($current_buffer, $current_length - $current_remaining, $current_remaining); Thanks! Content-Length is just a header, so you get it throu

Re: Dynamically setting PerlVars in Apache per-request

2009-11-23 Thread Adam Prime
My suggestion would be to subclass AuthDBI to make the constructor fiddle with the dir_config entries that AuthDBI uses. See the docs for dir_config (the perl interface to PerlSetVar variables: http://perl.apache.org/docs/2.0/api/Apache2/ServerUtil.html#C_dir_config_ I have no idea how subcl

Re: code in sections executed twice in same process?

2009-11-17 Thread Adam Prime
E R wrote: The sections don't seem to be executed in the children. use a PerlChildInitHandler if you want to run code in the children. Is there a way to determine which pass you are in? For large mod_perl apps, is there a way to avoid loading your code in twice? Note I am using mod_perl 1.

new book with mod_perl content

2009-11-12 Thread Adam Prime
Developing Web Applications with Apache, MySQL, memcached, and Perl Patrick Galbraith http://ca.wiley.com/WileyCDA/WileyTitle/productCd-0470414642,descCd-tableOfContents.html I saw this mentioned in a blog post, and had a look at the table of contents, and there are a couple of chapters about m

Re: FreeBSD 7.2, mod_perl2 & Apache2::Cookie (libapreq2)

2009-10-29 Thread Adam Prime
You guys might want to take a look at this thread on apreq-dev http://marc.info/?t=12420765987&r=1&w=2 Specifically the last couple of posts from pgollucci (who is a freebsd, and mod_perl committer). If you can't get apreq2.12 to work, try 2.08. Adam Joe Niederberger wrote: How do I

Re: Apache2::Request->param fails with POST

2009-10-22 Thread Adam Prime
It seems like your libapreq install is broken or something. Did it pass all the tests when you built it? Adam nmittal wrote: I have tried that but it still doesnt work. I even tried to POST an empty form (with no GET or POST params) with same results Michael Peters wrote: On 10/21/2009 06:

Re: Apache2::Request->param fails with POST

2009-10-21 Thread Adam Prime
nmittal wrote: Hi I am using Apache2.2 and mod_perl. I have a login page that POSTs to an authentication script. action="/authenticate?sid=06eff4cdc3231db0236cdbe2c51e6618"> User(or email): Password: on the server side.. I have the following code... use Apache2::Request;

Re: Custom INC per-directory

2009-10-20 Thread Adam Prime
Alan Young wrote: Wouldn't using the Parent option ( http://perl.apache.org/docs/2.0/user/config/config.html#C_Parent_ ) work better for what you're trying to do? Parents requires vhosts, which he said he doesn't want to use. Adam

Re: Plack

2009-10-15 Thread Adam Prime
Jonathan Vanasco wrote: Has anyone here played with Plack yet ? ( http://plackperl.org/ ) It's about a week old or so publicly, but I'm sure a few of you folks here were privvy to a preview... I haven't played with it, but i have read a bunch of Miyagawa's blog posts about it. I do know

Re: Configuring virtual hosts on the fly

2009-10-12 Thread Adam Prime
Scott Gifford wrote: > Hello, > > I'm working on an Apache configuration for a cluster of machines > serving a variety of virtual hosts. > > New virtual hosts are provisioned by a Web application, and all > information needed to set up the virtual hosts is in a database table. > I would like my A

Re: huge httpd processes

2009-09-30 Thread Adam Prime
Justin Wyllie wrote: Hi clint Yes. Linux and this script looks good. We've think that part of the problem is in the modules Apache is loading so this will be useful. I also have another couple of questions: I have found the errant code where our process jumps by 13 Mbs. One part does something

Re: Why people not using mod_perl

2009-09-17 Thread Adam Prime
Torsten Foertsch wrote: On Thu 17 Sep 2009, Kiran Kumar wrote: I have seen padre first time at the this year German perl workshop in February and tried it out a bit. What I miss is syntax highlighting and indentation for C, XS and Perl in one tool. Can padre handle this? Last time I looked it

Re: Why people not using mod_perl

2009-09-17 Thread Adam Prime
Jeff Horwitz is working on mod_parrot and mod_perl6 mod_parrot info: http://www.parrot.org/mod_parrot Jeffs blog: http://www.smashing.org/jeff/ It's coming along, but currently it's tough to actually do much that's useful without things like DBI, or Apache::Request. at least that's where it

Re: Ways to scale a mod_perl site

2009-09-16 Thread Adam Prime
Igor Chudov wrote: On Wed, Sep 16, 2009 at 11:05 AM, Michael Peters > wrote: On 09/16/2009 11:49 AM, Igor Chudov wrote: 1) Use a load balancer like perlbal (I am already doing that) A load balancer is good but so are proxies. If you can separat

Re: FW: Apache::DBI Failed due to +GlobalRequest

2009-09-12 Thread Adam Prime
Kulasekaran, Raja wrote: > Hi, > > Great. I guess this might solve the problem. > > I had found in one of the forum stating that we can write a handler > which generates the “$r” global object before initiate the Apache::DBI > connection . Is that possible ? . > > Otherwise, Shall I install

Re: PerlSwitches -I

2009-09-04 Thread Adam Prime
Artem Kuchin wrote: I have run into a problem. I want to have my packages precompiled in apache process with PerlModule X:Y X:Y is my own package with is located in the site directory. The site is a virtual host. However, this apache also has many other virtual hosts with ALMOST the same softw

Re: Rotate log in mod_perl

2009-08-28 Thread Adam Prime
Shibi NS wrote: My httpd.conf has following $ErrorLog = " |bin/rotatelogs $config->{log_file}.%Y-%m-%d-%H_%M_%S 5M"; #$TransferLog= " |bin/rotatelogs $config->{log_accessfile}.%Y-%m-%d-%H_%M_%S 5M"; But server start fails $parms->add_config() has failed: ErrorLo

Re: RFC: Apache2::CloseKeepAlive

2009-08-28 Thread Adam Prime
Michael Ludwig wrote: Sprites are useful for collections of related of the same size and purpose. You don't have to restrict them to images of the same size. You can use a sprited image to replace any fixed size image, and any background image that repeats in one direction or the other (but

Re: PerlRun Subroutine redefine warnings

2009-08-27 Thread Adam Prime
Kiran Kumar wrote: Hi Mike, Thanks for your reply, If you check my script there is no other subroutine with the same name and I do not import any modules , I renamed the subroutine to foo and I still get the same warnings. There's an old thread from someone else reporting this, though it

Re: RFC: Apache2::CloseKeepAlive

2009-08-26 Thread Adam Prime
cr...@animalhead.com wrote: I'm working toward contributing a module with this working title to CPAN, and would like your comments and advice. A non-code comment, but there seems to be some consternation about the "same terms as perl itself" license. See the link below: http://perlbuzz.com/

Re: A lot of "segmentation fault", Ubuntu Hardy, apache with mod_perl

2009-08-10 Thread Adam Prime
Igor Chudov wrote: > > > On Sun, Aug 9, 2009 at 7:08 AM, Nick Wellnhofer > wrote: > > Igor Chudov wrote: > > In the logs, I see a lot of error messages saying: segmentation fault > Are you using the worker MPM? If yes, try the prefork MPM instead. > > >

Re: How to write a handler

2009-07-31 Thread Adam Prime
Sudheer Puppala wrote: Hi I am java/flex programmer since 1yrs and a little bit of perl. I have a requirement of write a handler at apache http server side using perl. Scenario: 1. My flex application request for a particular file to the apache server. 2. The server upon receiving a

Re: rewriterule, location, and perlhandler

2009-07-22 Thread Adam Prime
Eric Lease Morgan wrote: On Jul 22, 2009, at 12:05 AM, Adam Prime wrote: By first changing my Location directive to the following: SetHandler perl-script PerlHandler Apache2::Alex::SemanticWeb And then changing my RewriteRule to this: RewriteRule ^/etexts/id/(.*) /sandbox

Re: rewriterule, location, and perlhandler

2009-07-21 Thread Adam Prime
Eric Lease Morgan wrote: > > On Jul 21, 2009, at 9:45 PM, Nick Wellnhofer wrote: > >>> What am I doing wrong? Does an actual file need to exist in order for >>> mod_perl to find it? >> >> No. > > > I didn't think so, but what sort of configuration do I need to do so my > mod_perl packages get e

  1   2   3   4   >