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

2019-01-15 Thread Michael Schout
On 12/6/18 9:25 AM, Andrew Green wrote: > As far as I can tell, I have to pre-declare the new Authz provider in my > server config: > > PerlAddAuthzProvider myapp MyApp::Authz Yes this is correct, authz providers must be declared globally under 2.4 I realize this thread is old by now, but for t

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

2018-12-07 Thread tomcat
On 07.12.2018 09:29, Andrew Green wrote: Hi William, Ahhh, ok, just be aware the get_server_description call doesn't exist in 2.2, you need to perform a little eval() magic to guard against that expected failure. That doesn’t seem right — it returns the following when I try it on a 2.2 box:

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

2018-12-07 Thread Andrew Green
Hi William, > Ahhh, ok, just be aware the get_server_description call doesn't exist in 2.2, > you need > to perform a little eval() magic to guard against that expected failure. That doesn’t seem right — it returns the following when I try it on a 2.2 box: Apache/2.2.22 (Ubuntu) mod_apreq2-200

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

2018-12-06 Thread William A Rowe Jr
On Thu, Dec 6, 2018 at 3:34 PM Andrew Green wrote: > Hi William, > > But you are better off looking at; > > http://perl.apache.org/docs/2.0/api/Apache2/ServerUtil.html#C_get_server_version_ > > which returns nothing except exactly what you are asking. > > > I did try this (and it worked fine) — b

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

2018-12-06 Thread Andrew Green
Hi William, > But you are better off looking at; > http://perl.apache.org/docs/2.0/api/Apache2/ServerUtil.html#C_get_server_version_ > > > > which returns nothing except exactly what you are asking. I did try t

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

2018-12-06 Thread William A Rowe Jr
On Thu, Dec 6, 2018 at 9:25 AM Andrew Green wrote: > Hi all, > > Huge thanks to everyone for your replies on this. I’ve now been able to > work through everything, and I thought I’d post a quick update with some > additional notes in case there’s anyone else in the same boat searching the > arch

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

2018-12-06 Thread Andrew Green
Hi all, Huge thanks to everyone for your replies on this. I’ve now been able to work through everything, and I thought I’d post a quick update with some additional notes in case there’s anyone else in the same boat searching the archives in the future! 1. I was able to use the following as a

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

2018-11-30 Thread tomcat
On 30.11.2018 10:58, Andrew Green wrote: Hi, The time has finally come for me to update my mod_perl CMS from Apache 2.2 to Apache 2.4, but I’m struggling to find documentation on the changes required. The docs on perl.apache.org don’t seem to mention anything specific to Apache 2.4, and the A

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

2018-11-30 Thread Adam Prime
Here's Everything stuff I ran into, not all of which have anything to do with mod_perl: I had to change all my 'Order' directives into the new 'Require' style Related to that, I had to stop using 'require' as described here in my auth stuff. https://perl.apache.org/docs/2.0/api/Apache2/Access

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

2018-11-30 Thread Sujeeva Seneviratne
... | | | | I had to add:  $r->user('');  in my authen methods. From: Vincent Veyron To: modperl@perl.apache.org Sent: Friday, November 30, 2018 7:41 AM Subject: Re: Upgrading a mod_perl application from Apache 2.2 to Apache 2.4 On Fri, 30 Nov 2018 09:58:01 +

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

2018-11-30 Thread Vincent Veyron
On Fri, 30 Nov 2018 09:58:01 + Andrew Green wrote: > > Does anyone know of a summary of the changes to mod_perl application code > required, I had to : -modify the configuration files of my virtual hosts to include the new 'Require all granted' directive, as explained in http://httpd.a

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: Upgrading a mod_perl application from Apache 2.2 to Apache 2.4

2018-11-30 Thread John D Groenveld
In message , Andrew Green writes: >The time has finally come for me to update my mod_perl CMS from Apache 2.2 to >Apache 2.4, but I'm struggling to find documentation on the changes required You must configure httpd-2.4 --with-mpm=prefork. John groenv...@acm.org