PHP 5.2.12 core dump under FreeBSD 8-STABLE with Apache 2.2 (apache-worker-2.2.14_5) worker-mpm mode

Philip M. Gollucci pgollucci at
Thu Jan 14 00:41:57 UTC 2010

James Chang wrote:
> Dears,
>    I try to install php5 (5.2.12) and php5-extensions from FreeBSD port tree
> with apache 2.2 (worker-mpm mode, apache-worker-2.2.14_5) few days ago.
> But I encounter core dump when execute 'php -v' and 'php -m'

$ php -v
PHP 5.2.12 with Suhosin-Patch 0.9.7 (cli) (built: Jan  5 2010 22:28:25)

$ httpd -v
Server version: Apache/2.2.14 (FreeBSD)
Server MPM:     Prefork

$ uname -a
FreeBSD 8.0-RELEASE-p1 #0 r200351:201627: Wed Jan  6 01:55:49 UTC 2010

Live at and

There are some threading issues know with php and apache.
1) they need to match.
2) you might need some 'zts' options.
BUT, it should error on startup, not core dump.

1024D/DB9B8C1C B90B FBC3 A3A1 C71A 8E70  3F8C 75B8 8FFB DB9B 8C1C
Philip M. Gollucci (pgollucci at c: 703.336.9354
VP Apache Infrastructure; Member, Apache Software Foundation
Committer,                        FreeBSD Foundation
Consultant,                       P6M7G8 Inc.
Sr. System Admin,                 Ridecharge Inc.

Work like you don't need the money,
love like you'll never get hurt,
and dance like nobody's watching.

More information about the freebsd-apache mailing list