[arch-general] [arch-dev-public] Upgrading Apache to 2.4
geralt at gmail.com
geralt at gmail.com
Tue Mar 11 14:49:07 EDT 2014
On Mon, Mar 10, 2014 at 7:46 PM, Anatol Pomozov <anatol.pomozov at gmail.com>wrote:
> On Mon, Mar 10, 2014 at 11:41 AM, geralt at gmail.com <geralt at gmail.com>
> > On Mon, Mar 10, 2014 at 7:21 PM, Anatol Pomozov <
> anatol.pomozov at gmail.com>wrote:
> >> Hi
> >> On Fri, Mar 7, 2014 at 1:10 AM, Sebastiaan Lokhorst
> >> <sebastiaanlokhorst at gmail.com> wrote:
> >> > Thanks for taking the effort to finally update Apache!
> >> >
> >> > When trying to start Apache with PHP, I get the same error as Rene.
> >> >
> >> > Just to be clear, what is the recommended way to run Apache+PHP now?
> >> > mod_php5 will still be supported?
> >> Ok, it seems that main source of questions is php-apache package that
> >> causes "Apache is running a threaded MPM, but your PHP Module is not
> >> compiled to be threadsafe. You need to recompile PHP." error at
> >> apache start.
> >> The answer is that you need to switch apache MPM from default
> >> mod_mpm_event to slower but mod_php-compatible mod_mpm_prefork. See
> >> more information in at wiki page
> >> https://wiki.archlinux.org/index.php/LAMP#Troubleshooting
> >> BTW kudos to our users who already updated wiki for Apache2.4!
> >> And of course anyone is welcome to create a threadsafe version of
> >> php-apache in AUR so it can be used with mpm_event.
> > I've also had problems making nagios work under Apache 2.4. When I click
> > any sidebar link, instead of executing the CGI I'm presented with the
> > download dialog to download the CGI file. I guess CGIs have stopped
> > after upgrading. I think mod_cgi does not exist for Apache 2.4, and none
> > the similarly-named mods (mod_fastcgi, mod_proxy_fcgi, mod_fastcgi) seems
> > to be a drop-in replacement for mod_cgi.
> > What is the recommended way to run CGIs, specifically those needed for
> > Nagios web interface, under Apache 2.4?
> Update to version 2.4.7-2 (now it stable). It added missing modules to
> the package: mod_cern_meta mod_cgi mod_ident mod_imagemap mod_lua
> mod_proxy_html mod_xml2enc
Wonderful! After nagios stopped working, I downgraded apache back to 2.2
and put it in IgnorePkg, I didn't think it was a matter of just waiting for
the next update. 2.4.7-2 is working fine for me.
Also, having mod_proxy_html and mod_xml2enc as part of the core apache
package instead of having to get them from AUR is an improvement (the AUR
PKGFILE for mod_proxy_html doesn't even compile mod_xml2enc even though the
sources are downloaded in the tarball, I had to add it by hand).
More information about the arch-general