Bug 250652 - www/mod_php80 LINKTHR build breaks apache
Summary: www/mod_php80 LINKTHR build breaks apache
Status: New
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: amd64 Any
: --- Affects Some People
Assignee: Torsten Zuehlsdorff
Depends on:
Reported: 2020-10-26 20:17 UTC by Jack
Modified: 2020-10-26 21:57 UTC (History)
0 users

See Also:
bugzilla: maintainer-feedback? (tz)


Note You need to log in before you can comment on or make changes to this bug.
Description Jack 2020-10-26 20:17:34 UTC
When mod_php80 is built with LINKTHR, apache fails to load libphp.so with the following error

httpd: Syntax error on line 152 of /usr/local/etc/apache24/httpd.conf: Cannot load libexec/apache24/libphp.so into server: /usr/local/libexec/apache24/libphp.so: No space available for static Thread Local Storage
Comment 1 Torsten Zuehlsdorff freebsd_committer 2020-10-26 21:57:25 UTC
Hi Jack,

this seems to be a reoccurring problem, but its not really a PHP bug.

A common solutions seems to be:
* Use Apache with MPM_PREFORK mode
* Turn off LINKTHR and ZTS

I stopped using Apache years ago in favor of nginx. So i can't really help with this one.