[arch-general] [arch-dev-public] Upgrading Apache to 2.4

Sebastiaan Lokhorst sebastiaanlokhorst at gmail.com
Fri Mar 7 04:10:48 EST 2014


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? Will
mod_php5 will still be supported?

Thanks!
Sebastiaan


2014-03-07 0:52 GMT+01:00 Armin K. <krejzi at email.com>:

> On 03/07/2014 12:39 AM, Anatol Pomozov wrote:
> > Hi
> >
> > + php maintainer
> >
> > On Thu, Mar 6, 2014 at 3:05 PM, Rene Pasing <rene at pasing.net> wrote:
> >> Hi Anatol,
> >>
> >> On 03/06/2014 10:48 PM, Anatol Pomozov wrote:
> >>> Apache 2.4 has been moved from [testing] to [extra] and now available
> >>> for everyone. Please update your setup, follow the migration
> >>> instructions https://httpd.apache.org/docs/trunk/upgrading.html and
> >>> report any problems. Thanks everyone.
> >>
> >> I get the following error:
> >>
> >> Mar 06 23:59:34 VAIO-ARCH apachectl[697]: [Thu Mar 06 23:59:34.072638
> >> 2014] [:crit] [pid 699:tid 139754760394624] Apache is running a threaded
> >> MPM, but your PHP Module is not compiled to be threadsafe.  You need to
> >> recompile PHP.
> >> Mar 06 23:59:34 VAIO-ARCH apachectl[697]: AH00013: Pre-configuration
> failed
> >> Mar 06 23:59:34 VAIO-ARCH systemd[1]: httpd.service: control process
> >> exited, code=exited status=1
> >> Mar 06 23:59:34 VAIO-ARCH systemd[1]: Failed to start Apache Web Server.
> >> Mar 06 23:59:34 VAIO-ARCH systemd[1]: Unit httpd.service entered failed
> >> state.
> >>
> >> I will switch to php-fpm soon, but nevertheless... Just wanted you to be
> >> aware... ;-)
> >
> > Sounds like a bug to me. Mind filing one at bugs.archlinux.org?
> >
> > Pierre, I found some information in Google+ related to apache24
> > package in aur: "The only thing was that I had to recompile PHP to be
> > thread-safe. It was '--enable-zts' parameter, I think...". The flag
> > sounds like a solution for this bug.
> >
>
> Default mpm in apache is thread safe one. You need to switch to
> non-thread safe one (prefork?) in order to use mod_php5 with apache2.4
>
> --
> Note: My last name is not Krejzi.
>


More information about the arch-general mailing list