pkgsrc-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: Apache24 and php56 threadsafe error (again)



On Sun, Apr 26, 2015 at 08:29:42AM -0700, Andy Ruhl wrote:
> A while ago someone posted that apache and php don't work together in
> pkgsrc. This is still the case as of 2015Q1. This is the error:
> 
> [Sun Apr 26 08:26:18.591549 2015] [:crit] [pid 5005:tid 140187728347136]
> Apache is running a threaded MPM, but your PHP Module is not compiled to be
> threadsafe.  You need to recompile PHP.
> AH00013: Pre-configuration failed
> 
> I saw a post about using php-fpm, so I built that and installed it but I
> haven't figured out how to make it work yet. Most examples are for Linux,
> but I haven't been able to translate it. I've been using lighttpd for a
> while now and I haven't used apache in many years.
> 
> Can some kind soul point me in the right direction about how to get php and
> apache working in NetBSD?

IIRC, you just need to stop apache from using threaded MPM, for example by adding

LoadModule mpm_prefork_module lib/httpd/mod_mpm_prefork.so

to httpd.conf.

 Thomas


Home | Main Index | Thread Index | Old Index