Re: [RELEASE CANDIDATE] mod_perl-2.0.13 RC1

2023-08-23 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'

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,

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,

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

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

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.

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

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=1=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 you don't mind onl

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

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

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

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 >>>

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

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

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

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

2018-11-30 Thread Adam Prime
/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 to help me when I got strange errors. https

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,

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

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

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.)

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

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:

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.

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 =

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

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

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

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

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

Re: Custom response problem

2014-03-18 Thread Adam Prime
' = HTTP_EXPECTATION_FAILED, '500' = HTTP_INTERNAL_SERVER_ERROR, '501' = HTTP_NOT_IMPLEMENTED, '502' = HTTP_BAD_GATEWAY, '503' = HTTP_SERVICE_UNAVAILABLE, '504' = HTTP_GATEWAY_TIME_OUT, '505' = 505 }; On Tue, Mar 18, 2014 at 12:33 PM, Adam Prime adam.pr...@utoronto.ca mailto:adam.pr...@utoronto.ca wrote

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-modperlr=1w=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

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

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 http://search.cpan.org/%7Ebricas/Config-Any-0.23/lib/Config/Any.pm There's no reason why he can't use any Config package, or roll his own using

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.

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

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

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

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

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

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 feedback

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'll

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

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 tony.m.espos...@gmail.com 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

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

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

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 phark...@gmail.com mailto:phark...@gmail.com wrote: The subprocess_env info that Adam sent you

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:

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.

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 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 'IfVersion', perhaps misspelled or defined by a module not included in the server configuration [ error]

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. There

Re: Redirect WTF

2010-01-27 Thread Adam Prime
David E. Wheeler wrote: Fellow mod_perlers, snip 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 =

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: 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: Location /perl-status SetHandler perl-script

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

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

Re: code in perl sections executed twice in same process?

2009-11-17 Thread Adam Prime
E R wrote: The perl 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

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

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=12420765987r=1w=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

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. form method=POST action=/authenticate?sid=06eff4cdc3231db0236cdbe2c51e6618 table tr td align=rightUser(or email): /td tdinput type=text name=email value=/td/tr tr td

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 Apache

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

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

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 mpet...@plusthree.com mailto:mpet...@plusthree.com 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

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

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: Rotate log in mod_perl

2009-08-28 Thread Adam Prime
Shibi NS wrote: My httpd.conf has following Perl $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; /Perl But server start fails $parms-add_config() has failed:

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:

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 wellnho...@aevum.de mailto:wellnho...@aevum.de 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

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

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 executed without

Re: [PATCH] Apache::DBI - Disconnect on child exit

2009-07-20 Thread Adam Prime
Seems like a reasonable addition to me. Apache::DBI 1.07 is kind of broken right now (see bugs in RT), it'd be nice to get a new release with this fixed and some of those bugs closed. Adam Nick Wellnhofer wrote: Currently, Apache::DBI never disconnects from the database. This leads to the

Re: Apache::Bootstrap 0.07-rc1 available for testing

2009-07-10 Thread Adam Prime
Fred Moyer wrote: I'd love it if you could take this rc for a spin and report back. Passing all tests on OS X 10.5, 5.8.8, 2.2.6 and Centos 5.2, 5.8.9, 2.2.8. I resolved some issues while implementing this version for Apache::Dispatch. Changes since 0.06 - fix syntax error in params

Re: mod_perl 2.0.4 make test fails on red hat EL4 with apache 2.2.11 after glibc update

2009-06-10 Thread Adam Prime
Sean Thorne wrote: Hi, I don't know whats wrong, but my hosting environment recently pushed an update of glibc and pthread to all of my servers. This caused them all my apache instances to go into an unstable state. I isolated the problem to mod_perl and thought if I rebuilt apache httpd

Re: Problem with libapreq2-2.12

2009-05-21 Thread Adam Prime
There is a thread in apreq-dev about this issue: http://marc.info/?l=apreq-devm=124276135127808w=2 Apparently it has something to do with the machine that the tarball was built on. Adam mod_perl User wrote: Hi, While trying to install libapreq2-2.12 with mod_perl2/Apache2 in

Re: Pass value from filter to anothe filter

2009-05-13 Thread Adam Prime
Idel Fuschini wrote: Hi, I have this configuration on server: PerlModule :: PerlTransHandler +::module1 Location /xxx/* SetHandler modperl PerlInputFilterHandler ::module2 /Location and I want to pass variable from module1 to module2 is it possible ? I think it

Re: [RELEASE CANDIDATE] mod_perl-1.31 RC8

2009-05-11 Thread Adam Prime
Builds and tests find on Summary of my perl5 (revision 5 version 8 subversion 8) configuration: Platform: osname=linux, osvers=2.6.23-gentoo-r3, archname=x86_64-linux uname='linux data 2.6.23-gentoo-r3 #1 smp sun dec 30 14:44:14 est 2007 x86_64 amd athlon(tm) x2 dual core processor

Re: [RELEASE CANDIDATE] mod_perl-1.31 RC8

2009-05-11 Thread Adam Prime
Also builds fine and all tests pass on: Summary of my perl5 (revision 5 version 8 subversion 8) configuration: Platform: osname=solaris, osvers=2.10, archname=i86pc-solaris uname='sunos fxbuild-i386 5.10 generic_127112-11 i86pc i386 i86pc solaris ' and Summary of my perl5 (revision

  1   2   3   >